class Wander

Defined in:

ld43/monster/wander.cr

Constant Summary

DIRECTIONS = [:up, :down, :left, :right]
SPRITE = "res/slime.png"

Constructors

Instance Method Summary

Instance methods inherited from class Monster

collides_with(other : Monster) collides_with

Constructor methods inherited from class Monster

new(x, y) new

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 chase(dt) #

[View source]
def draw #

[View source]
def update(dt) #

[View source]
def wander(dt) #

[View source]