class RPG::Level

Direct Known Subclasses

Defined in:

rpg/level.cr

Constant Summary

SoundBumpFile = "./assets/sounds/bump.ogg"
TileSize = 64

Constructors

Instance Method Summary

Constructor Detail

def self.new(player : Player, rows : Int32 = 9, cols : Int32 = 9, player_row : Int32 = 0, player_col : Int32 = 0) #

[View source]

Instance Method Detail

def cols : Int32 #

[View source]
def dialog : Dialog #

[View source]
def dialog_key : String #

[View source]
def dialog_show(key : String, message_key : String) #

[View source]
def dialog_yml_file #

[View source]
def draw(window : SF::RenderWindow) #

[View source]
def draw_tile(window, x, y) #

[View source]
def draw_tiles(window) #

[View source]
def height #

[View source]
def init_dialog_data #

[View source]
def objs : Array(Collidable) #

[View source]
def play_bump_sound #

[View source]
def player : Player #

[View source]
def player_col : Int32 #

[View source]
def player_collision_checks #

[View source]
def player_row : Int32 #

[View source]
def rows : Int32 #

[View source]
def sound_bump : SF::Sound #

[View source]
def start #

[View source]
def tile_size #

[View source]
def to_tile(col, row) #

[View source]
def update(frame_time, keys : Keys, mouse : Mouse, joysticks : Joysticks) #

[View source]
def width #

[View source]