Code Monkey home page Code Monkey logo

fox-tower-defense's Introduction

TOWER DEFENSE GAME IN PYTHON (PYGAME)

How to run

  • install poetry to your system if haven't already got it (https://python-poetry.org/)
  • navigate to root (where the "pyproject.toml" file is located)
  • poetry install
  • poetry run play

GIF

FEATURES

  • Multiple animated towers and animated firing platforms and projectiles.
  • Direct fire and splash damage towers.
  • Various animated mobs with their own stats and difficulty.
  • Stats of mobs increase with each wave.
  • Tower independant targetting modes selectable in realtime by the player (speed[fast or slow], health[high or low], distance from base etc).
  • Random path offsets to give natural feel to spawning.
  • Interactable, seeking behaviors to coins.
  • Menus for buying towers and upgrading towers.
  • Pause, resume from the main menu.

Update 23/06/20

  • Added wave generation into seperate file/function
  • Change size/Colors and image of main main.
  • Added visual feedback when hovering over construction hammer and towers.
  • Buffed fire tower damage by 10%.
  • Reduced fire speed of stone tower by 25%.
  • Big clear out of obsolete code and functions
  • Renamed and restructured code (1st pass)

Ongoing project

Credit: SN33DS - for the endless wave setup

fox-tower-defense's People

Contributors

richardfoxiw avatar richfox1990 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

fox-tower-defense's Issues

Error loading images

Hi!
I found this project searching for 'tower defence' on github and then chosing the project with the most stars. WHen I run it there is a problem with the images to be loaded:

FileNotFoundError: [Errno 2] No such file or directory: '/home/hmogensen/Fox-Tower-Defense/fox_tower_defense/data/images/enemies/Orc\walk'

I can fix this problem by looking at the code ('Orcs' should be lowercase, for instance), but then there are other similar problems. Is there a working release yet ? I can do some debugging for you if it won't take too long...

Solved

I tried running the game code in Game.py so I could play but it gave me an error saying that pg didn't exist. please fix this error. thanks!

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.