Git Product home page Git Product logo

snake's People

Contributors

davidwigley avatar zuninok avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

snake's Issues

TODO Alex

  • Handle four button inputs to trigger directional changes
  • Button input to restart game if it has ended or not started (any button)

-Need four constants for direction representation ie currentDirection is Left, Left = 1.
Right = 2, Up = 3, Down = 4.
Naming convention is as follows: POS_X, NEG_X, POS_Y, NEG_Y. Use preprocessor directives (#defines)

Potential timing issues when adding new links

Inserting a new link currently inserts the new link behind the head and advances the head.

Anyways in the game the snake will apear to have moved twice when it should have moved once. Depending on the speed of the game this could be a problem. WE SHOULD CONSIDER RESETTING THE INTERVAL TIMER ON UPDATE.. I'm not sure how big of a problem this is but resetting the timer could be a possible solution.

Drawing Logic

Add logic for updating pixel colors within the snake definitions file.

Every time the snake is moved we need to change 2 pixels around (front and back)

Food Collision Issue

Some type of problem when eating part of the food after a new game. Does not detect always. Please look into.

Threading Issue

Thread conflicts with push button and interval timer.

Look into locking the thread so only one can have access to snake at a time.

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.