Giter VIP home page Giter VIP logo

copsandrunners's Introduction

copsandrunners's People

Contributors

suiramdev avatar

Stargazers

 avatar  avatar

Watchers

 avatar

copsandrunners's Issues

Jail

Code:

  • Remove the weapon on placement
  • Delete the jail every new games #5
  • Jail placement preview

Model:

  • Better normal map quality on the pool
  • Add a mat plastic texture on the balls
  • Better mesh definition on the balls
  • Resize the balls and pool for a better fit in game
  • Add a bottom backface to the pool
  • Add a colision outline to the pool
  • Add a player delimiter to the model

Throwing plastic balls

Code:

  • Equip as a weapon
  • Left click : Direct shot with an already set trajectory
  • Right click: Load the shot with a vision of the trajectory
  • Can stun or push a player
  • Limit the lifetime of the ball before it despawn on the ground
  • The color of the balls changes with each throw (random)
    (Implement an easter egg where you can have a golden ball with special effects ?)

Model:

  • Plastic color ball
  • Player hand with the ball

Animation

  • Pick up balls from the pool
  • Throwing the ball
  • Idle animation ? (Play around with the ball, throws it in the air or sum)

Arrest

Code

  • Teleport the user to the jail
  • Enable collisions with the jail

Unarrest

Code

  • Remove user's collisions with the jail

Game states

Summary

Behavior

  1. The game starts with a timer when it reaches the minimum required players. For the users who have times to join, this first timer will take time, but the game owner will be able to start directly the game from the scoreboard.
  2. Once the game is started, roles are picked, and the robbers will have a few minutes to hide from the cop before he places the jail and starts chasing.
  3. Then, the game occurs and restarts once the timer ends or the entire robber team is arrested.

Todos

Code

  • Define states
  • Game loop
    • Set players' role
    • go through the different states with a cooldown
  • Display the timer on UI
  • Display the current state on UI
  • End the game if all the robbers got arrested
  • Display the winners
  • Add the force start button to the scoreboard, see #12

Role transfer

Add interaction with the cops, letting the police chief give his role.

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.