class FindingMaya::Level

Defined in:

level.cr

Constant Summary

INTERACTION_DISTANCE = 10
PLAYER_WALK_SPEED = 5

Constructors

Instance Method Summary

Constructor Detail

def self.new(background : Raylib::Texture2D, player : Player, items : Array(Item) = Array(Item).new, entities : Array(Entity) = Array(Entity).new) #

[View source]

Instance Method Detail

def all_objects : Array(Element) #

[View source]
def colliding?(x : Int32 = 0, y : Int32 = 0) : Bool #

[View source]
def colliding_with : Element | Nil #

[View source]
def draw #

[View source]
def interact #

[View source]
def move_player(&) #

[View source]
def play #

[View source]
def player : Player #

[View source]