Hi,
I am quite new to Gosu and I have an application that is running perfectly under Os X. I have tried to run it on a Raspberry Pi under Raspbian Jessie. I Installed everything as stated in the getting started guide (all dependencies, SDL and SDL_ttf compiled) and had no problem installing the gosu gem.
The application starts and opens the window but nothing is drawn.
Just to be sure I executed a basic "hello world" but I got the same result. Runs fine, nothing is shown in the screen (neither windowed nor fullscreen).
=====CODE=====
require 'rubygems'
require 'gosu'
class Hello < Gosu::Window
def initialize
super 640, 480, true
self.caption = 'Hello World!'
@background_image = Gosu::Image.new("media/background.png", :tileable => true)
end
def draw
@background_image.draw(0, 0, 0)
puts 'drawing'
end
end
window = Hello.new
window.show
=====CODE=====
I get "drawing" written in the terminal, so 'draw' is called and executed, but nothing shown on the screen.
Any Idea? Am i missing something? Some library needed and not installed? Some settings I overlooked?
Thanks in advance,
dsm0nd
Loading...