Skip to content
a snapshot of the source code to my 100% original commercial Python-based Rogue-like game about a zombie apocalypse, named Dead By Zombie
Python Other
  1. Python 99.1%
  2. Other 0.9%
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.




Dead By Zombie

ver 1.1

"Day is for the Living,
Night is for the Dead"

This is an open source snapshot of my 100% originally-created but previously close-sourced, commercial Python-based Rogue-like game about a zombie apocalypse, Dead By Zombie. The official public repo is:

I'm not taking code contributions at the moment, so don't bother issuing pull requests. Feel free to email with questions, suggestions or requests.

We also used to officially support Windows but have dropped that platform as not worth the effort. The creator prefers and therefore focuses on the Linux and Mac ecosystems. Trust me: life's better with Mac or Linux.

Feel free to play it. And feel free to make modifications to the code that run only on your own machine. You may not distribute this game, its code or your own modified versions of it to other parties without my explicit prior permission. Feel free to throw money at me (via PayPal to my email address). I also love LEGO. And Advanced Squad Leader.

All rights reserved worldwide.


The game comes in versions for different platforms: Mac and Linux. The requirements vary by platform:

    on Mac:
        Mac OS X 10.5 or higher
        Mac OS X 10.4 (or less might work), with Python 2.7 (accessible via "/usr/bin/env python2.7")

    on Linux:
        Linux 2.x (tested on 2.6), with Python 2.7 (accessible via "/usr/bin/env python2.7")

The Mac version gets the most testing since it is the developer's primary workstation. Linux is similar to Mac so will probably work second best.

Mac Instructions:

To play the game:

    * in the Dead_By_Zombie folder, double-click on the file '' (or run it in Terminal)
    * on the Intro screen you'll see a menu of choices
    * use the up/down arrow keys to move the cursor up/down
    * select the highlighted choice by pressing SPACEBAR

Linux Instructions:

Similar to Mac, but since you're a Linux user you'll likely have the tech skills to figure things out. The script should start the game just like in the Mac version. Python versions higher or lower than 2.7 might work fine, but you'll have to adjust paths/aliases/scripts on your own to make it work in your particular environment.

Platform Common Instructions:

To save the game while playing:

    * hit 'S' (uppercase) then wait. After a second or so it will tell you it has finished the save, and then you can hit any key to resume playing

To load a previous save while playing:

    * hit 'L' (uppercase) then wait. After a second or so it will tell you it has finished the load, then hit any key to begin playing from that point.

To quit the game:

    * hit 'Q' (uppercase) when in the default mode
    * if you wish, close the Terminal window by clicking on the little red circle icon at the top-left corner of the window

To restart the game with a fresh campaign:

    * on the Intro Screen's menu move the cursor to Restart Game
    * press SPACEBAR

To uninstall the game:

    * make a backup copy of your saved game files (OPTIONAL)
    * delete the DeadByZombie folder

Just so you know, saved games are stored in files in the DeadByZombie/saves folder. Feel free to make a backup copy of them somewhere if you wish to de-install the game, but possibly re-install it later and still be able to continue playing from where you left off.


Your goal is survive and not become a zombie!
Also it would be nice if the rest of humanity survives as well.
A bonus goal would be to see that the zombie menace ends.

The two main ways of dying are by starvation, or being attacked and killed by a zombie -- which then turns you into a zombie!

The best way to ward off starvation is to find and eat plenty of food, whenever needed. Eating adds food to your stomach. Your body digests a little stomach contents over time. When your stomach becomes empty, you begin starving. When you starve, you lose a little HP each tock until you die. There are a variety of sources of food including loot (food laying around in buildings or on the ground), grown food (such as from fruit trees), and the remains of dead lifeforms (corpses). Due to the zombie menace you generally want to stay hidden inside buildings behind close doors. However the need to get new food may force you to go on missions outside to replenish your supply.

You heal naturally, a little per tock, if your cur HP is high enough, compared to your max/normal HP. If you are seriously hurt you won't heal naturally, and in that case your only recourse is to use healing items such as first aid kits, bandages and medicine.

Most actions you perform (such as walking) cause time to pass. Not all actions do. You can tell that time has pased if the Tock value (shown on the main screen) increases. Over time, the world goes through a natural cycle of day and night, and since the ambiant light fluctuates due to that, the range at which you can see will change over time as well. Also, zombies are more active and more likely to spawn, at night. Due to that fact, plus the limited range of vision, night is the most dangerous time of day, especially if outside.

Stairs look like < or >. You may take them up/down to wherever they lead. Taking stairs down may lead into a basement or sewer level. Taking stairs up may lead to a higher floor within the same building you're currently in.

To travel to a different region entirely, follow a route. A route looks like /. It may lead to a nearby part of town, a different neighborhood, into the wilderness, or some other strange and mysterious location worth exploring.

On the main game play screen (called Default Mode), at the bottom, it shows Feedback. This is a bunch of information about events that have occured, things seen nearby, sounds heard, actions witnessed, things experienced, things you've done, and so on. If you see "MORE" in the lower-right corner of the screen it means that there is more Feedback lines that can be shown on screen at once. To see all of them, hit 'f' to go to the Feedback screen. On that screen you can move the cursor up/down to scroll through all the messages.

To pass a little time not doing anything:

To make your character walk somewhere, hit any of these keys to move one step in that direction:
      u   i   o
      j       k
      n   m   ,

