Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Are retro-style supported?
- - By satgo1546 Date 2014-03-01 12:58
(My English is not well to describe my problem... I'm Chinese)
I'm going to make a retro-style game with Gosu. But I've never found how to draw an image as "retro-style":

Are there anyway to fix this? Thanks!
Parent - - By jahmaican Date 2014-03-01 13:45
You have to call enable_undocumented_retrofication method - just once, preferably on program start.
Parent - - By satgo1546 Date 2014-03-02 03:55
Really? It's an undefined method. My code:
require 'gosu'

class GameWindow < Gosu::Window
  def initialize
    super(640, 480, false)
    self.caption = "Retro test"
    enable_undocumented_retrofication ### <-- Insert this method here?
    @img = Gosu::Image.new(self, "test.png", false)
  end
  def update
  end
  def draw
    @img.draw(0, 0, 0, 10.0, 10.0)
  end
end

GameWindow.new.show
Parent - - By RunnerPack Date 2014-03-02 06:50
Try Gosu::enable_undocumented_retrofication
Parent - By satgo1546 Date 2014-03-02 09:29
Oh, really thanks! I've just fixed this. Yay!
Up Topic Gosu / Gosu Exchange / Are retro-style supported?

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill