Giter Club home page Giter Club logo

cessnake's Introduction

CESSnake

An implementation of Snake using my component entity framework

cessnake's People

Contributors

laarz avatar skylarbpayne avatar

Watchers

 avatar

cessnake's Issues

Coins placed on snake

Sometimes, the random position of the coin happens to be on top of the snake. If/when this happens, move the coin to a different location.

Add End Scene

The End Scene should display the final length of the snake as well as how long the snake survived. The message to switch to End Scene should take place in the Scoring System (so the time and score can be passed.

CoinSystem

This system should manage coins, their removal and respawning.

Really it will inherit from IListener and then implement the OnMessage method, which will do something like the following psuedo-code:

if first entity is snake head and second entity is coin
then destroy coin
respawncoin()

and in respawncoin() :
CreateEntityMessage msg;
msg.script = coin;
msg.position = random % screen size

Scoring System

The Scoring System should take collision messages and when it occurs between snake head and coin, update the score. Also display the time. Also responsible for rendering the current score on the top.

Random space after adding new piece

After a piece is added to the snake, a gap appears in the snake. It is quickly fixed, but I would rather that not happen at all.

It's likely to be an issue with the movement (tail moved behind head) messing up when a new piece is added (right behind head).

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.