class RGSS3::GameWindow

Attributes

frame_rate[R]

Public Class Methods

new(width: 544, height: 416, fullscreen: false, frame_rate: 60, title: "Game", rtp: nil) click to toggle source
Calls superclass method
# 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

Public Instance Methods

draw() click to toggle source
# File lib/rgss3/game_window.rb, line 20
def draw
  Graphics.draw
end
needs_redraw?() click to toggle source
# File lib/rgss3/game_window.rb, line 24
def needs_redraw?
  Graphics.needs_redraw
end
update() click to toggle source
# File lib/rgss3/game_window.rb, line 13
def update
  fiber = RGSS3.fiber
  if fiber
    fiber.alive? ? fiber.resume : close
  end
end