abstract class PF::Game
- PF::Game
- Reference
- Object
Defined in:
game.crConstant Summary
-
FPS_INTERVAL =
1.0
-
SHOW_FPS =
true
Constructors
Instance Method Summary
- #clear(r = 0, g = 0, b = 0)
- #draw
- #draw_circle(*args, **options)
- #draw_circle(*args, **options, &)
- #draw_curve(*args, **options)
- #draw_curve(*args, **options, &)
- #draw_line(*args, **options)
- #draw_line(*args, **options, &)
- #draw_point(*args, **options)
- #draw_point(*args, **options, &)
- #draw_rect(*args, **options)
- #draw_rect(*args, **options, &)
- #draw_shape(*args, **options)
- #draw_shape(*args, **options, &)
- #draw_string(*args, **options)
- #draw_string(*args, **options, &)
- #draw_triangle(*args, **options)
- #draw_triangle(*args, **options, &)
- #elapsed_seconds
- #elapsed_time
- #fill_circle(*args, **options)
- #fill_circle(*args, **options, &)
- #fill_rect(*args, **options)
- #fill_rect(*args, **options, &)
- #fill_shape(*args, **options)
- #fill_shape(*args, **options, &)
- #fill_triangle(*args, **options)
- #fill_triangle(*args, **options, &)
- #height : Int32
- #height=(value : Int32)
-
#on_exit
To be overridden
- #run!
- #running : Bool
- #running=(running : Bool)
- #scale : Int32
- #scan_line(*args, **options)
- #scan_line(*args, **options, &)
- #screen : Sprite
- #screen=(screen : Sprite)
- #title : String
- #update(dt : Float64, event : SDL::Event)
- #viewport
- #width : Int32
- #width=(value : Int32)
Constructor Detail
def self.new(width : Int32, height : Int32, scale : Int32 = 1, title : String = self.class.name, flags = SDL::Renderer::Flags::ACCELERATED, window_flags : SDL::Window::Flags = SDL::Window::Flags::SHOWN)
#