Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
game_sf_template
v0.1.4
GameSFTemplate
Font
Game
HUD
Joysticks
Keys
Mouse
Player
Scene
Main
Start
Screen
Stage
Timer
Rename
Generated using Crystal 1.10.1
2024-05-19 04:30:59 UTC
class
GameSFTemplate::
HUD
GameSFTemplate::HUD
Reference
Object
Defined in:
game_sf_template/hud.cr
Constant Summary
Margin
=
10
TextColor
=
SF
::
Color
::
Green
Constructors
.new
Instance Method Summary
#draw
(window : SF::RenderWindow)
#text
: SF::Text
#update
(frame_time)
Constructor Detail
def self.
new
#
[
View source
]
Instance Method Detail
def
draw
(window : SF::RenderWindow)
#
[
View source
]
def
text
: SF::Text
#
[
View source
]
def
update
(frame_time)
#
[
View source
]