Class: RGSS3::GameWindow
- Inherits:
-
Gosu::Window
- Object
- Gosu::Window
- RGSS3::GameWindow
- Defined in:
- lib/rgss3/game_window.rb
Instance Attribute Summary collapse
-
#frame_rate ⇒ Object
readonly
Returns the value of attribute frame_rate.
Instance Method Summary collapse
- #draw ⇒ Object
-
#initialize(width: 544, height: 416, fullscreen: false, frame_rate: 60, title: "Game", rtp: nil) ⇒ GameWindow
constructor
A new instance of GameWindow.
- #needs_redraw? ⇒ Boolean
- #update ⇒ Object
Constructor Details
#initialize(width: 544, height: 416, fullscreen: false, frame_rate: 60, title: "Game", rtp: nil) ⇒ GameWindow
Returns a new instance of GameWindow.
6 7 8 9 10 11 |
# File 'lib/rgss3/game_window.rb', line 6 def initialize(width: 544, height: 416, fullscreen: false, frame_rate: 60, title: "Game", rtp: nil) @frame_rate = frame_rate RTP.path = rtp if rtp super(width, height, fullscreen, 1000.0 / frame_rate) self.caption = title end |
Instance Attribute Details
#frame_rate ⇒ Object (readonly)
Returns the value of attribute frame_rate.
5 6 7 |
# File 'lib/rgss3/game_window.rb', line 5 def frame_rate @frame_rate end |
Instance Method Details
#needs_redraw? ⇒ Boolean
24 25 26 |
# File 'lib/rgss3/game_window.rb', line 24 def needs_redraw? Graphics.needs_redraw end |