JSnake Game Script

This is the classic Snake game which I’ve written using JavaScript ans some CSS3 for the designing.

Easy to personalize, theme design, internal code, and easy to play!

JSnake Main page

Demo – Play Now!

Any features can be added just by some few lines!
Any skins could be used with the powerful CSS3!
Any how can be played, either in a touch device, keyboard, joy stick, mouse, kinect, gyroscope, whatever. (Of course it needs external software.)

JSnake User Play

Tested and works in almost any browser.

Although The CSSes are written for webkit browsers (Chrome and Safari) at the moment.

More features will be add and bugs will be resolved soon in the future.

JSnake in demo mode

Map Design and Block types Help:
You can create a map using the Map Design toolbox. To do this, simply click on the block type you want to add, then click on the empty space you want to add the block.
Ctrl + Click will force the space to become that block type.
Double click will activate smart play. The snake will be automatically leaded to that point.

Types of Blocks:
Seed (Glowing green):
Gives the snake score and Increases the length.
Potion (Glowing pink): Can be defined to give Snake a super power, like crossing the blocks, or flashing the screen. Take a look at the source, It’s up to you.
Normal Block (Yellow): Avoid this kind of blocks. Game over is guaranteed!
Detour1 and Detour2 (Cyan): Forces the snake to turn around in a different direction.
Reverse (Purple): Replaces the snake’s head and butt.
Teleport (Blue): Transfers snake to another teleport station. Use two of this block type in your map.
Switch (Green or Red): Switches something on or off. For example, can hide Normal blocks temporarily.

After designing the map, you can generate a code for each type of block. Once again, click on the desired type into the toolbox, and then press “Generate Map”. Copy the code into a blank notepad file and do this for each of block types.

Download the source code

Contact me if you have any questions or suggestions!

David@Refoua.me


This script is also available and hosted by: SourceForge Project’s Link | Your Javascript Source
Introduced in these Persian forums: | Majid Online | Pro Makers | Gem SoftP30 World | Persian Script | Moisrex | TakFal |

Leave a Reply

Your email address will not be published. Required fields are marked *

Anti-Spam by WP-SpamShield