epidemian / snake Goto Github PK
View Code? Open in Web Editor NEWA silly snake game on the browser URL
Home Page: http://demian.ferrei.ro/snake
License: The Unlicense
A silly snake game on the browser URL
Home Page: http://demian.ferrei.ro/snake
License: The Unlicense
So mad idea) Awesome work! ๐ ๐
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:
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:
Not great, but somewhat playable.
And on Chrome / Ubuntu it looks perfect:
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!
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.
UNLICENSE means every can use freely ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.