Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Windows key
- - By zbew13 Date 2013-12-22 10:28
Hello, I made a little game (based on gosu tutorial), then I build it as gem.

On linux there is no problem, but when I 'gem install mygem.gem' on mac there are some problems to build gosu dependancy.
On Windows I type gem install, it works well but when the game start mapped key for the game doesn't work, do you have any solutions ?

Source are here: https://github.com/hfabre/space

Is there special key code for windows ? or do I missed something ?

Thanks (sorry for my bad english, i'm french)
Parent - - By RavensKrag Date 2013-12-23 03:11
What key are you trying to use to start the game?
Parent - - By zbew13 Date 2013-12-23 15:14
The game start without any key, but to play you need to use arrows and space.
Parent - By RavensKrag Date 2013-12-28 05:14
hmmm.... it seems ok to me.

Have you tried defining #button_down(id) and #button_up(id) instead of using the Window#button_down?(id) method? The two should be equivalent, but maybe there's a bug or something?

example:
class Window < Gosu::Window
  def button_down(id)
    if id == Gosu::KbUp
      @player.up
    end
  end
end
Parent - By jlnr (dev) Date 2013-12-28 15:12
Gosu does not have any dependencies on OS X, what is the error message during installation?
Up Topic Gosu / Gosu Exchange / Windows key

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill