module Molly2d::Molly

Extended Modules

Defined in:

molly/console.cr
molly/data.cr
molly/drawing/base.cr
molly/drawing/images.cr
molly/drawing/simple.cr
molly/events.cr
molly/sound.cr
molly2d.cr
overrides.cr

Instance Method Summary

Macro Summary

Instance Method Detail

def background #

[View source]
def background=(a) #

[View source]
def clear #

[View source]
def draw #

[View source]
def draw_game #

[View source]
def draw_rect(x, y, w, h, fill = true) #

[View source]
def draw_sprite(x, y, surface : SDL::Texture | Nil, stretch_x = 1, stretch_y = 1, flip_x = false, flip_y = false, angle = 0) #

[View source]
def draw_text(x, y, text, font) #

[View source]
def handle_event(event) #

[View source]
def keyboard_pressed?(key) #

[View source]
def load #

[View source]
def load_sound(path : String) #

[View source]
def load_sprite(path : String) #

[View source]
def musics #

[View source]
def musics=(a) #

[View source]
def play_sound(sample) #

[View source]
def quit #

[View source]
def render #

[View source]
def renderer #

[View source]
def renderer=(a) #

[View source]
def run #

[View source]
def samples #

[View source]
def samples=(a) #

[View source]
def set_color(color : Molly2d::Color) #

[View source]
def setup_console(&) #

[View source]
def should_quit #

[View source]
def should_quit=(a) #

[View source]
def text_width(text, font) #

[View source]
def textures #

[View source]
def textures=(a) #

[View source]
def update(dt) #

[View source]
def update_game(delta) #

[View source]
def window #

[View source]
def window=(a) #

[View source]

Macro Detail

macro data(*names, &block) #

[View source]