rocket simulation game with just using tkinter

Irmen de Jong irmen.NOSPAM at xs4all.nl
Fri Sep 30 18:59:12 EDT 2016


Hi,

I've made a very simple rocket simulation game, inspired by the recent success of SpaceX
where they managed to land the Falcon-9 rocket back on a platform.

I was curious if you can make a simple graphics animation game with just using Tkinter,
instead of using other game libraries such as PyGame.
As it turns out, that works pretty well and it was quite easy to write. Granted, there's
not much going on on the screen, but still the game runs very smoothly and I think it is
fun for a little while where you try to learn to control the rocket and attempt to
successfully land it on the other launchpad!

The physics simulation is tied to the game's frame rate boohoo, but the upside is that
you can change the framerate to control the game's difficulty. It's easy at <=20, fun at
30 and impossible at 60 :)  It's running on 30 by default.


You can get the code here if you want to give it a try:
https://github.com/irmen/rocketsimulator

So you just need python 2/3 with tkinter to play this!


Have fun
Irmen



More information about the Python-list mailing list