def draw_actor_hp1_bar(actor, x, y,height=60) bitmap=Bitmap.new("Graphics/Pictures/xue1") # 60 60 w1 = 1.0 * actor.hp / actor.maxhp * height src_rect = Rect.new(0, 0, 60,w1) self.contents.blt(x, y, bitmap, src_rect) end
满血.png (9.62 KB, 下载次数: 13)
减血.png (8.73 KB, 下载次数: 14)
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |