Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rename hp to time.

  • Loading branch information...
commit 8709b73ebcce47ec26a56235618aa9f1c29c9a39 1 parent c7494b8
@authorNari authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 nario/life/nario.rb
View
6 nario/life/nario.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.