Giter Club home page Giter Club logo

snake's Introduction

URL Snake

Play the classic snake game on a URL!

https://demian.ferrei.ro/snake

This is how the game should look:

Pro level gameplay

Note that the game might be unplayable on some browsers for different reasons, like the browser not showing the full URL, or not allowing it to change so frequently, or escaping the Braille characters used to display the game.

Although this game is kind of a joke, bug reports, ideas and pull requests are always welcome!

snake's People

Contributors

epidemian avatar nishanbajracharya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

snake's Issues

Game does not render properly on most browsers

The problem

The game used to look like this:

But for a while now, browsers have been URL-escaping whitespace characters on the URL, so the game started looking like this:

snake-escaped

Totally unplayable :(

I tried to remedy this on 0858429, with some very hacky and questionable code that tries to pick some Unicode character to replace the empty Braille characters (U+2800) on the URL if they are being escaped.

This how it currently looks on my system on Firefox / Ubuntu:

snake-ff

Not great, but somewhat playable.

And on Chrome / Ubuntu it looks perfect:

snake-chrome

But this is due to a quirk of how Chrome is rendering the U+0ADF Unicode character, and it's most likely a bug that will get fixed by the browser at some point (on Windows it doesn't look like that).

I don't have a Windows or MacOS system, but i've tried using BrowserStack to test the game on those systems, and the results are not pretty :(


What could we do?

I don't know. It would be really nice to find some other way to make the game as playable as it used to be. Maybe finding another Unicode character that is less disruptive and works better in most systems (i've tried looking for similarly-sized and almost-blank characters over all the Unicode range already... so i don't have much hope there). Or trying out some other creative way of rendering the game on the address bar.

This issue is an open question. Any ideas are welcomed!

Speed adjustment controls

I think there should be controls to adjust the speed of the game. It might be rather fast for some. I can contribute with a pull request if possible.

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.