Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
mallofneeds
1.0
Mallofneeds
Background
Game
Intermission
Item
Disc
Food
Medicine
Player
Stage
Built with Crystal 1.9.2
2023-10-07 19:47:35 UTC
class
Mallofneeds::Background
Mallofneeds::Background
Reference
Object
Included Modules
SF::Drawable
Defined in:
mallofneeds.cr
Constant Summary
LIFETIME
=
4
MOVE_DELAY
=
25
SPEED
=
1
Constructors
.new
(image_texture, position, direction : Tuple(Int32, Int32))
Instance Method Summary
#draw
(target, states)
#expired?
#needs_movement?
#update
#update_opacity
#update_position
Constructor Detail
def self.
new
(image_texture, position, direction : Tuple(Int32, Int32))
#
[
View source
]
Instance Method Detail
def
draw
(target, states)
#
[
View source
]
def
expired?
#
[
View source
]
def
needs_movement?
#
[
View source
]
def
update
#
[
View source
]
def
update_opacity
#
[
View source
]
def
update_position
#
[
View source
]