Giter VIP home page Giter VIP logo

boxhead2d's Introduction

BoxHead2D

Video

A simple BoxHead Survivor game in 2D with Python Arcade.

This is a "rogue-lite", "top-down shooter" game. The core gameplay is a combination of an old 3D BoxHead zombie game and a recent popular survivor-style game.

Requirements for running in the terminal:

  • Python 3.6+

Windows

python -m venv venv #Create python environment
venv\Scripts\activate #Load python environment
  • Arcade library(Windows) pip install arcade or pip install -r requirements.txt

Linux

python3 -m venv venv #Create python environment
source venv/bin/activate #Load python environment
  • Arcade library(Linux) pip3 install arcade or pip3 install -r requirements.txt

Run the game with the command:

python app.py #Windows environment
python3 app.py #Linux or Mac

Design Document

Player

Characters Health Energy Money Speed Kill recover Explosion Damage Luck
Player 100 0 0 1600 5 100 6

Weapons

Weapons Damage Energy cost CD Attack range (bullet life span) Bullet speed Bullet number Health
Pistol 30 0 30 20 25 \ \
Uzi 30 3 20 25 30 \ \
Shotgun 40*3 12 50 10 25 3 \
Rocket explosion damage 20 40 15 32 1 \
PlacedWall \ 5 4 \ \ 300
Barrel explosion damage 20 4 \ \ 0
Mine explosion damage 20 4 \ \ 0

Enemies

Enemies Health Hit Damage Bullet damage Speed CD Attack range Bullet speed
White 100 20 \ 800 \ \ \
Red 300 20 30 800 120 200 6
Crack 200 40 \ 1000 \ \ \
Big Mouth 150 20 50*2 800 70 300 7
Crash 100 80 \ 1000 \ 200 \
Tank 400 120 \ 800 \ 200 \

Items

Quality:

  • Bronze: base value
  • Sliver: 2 * base value
  • Gold: 4 * base value
Items Base quality Base value Base cost
Sell health 1 100 -18
Sell energy 1 50 -12
Add speed 1 50 15
Sell speed 1 50 -15
Increase luck 1 2 18
Sell luck 1 2 -18
Add kill recover 1 5 12
Increase explosion damage 1 50 30
Increase pistol damage 1 10 9
Reduce pistol CD 1 2 14
Increase pistol attack range 1 5 16
Add Uzi -1 \ 30
Add Shotgun -1 \ 42
Add Rocket -1 \ 56
Add Wall -1 \ 28
Add Barrel -1 \ 52
Add MIne -1 \ 49
Uzi
Add Uzi damage 1 10 21
Reduce Uzi CD 1 2 19
Add Uzi range 1 5 20
Reduce Uzi cost 1 1 18
Sell Uzi -1 \ -30
Shotgun
Add Shotgun damage 1 10 36
Reduce Shotgun CD 1 3 21
Add Shotgun range 1 5 28
Reduce Shotgun cost 1 1 24
Sell Shotgun -1 \ -42
Add Shotgun bullets 1 1 26
Rocket
Reduce Rocket CD 1 2 19
Add Rocket range 1 5 20
Reduce Rocket cost 1 1 18
Sell Rocket -1 \ -30
Wall
Add Wall health 1 20 24
Sell Wall -1 \
Reduce Wall cost 1 1 16
Barrel
Sell Barrel -1 \ -52
Reduce Barrel cost 1 1 35
Mine
Sell Mine -1 \ -49
Reduce Mine cost 1 1 28
Rocket multi explosion -1 \ 52
Barrel multi explosion -1 \ 45
Mine multi explosion -1 \ 48

Round

Item actual price = Round * Base Pirce *2

Total number of enemy = Round * 8

Credits

This project uses the following free resources:

boxhead2d's People

Contributors

unchained112 avatar

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.