class Player

Defined in:

ld43/player.cr

Constant Summary

DOWN = "res/man-down.png"
HIT_SOUND = "res/hit.wav"
LEFT = "res/man-left.png"
RIGHT = "res/man-right.png"
UP = "res/man-up.png"

Constructors

Instance Method Summary

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) #

[View source]

Instance Method Detail

def all_objects #

[View source]
def collides_with(b : Bullet) #

[View source]
def collision(m : Monster) #

[View source]
def draw #

[View source]
def hit_points : Int32 #

[View source]
def hit_points_max : Int32 #

[View source]
def invicibility_stuff(dt) #

[View source]
def movement_stuff(dt) #

[View source]
def shooting_stuff(dt) #

[View source]
def speed : Int32 #

[View source]
def speed=(speed : Int32) #

[View source]
def update(dt) #

[View source]