Gosu boilerplate

Ruby code posted
created at 10 Mar 22:02

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'gosu'

class GameWindow < Gosu::Window
  def initialize
    super 640, 480, false
    self.caption = "Gosu Tutorial Game"
  end

  def update
  end

  def draw
  end
end

window = GameWindow.new
window.show
233 Bytes in 2 ms with coderay