cs679-project2's People
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.
Add audio
Audio would add greatly to the game's atmosphere.
See example here: https://github.com/mrdoob/three.js/blob/master/examples/misc_sound.html
Onscreen countdown to respawn after being killed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.