Coder Social home page Coder Social logo

squaresplosion's Introduction

Squaresplosion

Squaresplosion is a game about squares... and explosions. Move around to increase your score. Run into other player squares to explode them. Be careful though, if another square runs into you, you explode!

gif demonstrating gameplay

FAQ

Link? Where can I play it?

We took down the server after a while so there isn't a link we can give you anymore. If you do want to play, all the code is here and open source, so you just need to get it running on your own server. It ran pretty well on the smallest Digital Ocean droplet when we were hosting it.

How does it work?

The frontend is simple static HTML/CSS/JS. The game is on an HTML5 Canvas. Multiplayer coordination is handled via a central stateful websocket server, written in Rust. All state is in-memory.

No - I meant how do I play??

Oh. WASD or arrow keys to move. That's about it.

Can I play with others?

You can only play with others! There is no single player mode. Pick a room name and send it to your friends. After you all join the same room, you can start squaresploding.

The colors are inconsistent, why?

Because we didn't build in functionality to keep consistent colors. As a result, sometimes you and another square will be the same color. We are sorry.

The square that explodes after a collision seems random sometimes - whats the deal?

Whoever enters a space of an existing square wins. As an example, if square A is sitting still and square B moves into square A, square A will explode. If both squares are moving, then the square that wins depends on which movement command reached the server first. The server is in New York - plan accordingly.

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.