Giter VIP home page Giter VIP logo

pygame-simple-tower-defence-game's Introduction

Tower defense game

Step.01 Building game window

Items

  • Background
  • Enemy and its health bar
  • Game menu
    • Start button
    • Pause button
    • Sound button
    • Muse button
  • HP
  • Game timer

Step.02 Enemy move and generate

List

  • Let the enemy move along the path
  • Let the enemies campaign in sequence in a round
  • Re-generate the enemies (when user press the “n” button)
  • Let the enemy move along the right path and alternate the enemy path to the other one in the next wave

Step.03 Drop enemy health and display tower attack range

Process

  • Establish a tower then set the attack range
  • Generate enemy and its health bar
  • Determine whether enemy is in the attack range
    • Attack range : extend a circle with a radius of 150 from the center of the tower
    • Calculate whether the enemy distance <= radius (If yes launch an attack)
  • The attack range is displayed when clicking on the tower

Step.04 Upgrade the attack range of tower and sell tower

Process

  • Create the menu
  • The “upgrade” button and “sell” button on the menu

Step.05 Show the building menu

Process

  • Its buttons on the yellow spot

  • The PCR tower is built when someone clicks the corresponding button on the build menu

  • Change the attack mode of a PCR tower. (Note: The ability is one shot one kill)

Step.06 Finish the simple tower defence game

Process

  • Create the buttons that can play the music or mute the game when we click the corresponding button

    • The buttons can show a white frame when we move the cursor to the button
  • Show the information on the black region

  • When an enemy is killed, we get 15 unit of money; When an enemy reach the base, our hp drop 1 unit

Till now we have finished this simple tower defence game .

pygame-simple-tower-defence-game's People

Contributors

wendy-hsueh avatar

Watchers

 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.