Giter Site home page Giter Site logo

zombie-apocalypse-game's Introduction

Zombie Apocalypse

This game was inspired by The Walking Dead

image

Quickstart

  1. Clone this repository to your local.

https://github.com/hermanodecastro/zombie-apocalypse-game.git

  1. On Linux gcc main.c -o main -lm to compile the application.

  2. On Windows gcc main.c -o main to compile the application.

The game

1 - Rick wakes up stunned in some random place on the scene, with a gun without bullets. (Color White)

2 - There are 15 zombies randomly scattered around the scenery. (Color Red)

3 - Obstacles are everywhere. Altogether there are 4 cars, 7 trees and 8 stones randomly distributed. (Color Yellow)

4 - In the scenario there is a single exit, also randomly defined. If she is blocked by obstacles, Rick has no exit and will die. Otherwise, if Rick reaches the exit, the game is over.

5 - Rick has 4 possible movements: up, down, left and right. Although Rick's life is complicated, there are 4 bullets scattered on the scenerio. If Rick moves and has a bullet in that position, Rick will load the weapon immediately.

6 - If Rick tries to move to an area where there is an obstacle, he remains where he is and does not move. If he move to a region where there is a zombie, there are two possibilities: if Rick has his gun unloaded, he’s attacked and dies; otherwise, Rick uses the bullet on the zombie.

7 - Zombies have 4 possible movements: up, down, left and right. The zombies that are 3 square meters away Rick will chase him. Those who are farthest away will stand still.

Directional keys

  • UP: w
  • DOWN: s
  • LEFT: a
  • RIGHT: d

Press enter after pressing a directional key.

zombie-apocalypse-game's People

Contributors

hermanodecastro avatar

Watchers

 avatar

Forkers

gabrieloliv96

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.