See the following video for a preview: https://youtu.be/jHGZiCgM6dc
And this is the original game video: https://www.youtube.com/watch?v=OhdjJTSCFvc
This game aims to resemble the "Jeep Command" of the Commodore 64.
The game is played via the keyboard. Right and Left arrow buttons will Accelerate-Decelerate the Jeep, Up arrow button will Jump, and Space will fire (rear or forward, depending on the last pressed arrow button).
Some personal notes: This is my first code in Python! I've decided to learn Python as a hobby. In the past, I'd coded Quick Basic and Turbo Pascal / Assembler as a hobby in the nineties; and have coded in Fortran, C/C++ and Matlab for several scientific-engineering works since around 2000.
After a quick internet search I've found a "moving_platforms" code, which I used as a game code base for my game. Here: https://github.com/Mekire/pygame-samples/blob/master/platforming/moving_platforms.py
I considered starting Python game programming with Pooyan. Then decided to go with a horizontal scroller. Btw, Pooyan is another great game, but the Jeep Command has a bit more adrenaline!
I've put together my initial working code, and you can already enjoy several seconds of gameplay. (maybe even a minute or two) :)
I've uploaded both the original soundtrack and also a music I improvised.
You can listen to the original background music here: Lemon: http://www.lemon64.com/?mainurl=http%3A//www.lemon64.com/games/details.php%3FID%3D1359
I've converted from SID to WAV using SID2WAV of http://www.vgmpf.com/Wiki/index.php/SID_to_WAV
Happy coding everyone!
And please say Hi if you visited this page.
Note: There may be several months of inactivity in 2017, due to a new project that I've joined. Enjoy the codes and don't hesitate to improvize on them, and let me know!
Thoughts for the future:
- Read levels from file: some parameters include: length of level, number of obstacles, definition of obstacles (location, shape, size, color)
- Show current score, Record score, and number of lives left (as hearts?).