Gosu-Android
A Gosu implementation for Adroid devices.
Installation
Sadly right now you need to manually copy every file to every ruboto proyect you want to use it.
- Download the sources
- Copy the
lib
folder and thegosu.rb
to theproyect_name/src/
folder inside your ruboto proyect. - Copy the
gosu.java.jar
in theproyect_name/libs/
folder. - Place the
res
files in theproyect_name/res
folder. - It is very important that you do not copy the
java
files in your proyect folder, they are included for developers only.
General Information
- This is still an early effort, so there are a number of features that had not yet been added.
- There are some known bugs that I hope to fix soon.
- In its current status there are some small changes to Gosu Window initialization, check examples.
- A new object with some basic physics has been added.
Troubleshooting
- If you're using Ruboto 0.10.4 or earlier, you may get an error when trying to require the gosu libraries:
(SystemStackError) stack level too deep
inrequire 'gosu'
. If this happens:- Replace
require 'gosu'
withwith_large_stack { require 'gosu' }
. If it still doesn't work: - Try
with_large_stack(256) require 'gosu' end
. If it still doesn't work, try again with512
instead of256
. - Alternatively, update to the latest Ruboto (0.11 or better).
- Relevant Ruboto issues:
- Replace
- When using several audio files double check that all have the same codification or you could get:
E/MediaPlayer(16127): Unable to to create media player