Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
ld43
master
Top Level Namespace
Bullet
Chase
Entity
Follow
Int32
Ld43
Monster
Player
Tombstone
Wall
Wander
Wave
Built with Crystal 1.9.2
2023-10-07 21:45:54 UTC
class
Bullet
Bullet
Entity
Reference
Object
Defined in:
ld43/bullet.cr
Constructors
.new
(x, y, direction : String)
Instance Method Summary
#collision
(m : Monster)
#draw
#update
(dt)
Instance methods inherited from class
Entity
all_objects
all_objects
,
collides_with(other)
collides_with
,
collides_with_anything
collides_with_anything
,
collision(other : Entity)
collision
,
delete_me : Bool
delete_me
,
delete_me=(delete_me : Bool)
delete_me=
,
draw
draw
,
height : Int32
height
,
height=(height : Int32)
height=
,
update(dt)
update
,
width : Int32
width
,
width=(width : Int32)
width=
,
x : Int32
x
,
x=(x : Int32)
x=
,
y : Int32
y
,
y=(y : Int32)
y=
Constructor methods inherited from class
Entity
new(x : Int32, y : Int32)
new
Constructor Detail
def self.
new
(x, y, direction : String)
#
[
View source
]
Instance Method Detail
def
collision
(m :
Monster
)
#
[
View source
]
def
draw
#
[
View source
]
def
update
(dt)
#
[
View source
]