pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
Apocalypse Bunny

Apocalypse Bunny - 1.0.1

Niriel (niriel)

Tags:

Description

You play as a bunny in a post apocalyptic world. The only place where carrots still grow are in cemeteries because of their fertile soil. However, zombies grow in cemeteries too, especially zombie foxes. They are a bit slow and a bit dumb, but they are legion. You hop and run between your foes and try to gather all the carrots before too many zombie foxes hit you. Fortunately, the radioactive carrots give you strange abilities. With each carrot you eat, your super bunny mind can create a telekinetic shock wave that will repel and maybe even kill the zombie foxes. Let’s see how you long you can survive ! Don’t become a zombie bunny.

  • [W][A][S][D] keys to move.
  • [Space] key to blast a psy-wave.
  • [M] key to take a screen shot (close enough to space for you to press without looking for it too much).
  • [Esc] key to quit.


This is a short game I made as a proof of concept. I'm working on a bigger game called Infiniworld, but I needed to make sure that the engine I wrote could actually lead to something playable. I gave myself one week to use the Infiniworld engine as it is now into a game, and Apocalypse Bunny was born! My girlfriend loves bunnies :).

There is a physics engine inside using a RK4 integrator, and a collision detection+correction code I wrote specifically for the tile-based nature of the landscape. I apply a model-view-controller pattern, so most of the code could be reused with another renderer than pygame (anyone interested in a curses port ? :D). The game loop decouples the rendering from the physics and the processing of the inputs. The 'GUI' code is horrendous. I have a side project for that and I'll merge it in Infiniworld at some point. But for now, I wanted a game that worked, and this one does!

Changes

Corrected syntax error occuring for python 2.6.

Links

Home Page: http://niriel.wordpress.com/2011/08/28/full-game-apocalypse-bunny/
Source: https://github.com/Niriel/Infiniworld/tree/apocalypse_bunny
Windows: https://github.com/Niriel/Infiniworld/zipball/apobu_v1.0.1
Mac: https://github.com/Niriel/Infiniworld/zipball/apobu_v1.0.1

Screenshot


click to view original size

Releases

Apocalypse Bunny - 1.0.1 - Aug 30, 2011
Apocalypse Bunny - 1.0.0 - Aug 29, 2011

Pygame.org account Comments

If you wish to leave a comment with your pygame.org account, please sign in first.

October 8, 2011 6:37am - Steffen K. - nickname: (steffen5730) - 1/5
It doesn't works!
Rename solo.py in main.py!
September 23, 2011 3:53am - Xandar Kablandar - nickname: (eternalcheesecake)
Survived 4:44. How do zombie foxes reproduce so quickly?
August 30, 2011 4:03pm - Niriel - nickname: (niriel)
Procedurally generated, with random in it, yes. It's a stupid cellular automaton that grows regions until there's no room left, and 20% of the tiles have obstacles.

I'll have more fun with procedural generation for my big project!
August 30, 2011 12:00pm - MilanFIN - nickname: (milanfin) - 5/5
Works now ok, is the world always the same or is it randomly generated??
August 30, 2011 10:28am - Niriel - nickname: (niriel)
Awesome, I found the problem! python 2.6 does not want us to declare a set with curly brackets (like my_set = {1, 5, 78}). We have to use the set function on an iterable. I corrected it, you can get the corrected version there: https://github.com/Niriel/Infiniworld/zipball/apobu_v1.0.1 . I'll update the links in the description now, thanks for the bug report!
August 30, 2011 10:06am - Niriel - nickname: (niriel)
No other library, just pygame. Hem, in my previous comment I meant 2.6 and 2.7 for python, not 1.6 and 1.7. I got mixed up with the pygame version that starts with 1. So, the game works fine with 2.7, and apparently it doesn't with 2.6. I'll download a 2.6 and see if I can make it work ! If it's just a matter of adding backslashes even in parenthesis, then that should be easy.

Thanks for the feedback!
August 30, 2011 7:09am - MilanFIN - nickname: (milanfin)
Well I got a syntax error, and I am using python 2.6 and pygame 1.9.1.
Does this game use any other libraries than pygame???
August 29, 2011 2:41pm - Niriel - nickname: (niriel)
Well, there is a pygame game using this engine already, this one! :p.

What error did you get? Is that something about a syntax error? If so, that may be because you use a python 1.6. I got a problem like that when I tried my game on 1.6.1, it does not like multi-line statements that don't end with a backslash. 1.7.3 is happy with them. Can it be your problem?
August 29, 2011 9:26am - MilanFIN - nickname: (milanfin)
There will be a pygame game using this engine, cool waiting it.

I couldn't run it got an error from line 49 in /bunny/gen.py-file
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Nov 13, 2014

Nov 11, 2014


Nov 10, 2014

Nov 9, 2014

Nov 6, 2014


Nov 4, 2014

Nov 3, 2014

Oct 28, 2014

Oct 21, 2014

Oct 16, 2014

... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)