Giter Site home page Giter Site logo

selenebun / towerdefense Goto Github PK

View Code? Open in Web Editor NEW
54.0 5.0 45.0 1.67 MB

Simple tower defense game in p5.js

Home Page: https://rsaihe.github.io/towerdefense/

License: MIT License

HTML 5.21% CSS 3.32% JavaScript 91.48%
tower-defense-game p5js game-2d game

towerdefense's People

Contributors

rsaihe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

towerdefense's Issues

Towers may not target the furthest enemy near crossovers

The method of calculating distance to the exit currently does not account for the fact that enemies may not take the shortest route due to path tiles forcing them to take a longer way. Because of this, if there are crossovers, towers seem to target the enemy physically closest to the exit rather than the one furthest along on its path.

Intermittent lag

There seems to be something causing lag spikes to occur every once in a while. It occurs even when no towers or enemies present. Frame rate drops from roughly 60 FPS to as low as 20 or 30 for a few seconds at a time.

Lag

Intermittent significant drops in frame rate seem to occur when enemies are moving

Consistently low framerate

Framerate stays at around an average of 30 fps consistently, even when no enemies are active, dropping as low as below 20 fps at times.

Occasional timeout when changing tile size

Seems to be related somehow to the more zoomed-in map sizes. Haven't noticed this problem on the larger map sizes. So far observed on maps with tile size of at least 36px. Always seems to occur once enemies have already spawned on the map.

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.