Git Product home page Git Product logo

Comments (3)

benz2012 avatar benz2012 commented on September 14, 2024

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.

benz2012 avatar benz2012 commented on September 14, 2024

my thought process:

Position

  1. Local: Fire weapon based on angle and position of local player
  2. Firebase: Send weapon initial location & angle
  3. Local: Receive weapon initial location and angle from other users
  4. Local: Render each weapon fire to map

Collision

  1. Local: Detect if a local users' weapon collides with an opponent cat as rendered on their local map
  2. Firebase: Send damage subtraction to receiving user, as a firebase transaction operation

Health

  1. Local: Receive health updates on all cats
  2. Local: Update the health for any opponent cats
  3. Local: Update players own health
  4. Local: If health falls below zero for any cat, kill player sprite
  5. Local: Remove cat from map and weapon from existing after death
  6. Local: If local player health falls below zero, launch modal You died!

from cat-meow-side.

benz2012 avatar benz2012 commented on September 14, 2024

Closed with PR #30

from cat-meow-side.

Related Issues (20)

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.