Giter VIP home page Giter VIP logo

cs679-project2's People

Contributors

adevans avatar bploeckelman avatar zhouyuanjoey avatar

Watchers

 avatar  avatar

cs679-project2's Issues

Bullet/Zombie collision should be done differently

Using input.viewRay isn't the best way to resolve bullet/zombie collisions since that ray is only 64 units long (ie. 2 grid cells at their current size) zombies that are farther away don't get hurt by bullets that should hurt them.

It might be better to loop through all the bullets for each zombie and check if bullet.mesh.distanceTo(game.zombie.mesh) is below a certain distance threshold and if so, mark the bullet as dead and remove it, and injure the zombie. (see game.js:215 as an example)

Add a crosshair

It can be a little tough to be accurate when shooting without a crosshair on the screen... it should be fairly easy to draw one.

Open doors with keypress, not bullets

Since bullets are a limited commodity now, it would be better to just have the user right click or type 'F' or something to open/close doors instead of shooting them.

Reloading mechanic and manual fire only on smaller gun

The small gun should not auto fire when left mouse is held down, it would be better if the gun had a relatively small clip (maybe 6 bullets) and each click used one bullet. There would have to be a reload button also

Better hit indication than just health reduction for player and zombies

Right now the only thing that happens when the player or a zombie gets hurt is that their health gets reduced.

It would be better if there was also a visual (and perhaps audible) indication as well. For the player, we could create a new full window 2d canvas and draw a red rectangle covering the whole screen. When the player registers damage this can be tweened from fully opaque to fully transparent over some short span of time.

It should be possible to alter the color of the zombie's material in a similar way when they get injured.

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.