Skip to content

Commit

Permalink
rename hp to time.
Browse files Browse the repository at this point in the history
  • Loading branch information
authorNari committed Aug 10, 2011
1 parent c7494b8 commit 8709b73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nario/life/nario.rb
Expand Up @@ -32,10 +32,10 @@ def initialize(x, y)

def put_screen(screen)
super
@font.draw_solid_utf8(screen, "HP", 2, 2, *Color::BLACK)
max = Scene::SCREEN_WIDTH-50-10
@font.draw_solid_utf8(screen, "Time", 2, 2, *Color::BLACK)
max = Scene::SCREEN_WIDTH-80-10
hp_width = (max.to_f * 0.01 * @hp).to_i
screen.fill_rect(50, 10, hp_width, 20, Color::BLACK)
screen.fill_rect(80, 10, hp_width, 20, Color::BLACK)
end

# collision event
Expand Down

0 comments on commit 8709b73

Please sign in to comment.