RubyGosuTutorial: Unterschied zwischen den Versionen

aus Metalab Wiki, dem offenen Zentrum für meta-disziplinäre Magier und technisch-kreative Enthusiasten.
Zur Navigation springenZur Suche springen
Keine Bearbeitungszusammenfassung
Zeile 31: Zeile 31:
== Poit (Isn't Puit). ==
== Poit (Isn't Puit). ==
* open source ruby game : [http://github.com/oneup/puituniverse/tree/master poit universe]
* open source ruby game : [http://github.com/oneup/puituniverse/tree/master poit universe]
* sort of //Nil Isn't Liero//
* for git usage see [[GitTutorial]]





Version vom 12. Juni 2009, 02:48 Uhr

A warm welcome to the totally useless Game Programming in Ruby tutorial

shortcut:

require 'gosu'

class GameWindow < Gosu::Window
  def initialize
    super(640, 480, false)
    self.caption = "Gosu Tutorial Game"
    
    @background_image = Gosu::Image.new(self, "media/Space.png", true)
  end

  def update
  end

  def draw
    @background_image.draw(0, 0, 0);
  end
end

window = GameWindow.new
window.show

Poit (Isn't Puit).



Gosu Lacks (aka... needs own OpenGL code)

We wan't to replicate the full feature-set of oldschool 2D gaming, hence: ^^(see above)

  • Pixel Operations (Putpixel)
  • Palette Swap (-> from: CuteWars.python)
  • Animation System built-in (PuitWars' kyoto has this)