Git Product home page Git Product logo

pixel-wars's Introduction

Pixel Wars will be my entry for the First Ever DEV Contest.

Pixel Wars is a web game inspired by Reddit Place. The game will have a square canvas with a number of cells. The player can click on a cell to claim it, and the goal is to have as many cells as possible.

Game rules

  • The game board is a square canvas with a number of cells to be defined.
  • When the player clicks on a cell, the cell is assigned to that player.
  • A player can only claim a cell if nobody has previously claimed any cell or after a different player has claimed a cell, i.e., a player cannot claim two cells consecutively.
  • To ease the previous rule when there are few players, there will be a bot that will claim a random cell if no player has claimed any cell in 2 minutes, or when there are no players connected.
  • The game session will (most probably) not be preserved between connections. When a player leaves the game and comes back later, it will be considered a new player.

How am I going to use Pusher?

This is a real time game in the sense that when a player claims a cell, all other players must be notified as soon as possible. Therefore, I'm going to send updates to the game board using Pusher. Also, the game will have a leaderboard featuring the players with most cells claimed currently and in total. The leaderboard will also be updated in real time using Pusher.

Tech stack

I will create a simple backend with Node and MongoDB and I will use Elm in the frontend.

That was my introduction. I hope to see plenty of entries, and good luck to everybody participating in the challenge!

pixel-wars's People

Contributors

avalander avatar

Stargazers

Jakob Gebler avatar Bertrand de Bodinat avatar  avatar  avatar Anatoliy Antoneko avatar StarHeart avatar caio avatar Frank Rosner avatar

Watchers

James Cloos avatar caio avatar  avatar

pixel-wars's Issues

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.