Giter Club home page Giter Club logo

ceros-snake's People

Contributors

mjhasbach avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ceros-snake's Issues

FOUT on Menu Options After Loading Screen

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().

Possible for Head to Collide with Second Segment via Queueing

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

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.