mjhasbach / ceros-snake Goto Github PK
View Code? Open in Web Editor NEWA remake of the iconic 70's Snake game powered by HTML5 and JavaScript
Home Page: https://ceros-snake.hasba.ch
License: Other
A remake of the iconic 70's Snake game powered by HTML5 and JavaScript
Home Page: https://ceros-snake.hasba.ch
License: Other
The menu options can be briefly seen transitioning from unformatted text to icons after the loading screen begins to fade out. I have tried a timeout function on assets.waitForAsync()
's callback, manually drawing the menu shapes, layer, and stage after assets.waitForAsync()
's callback, and a .start()
/ .stop()
of menu.animation
. Those attempts were all somewhat redundant, as transitionListener()
in events.js
already draws the layer after adding it to the stage.
This bug was not present prior to transitioning to RequireJS and RequireJS plugins. I have checked the documented example in the RequireJS plugins repo, and my web font configuration appears to be correct. In addition, I have tried the "wf-loading" CSS trick seen in the example to no avail.
That being said, I believe this might have to do with the menu shapes being generated and added to the layer prior to the web fonts being loaded. One potential solution might be deferring the menu module's initialization until after assets.waitForAsync()
.
To reproduce, while travelling right, quickly queue the following movements: up, right, left.
The snake needs to be at least three segments long for the collision to occur.
game.snake.direction.currentIsNotOppositeOf will need to be refactored into something like game.snake.direction.currentOrLastQueuedIsNotOppositeOf
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.