Comments (3)
perfectly functional with d45a780 but I need to add some notification to the user that they died and allow the to re-enter play
from cat-meow-side.
my thought process:
Position
- Local: Fire weapon based on angle and position of local player
- Firebase: Send weapon initial location & angle
- Local: Receive weapon initial location and angle from other users
- Local: Render each weapon fire to map
Collision
- Local: Detect if a local users' weapon collides with an opponent cat as rendered on their local map
- Firebase: Send damage subtraction to receiving user, as a firebase
transaction operation
Health
- Local: Receive health updates on all cats
- Local: Update the health for any opponent cats
- Local: Update players own health
- Local: If health falls below zero for any cat, kill player sprite
- Local: Remove cat from map and weapon from existing after death
- Local: If local player health falls below zero, launch modal
You died!
from cat-meow-side.
Closed with PR #30
from cat-meow-side.
Related Issues (20)
- Boss Battle
- setup domain name HOT 2
- opposing cats play sprite animations
- show new features on homepage HOT 2
- number of cats playing
- cat location is offset on the client vs the server
- Uncaught TypeError: Cannot read property 'setCoord' of undefined HOT 1
- scale game window to window/device size HOT 2
- Mobile Compatible Controls HOT 3
- prevent concurrent logins from a single user HOT 1
- follow another cat
- phaser update method slow in safari HOT 4
- user timeout
- google analytics
- show own cat on top of all others
- Favicon HOT 1
- expandable regions
- WASD Movement HOT 1
- redirect heroku app to main domain HOT 1
- Fetch breaks safari version HOT 1
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.
from cat-meow-side.