On 1-10-2016 22:07, Irmen de Jong wrote:
> On 1-10-2016 15:44, Christian Gollwitzer wrote:
>> Am 01.10.16 um 00:59 schrieb Irmen de Jong:
>>> Hi,
>>>
>>> I've made a very simple rocket simulation game, inspired by the recent 
>>> success of SpaceX
>>
>>> You can get the code here if you want to give it a try:
>>> https://github.com/irmen/rocketsimulator
>>
>> Nice! I'll have to rebind the keys before I can successfully play this, 
>> though. My []
>> "keys" are in fact combinations of Alt+5 and Alt+6 on a German Macbook 
>> keyboard (on a
>> German PC, it is AltGr+8, AltGr+9). Why not using the arrow keys? These 
>> should be pretty
>> universal
> 
> Oh, I'm sorry about that, my little knowledge of non-US keyboard layouts 
> shows.
> Arrow keys could be an option.   For my education what are the 2 keys to the 
> right of
> the P then on your keyboard?
> 
> Rebinding the keys should be easy though just change them in the keypress and 
> keyrelease
> methods.
> 
> Irmen

I've updated the keybindings and you can now use [ and ] but also the cursor 
keys to
control the rocket's rotation.

Also I've discovered that there seems to be an issue with some Tkinter 
versions; it
sometimes doesn't update the screen fast enough. On OSX this problem is not 
present but
it is on Python 2.7 on Windows for example. I don't know what is causing it or 
how to
fix it at this time.   The FPS counter in the top right of the window should 
say 30,
that is when the game is updating at the intended speed.


Irmen

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to