jbttn / lovely-snake Goto Github PK
View Code? Open in Web Editor NEWA snake clone using the LOVE framework
A snake clone using the LOVE framework
Right now game states are handled by being stored in a variable which is checked to determine which state the game is in, I feel this could be improved. Interesting resource about this topic: http://www.dafishinsea.com/blog/2011/06/16/stop-programming-in-javascript/
It would be nice if some type of score was kept and saved, points could be awarded on when eating food and staying alive for specified amounts of time. High scores should be saved with player initials.
Background music would be nice. Helpful link: http://love2d.org/wiki/Tutorial:Audio
The first level isn't very well made, it was mostly just random stuff for testing the level scrolling and could be improved.
Instead of losing the game on a wall collision, the snake would simply come out on the opposite side of the screen.
The snake would move in the direction of the mouse pointer. The Level:get_coords(type_of_coords, x_pos, y_pos) function would give you the mouse pointer position in game world coordinates and would be useful (type_of_coords would probably be set to "screen")
Use the arrow keys and enter / return to select options.
Sound effects on death, eating a food item, and maybe menu selection.
On this resolution specifically I get a very strange slowdown on Windows 7 x64... The program isn't using many resources when the slowdown occurs, have a feeling it's a LOVE issue.
As of now, when the game ends it returns to the title screen. It would be nice to have an actual Game Over screen with a place to enter initials for saving the score.
The game continues as soon as it is unpaused, might be nice to add some sort of delay so the player can prepare themselves.
Food items are stored in a table located in the Food class. At this time only one food item is stored but multiple food items can be inserted and indexed numerically. Modifying the food list table we could add a "power up" attribute to add some special ability or provide bonus points.
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.