loop do Graphics.update Input.update update # .... end
def update if @gold != $game_party.gold @gold = $game_party.gold refresh end end def refresh self.contents.clear self.contents.draw_text(4, 0, 64, 32, @gold.to_s) end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |