Permalink
Browse files

rename hp to time.

  • Loading branch information...
1 parent c7494b8 commit 8709b73ebcce47ec26a56235618aa9f1c29c9a39 @authorNari committed Aug 10, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 nario/life/nario.rb
View
@@ -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

0 comments on commit 8709b73

Please sign in to comment.