Coder Social home page Coder Social logo

tankgame's People

Contributors

k-u-s avatar konkit avatar llostris avatar maciekbb avatar mmateja avatar raddyr avatar slakomy avatar slawex avatar tep-pl avatar tpachana-kontakt avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tankgame's Issues

Shooting (3)

Handling shooting on backend side - accepting event, creation of missle, broadcasting missle creation to all players.

Rooms

Splitting the game to different rooms, where game is played independently.

Event naming convention

I would remove blank spaces from events name, e.g.
"move player" -> "player:moved"
and listener for this event onPlayerMoved

Persist tanks positions on frontend (3)

We should have data structures that represent tasks positions and handles tanks behaviour.

Example usage

tank = new Tank({ login: "maciek", coordinates: [2, 3], life: 3, points: 5 });
tank.moveUp().then(function(tank) { // moveUp returns a promise that is resolved after server acknowledge move
    // tanks.coordinates == [2, 4]       
})

CORS issue

At the moment there are no possibility to play on 2 clients. Try to set '*' in HTTP config

World update (3)

Updating bullets positions
Updating state of static map elements.

Handle keyboard events (1)

We need an entity that abstract keyboard i.e. listens to keyboard keys press and emits appropriate events.

Usage example

k = new KeyboardListener();
k.on("up:arrow:pressed", function() {
  // handle up arrow pressed
});

Canvas rendering (13)

The only responsibility of the canvas should be to take data structure and render it.
Canvas should not mutate its state itself! It might trigger some events if needed (e.g. if tank is about to collide with a wall)

Authentication

Low priority task for user authentication, signing up, signing in etc.

Deploy app to heroku

We should deploy app to heroku to be able to present app easily, what do you think?

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.