class Game::Game
- Game::Game
- Reference
- Object
Defined in:
game/game.crConstant Summary
-
AUDIO =
false
-
BACKGROUND_COLOR =
Color::Black
-
DEBUG =
false
-
DRAW_FPS =
false
-
EXIT_WITH_ESC =
true
-
FULLSCREEN =
false
-
NAME =
"Game"
-
RESIZEABLE =
false
-
SCREEN_HEIGHT =
768
-
SCREEN_WIDTH =
1280
-
TARGET_FPS =
60
Constructors
Class Method Summary
- .begin_3d
- .camera
- .camera=(camera : Camera)
- .end_3d
- .screen_height
- .screen_width
- .to_degrees(radians : Int32 | Float32 | Float64)
Instance Method Summary
- #audio? : Bool
- #background_color : Color
- #close
- #close?
- #draw
- #draw_fps? : Bool
- #draw_wrapper
- #fullscreen? : Bool
- #name : String
- #resizeable? : Bool
- #run
- #running?
- #screen_height
- #screen_width
- #setup
- #should_close?
- #target_fps : Int32
- #update(_frame_time)
Constructor Detail
def self.new(name : String = NAME, fullscreen : Bool = FULLSCREEN, screen_width = nil, screen_height = nil, target_fps : Int32 = TARGET_FPS, background_color : ::Game::Color = BACKGROUND_COLOR, resizeable : Bool = RESIZEABLE, audio : Bool = AUDIO, draw_fps : Bool = DRAW_FPS, exit_with_esc = EXIT_WITH_ESC)
#