Skip to main content

Snake Game

Simple Snake Game using HTML5 canvas and Pure Javascript

This tutorial tackles on how to create a simple snake game using HTML5 canvas and pure Javascript. Snake game a simple game wherein there is a small snake at first and gets bigger whenever it eats a food that randomly appears on the screen. The goal of this game is to get a high score which depends on how big your snake gets.

Snake Game using Javascript

In this tutorial, I am going to teach on how to create a snake game in javascript. Just download the source code and follow the instructions below. DIRECTIONS HTML Code snake[i-1].xx) { context.drawImage(snakeTailImage, (snake[i].xx * 32), (snake[i].yy * 32) ); } //following right else if(snake[i].xx snake[i-1].yy) { drawRotatedImage(snakeTailImage,(snake[i].xx * 32), (snake[i].yy * 32), 90); } /

Snake Game

This is a short and simple game program based on the mobile Snake Game popularized by the classic Nokia mobile phone models. The program demonstrates the use of Struct and Enum keywords in VB .Net 2010. The game uses the arrow keys on the keyboard. The snake increases its length and speed by 1 square unit (10 pixels x 10 pixels) and by 4 percent of its initial speed respectively for every