Class: Pacman::HudComponent
- Inherits:
-
Charming::Component
- Object
- Charming::Component
- Pacman::HudComponent
- Defined in:
- app/components/hud_component.rb
Instance Method Summary collapse
Instance Method Details
#render ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'app/components/hud_component.rb', line 5 def render row( text("SCORE #{world.score}", style: theme.title), text("LIVES #{world.lives}", style: theme.warn), text("LEVEL #{world.level}", style: theme.info), text("PELLETS #{world.pellets.remaining}", style: theme.muted), gap: 4 ) end |