Also, on any screen where there's a cursor you can move the cursor up/down with the up or down arrow keys.

To go to a screen mode showing all Feedback:
        On the Feedback screen, you can move the cursor up/down between entries and pages.
        Hit Space or Return to leave this screen.

To re-read the background story, and see the status of goals and plots:

To pickup one item from the ground in your same area:
    You can then move the cursor up/down between entries and pages until it's focused on the item you want to drop. Then SPACEBAR to drop it. Any other key to exit this mode without doing anything. All similar screens work the same way unless said otherwise.

To pickup all items on ground:

To wield item in inventory, 'w', then move cursor to select the item, then SPACEBAR to wield it.

To unwield item in inventory, 'u', then move cursor to select the item, then SPACEBAR to do it.

Barricades are like walls in that they block movement. You can build a barricade with the 'b' key, followed by the direction to build it in. You must be carrying wood to build a barricade and one wood is consumed per barricaded cell you build. Like walls, barricades can be destroyed, though they are weaker than walls. They can be useful in providing shelter and protection from the zombie menace.

Zombies can sneak up on you from almost anywhere. Well, almost anywhere. If you search and study a spot very carefully you can become sure that no zombies can appear there (hiding under a bed, or up through a trapdoor in floor, or from a ceiling vent, etc.). Use the 'Z' command followed by a direction arrow to search & secure a spot in this manner. This 'search & secure' activity is especially useful in combination with barricades you construct, especially if you want to seal off a shelter or add more living space to an existing building. Beware though: nothing is safe forever.

To wear an item, 'z', then select with SPACEBAR.
To unwear an item, 'x', then select with SPACEBAR.

Here's a full list with brief descriptions:

` - menu              | returns to the Intro Screen's main menu
S - save              | will immediately begin saving the game to 'quicksave' file; may take a few seconds to do so be patient; once it finishes saving, it will go to a screen telling you so. then hit any key to resume playing; also, if you later Quit the game, then PLAY a new session it will also resume from the state recorded in that 'quicksave' file
L - load              | loads game from 'quicksave', then resumes play
Q - quit              | quits app instantly, without saving
SPACEBAR - wait       | do nothing for a little bit (for 1 tock)
arrow keys            |
  or                  |
numbers (as keypad)   |
  or                  |
u/i/o/j/k/n/m/ - move | walk one step in that direction
f - feedback          | see all current feedback, in a scrollable list
t - story/status      | read background story and the status of goals and plots
M - memories          | recall remembered things
K - skills            | see your skills
l - look              | goes to screen listing all things in your spot
y/I - inventory       | goes to screen listing all carried items, scrollable
e - eat               | then select item and press SPACEBAR to eat it
h - heal              | then select item and press SPACEBAR to use it
R - read              | then select item to read (a book, document, flyer...)
p - pickup            | pickup an item from the ground
P - pickup all        | pickup ALL items from ground
d - drop              | drop an item (also unwields/unwears it if applicable)
z - wear              | wear an item
x - unwear            | unwear an item (take off if worn; but does not drop)
w - wield             | wield an item
u/U - unwield         | unwield an item (does not drop)
a - attack            | then press dir key, and you'll attack in that dir
o/O - open            | then press dir key, and you'll open door in that dir
c - close             | then press dir key, and you'll close door in that dir
b - barricade         | then dir -- builds a barricade there
Z - search & secure   | then dir -- ensures is safe/secure from zombies
r - route             | follow the route in your area, going to a new location
s - stairs            | take the stairs in your area, to some level above/below
A - ask to stay       | then press dir key towards NPC to address
B - ask to not stay   | then press dir key towards NPC to address
F - ask to follow     | then press dir key towards NPC to address
G - ask to not follow | then press dir key towards NPC to address

Map Key

Here's a key to the most common subset of map entities you'll encounter early:
@ you
P person (fellow human, resident of town, or so-called NPC)
Z zombie
d dog
T tree
% food or corpse or organic material
$ money (cash, gold, valuables)
# wall or major obstacle/barricade
+ closed door
O open door (capital O)
0 window (zero)
/ route, path, passage
< stairs leading up
> stairs leading down
. ground or floor
? unseen or unknown area

Other letters represent other things. Typically, more specific types of people, creatures or items.


You no longer can. You may see refs to Demo vs Premium/License but we'll be removing that distinction over time.

the official/main website for Dead By Zombie:

creator's general portfolio website:

If you'd like to be added to our mailing list, used to announce major news or new releases of the game, drop us a line saying so at:
We promise not to spam you or give your address out to any other party. And if you ever want to stop receiving our emails, just let us know.

If you have any other questions, suggestions, ideas, complaints or feedback, also feel free to email us as well.


Mike Kramlich
Dead By Zombie's Chief Mad Scientist


((**))   The Dread Space Pirate Richard   ((**))

I also write a series of sci-fi romantic comedy novellas.

It involves pirates. And space. And some kind of dread is involved on occasion. And a guy named Richard.
Starships. Mad computers. Quite mad, really. Bounty hunters. Wealthy buxom porn stars. Androids. Rebels against an evil Galactic Empire. Warm chocolate chip cookies. This last thing is the only thing I've lied about so far.

To learn more about it visit this group on Reddit:

Buy (or read FREE samples from!) the 1st book published here:


You can’t perform that action at this time.