A simple snake game made with Phaser 3
This project is made as a learning tool about the capabilities of Phaser 3.
The intention is that anyone can learn how to write a snake with different options with this framework.
How to clone:
$ git clone https://github.com/dragaus/Phaser_Snake.git
This is a classic snake game, you will move the head of the snake in the direction you want, your objective is to eat as much food as you can, after every meal you give the snake will be grow a little, you have to avoid to hit your own body.
Get the highest score and show it in the high score screen
This option enable the possibility to hit the walls, to activate this, you only have to go to the configuration button and enable the option.
This will change the language of the game, and makes easy to add more languages, it's simple as just create an js script with an object and translate the texts, thent add that to the possible languages in language.js
To move the snake you can:
Use your keyboard arrows in the direction you want. ← for left, → for right, ↑ for up, ↓ for down
Use this letters: A for left, D for right, W for up, S for down
Mouse or touch: Pressdown in any place of the screen and quickly swipe in the direction you want to go
Remember that you cannot move in the same axis at time for example if the snake moves to the right you cannot turn them into the left.
The font used in this project is a bitmap font, only supports english alphabet and uppercase characters
- Phaser 3 - Desktop and Mobile HTML5 game framework This was used as a framework to create this project
- Piskel - online editor for animated sprites & pixel art All the images were made in this tool
- TTF TO PNG - online ttf to png generator with json for phaser The font was transform to a bitmap with this tool
- ChipTone - is a free tool for generating sound effects All the sound effects were created in this online tool
- Audacity - Free, open source, cross-platform audio software Transform the wav archives to mp3 with this tool
- Francisco Castañeda - Initial work - dragaus