Skip to content

dragaus/Phaser_Snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple snake game made with Phaser 3

Motivation

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.

Clone this project

How to clone:

$ git clone https://github.com/dragaus/Phaser_Snake.git

Game Mechanics

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

Options

Hit Walls

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.

Language

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

Game Controls

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.

Font

The font used in this project is a bitmap font, only supports english alphabet and uppercase characters

Tools

  • 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

Authors

  • Francisco Castañeda - Initial work - dragaus

About

Simple snake made in phase

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages