module Molly2d::Molly
Extended Modules
Defined in:
molly/console.crmolly/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
- #background
- #background=(a)
- #clear
- #draw
- #draw_game
- #draw_rect(x, y, w, h, fill = true)
- #draw_sprite(x, y, surface : SDL::Texture | Nil, stretch_x = 1, stretch_y = 1, flip_x = false, flip_y = false, angle = 0)
- #draw_text(x, y, text, font)
- #handle_event(event)
- #keyboard_pressed?(key)
- #load
- #load_sound(path : String)
- #load_sprite(path : String)
- #musics
- #musics=(a)
- #play_sound(sample)
- #quit
- #render
- #renderer
- #renderer=(a)
- #run
- #samples
- #samples=(a)
- #set_color(color : Molly2d::Color)
- #setup_console(&)
- #should_quit
- #should_quit=(a)
- #text_width(text, font)
- #textures
- #textures=(a)
- #update(dt)
- #update_game(delta)
- #window
- #window=(a)
Macro Summary
Instance Method Detail
def draw_sprite(x, y, surface : SDL::Texture | Nil, stretch_x = 1, stretch_y = 1, flip_x = false, flip_y = false, angle = 0)
#