Code Monkey home page Code Monkey logo

octaball's Introduction

octaball

a two player "paper and pencil" game

try it out: tam724.github.io/octaball/

rules

  • from each point the ball can be moved in 8 directions (horizontal, vertical, diagonal)
  • the players move the ball in turns until one of them scores a goal or can no longer move the ball
  • each shot can be taken only once
  • if a player moves the ball to a point where there is at least one shot or the point is at the border the same player has the turn again

controls

  • desktop: use the 'q w e a d y x c' keys to move the ball
  • mobile: swipe anywhere on the field into the direction you want to play

octaball's People

Contributors

tam724 avatar

Stargazers

Julius avatar

Watchers

James Cloos avatar  avatar Steffen Runde avatar Julius avatar

Forkers

mrunde

octaball's Issues

Add a spectator mode

A user can "spectate" a game, he should be able to connect, disconnect throughout the game
a user joining a running game, automatically is in spectator mode
if one of the players disconnects, a spectator can change to player mode
after a game the players and spectators can change modes

Allow players to reconnect

A game should be available as long as any player is connected. (+ maybe an additional time)
If one player disconnects (to any reason: bad signal, tab closed, ..) he should be able to reconnect and play on.

develop a new online game protocol

  • current messaging should be restructured and simplified
  • it should be easy to add messages for new game features
  • maybe we should add error messages

Refactor the server to a "state machine"

should be done along with #16
enables error messages: if the server receives a message, the current state does not support -> error
Possible states: stopped, playing, paused, ?

Add a "back" functionality

As we are using a single HTML file, the browser redirects to the previous page when pressing "back".
At least from the connect, or singleplayer layout the browser should redirect to the main page.
This could be implemented in layoutController.

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.