Made with Flaunt
   
0 / 0

Oh hai.

2D Spelutveckling i Ruby

Enklast möjliga spel ram

class Game ‹ Gosu::Window

 def initialize
  super(800, 600,60) #   width, height, fps
  @game_objects.push(Player.new)
 end

 def update; @game_objects.each { |o| o.update }; end
 def draw; @game_objects.each { |o| o.draw }; end
end

Game.new.run

Spelbibliotek - Rubygame

Ramverk - Gamebox

Ramverk - Jemini

Spelbibliotek - Gosu

Ramverk - Chingu

Chingu

Chingu Ram

class Game ‹ Chingu::Window

 def initialize
  # width, height, fps
  super(800, 600,60)
  Player.create # Det skapade objektet hamnar i "game_objects"
 end

end

Game.new.run

Verktyg

Deployment (Win32)

Ocra (Win32)

Community

URLz