HTML5 Snake Game

Nokia Snake GameThe first game we will develop in this HTML5 Game tutorial, is the Snake game. Many of you will remember this game as a pre-loaded game on old Nokia phones. For those who don’t recognize the game, read the following gameplay description:

The player controls a snake, which roams around on a bordered plane, picking up food, trying to avoid hitting its own tail or the “walls” that surround the playing area. Each time the snake eats a piece of food, its tail grows longer, making the game increasingly difficult. The user controls the direction of the snake’s head (up, down, left, or right), and the snake’s body follows. The player cannot stop the snake from moving while the game is in progress, and cannot make the snake go in reverse. source: Wikipedia, Snake game.

Snake is a classic game. The first Snake-like game is from late 70s, (Blockade in 1976, Surround in 1977, Worm in 1978,…). Since then, there have been many versions, so it’s almost all invented. For example, a version with hexagon tiles (Hex Snake). Another example is a HTML5 Multiplayer Snake with node.JS that uses Physics (Snakes).

This is a perfect game for a tutorial. It is simple enough to NOT take us months to develop. And it is also easy to modify and introduce new mechanics, new game options or whathever you want to test.

In this first game, i will cover the following topics:

  • New HTML5 elements useful in game development.
  • Javascript tutorials. IDEs. jsFiddle.
  • Game Loop.
  • Game Objects.
  • Canvas drawing.
  • Animations.
  • Events. Controls.
  • Collisions.
  • UI design with jQuery UI.
  • Levels.
  • Sound.
  • Accelerometer. Phonegap.
  • HTML5 Game Engines. CraftyJS.
  • Snake game using CraftyJS.
  • Physics. Box2dWeb.
  • Google Analytics stats. Google Adsense.
  • Multiplayer. Node.JS
  • Persistence. MongoDB.
  • Badges. Achievements.
  • Facebook.

Posted in Game Development | Tagged | Leave a comment

HTML5 game development tutorials

HTML5 games

Before starting the Game Design and HTML5 Game Development tutorial, I want to select a set of basic tutorials about HTML5 game development from other sources. So, if you have a faster pace than the posting of this tutorial, you have material to continue at your own pace.

They also serve to have examples of games in different genres. Because surely, the game with which begins the tutorial, will not match the one you like to do. However, the objective is that you can follow the tutorial as you develop your own ​​video game idea. I’ll try to be as generic as possible.

These are the tutorials on HTML5 game development that i have found:

Posted in Game Development | Tagged , | Leave a comment

Game Design and HTML5 Game Development tutorial

Learn from scratch

Over the coming weeks, i will be publishing a series of articles on design and game development with what I have learned in recent months. This is a tutorial written by a rookie and led to other rookies who want to learn to develop and program video games. So I will try not to presuppose any knowledge by the reader. I’ll try not to leave unexplained any concept, or at least offer a reference through which the reader can understand what is being said. Is expected that the reader is eager to learn and swallow large quantities of docs.

Videogames Development Process

Independent Games “indie”

The articles will focus on independent game development. It will give us time to make a game ‘AAA’ (triple A is a commercial video games with million dollar budgets and teams of hundreds of developers). Although there could be some similarities, design and develop a commercial videogame ‘AAA’ is a completely different world. An independent game does not have the financial backing of a major distributor of video games, that means that resources for the development of the game are quite limited. Generally it is one person who invests their time and some money to create it.

It is very difficult for an independent game be economically viable for its creator. However, in recent years, internet distribution, the explosion of mobiles ( Android and iPhone) and the development of several digital distribution platforms are making it easier to expand the market for indie games.

For most, create an independent game, it’s a hobby. seeks the personal satisfaction of create the game based on an idea he loves. But it also serves as a ‘portfolio’ and gateway to the video game industry.

Programing

Because I have no art skills, articles are only useful if you are interested in a programming approach. When I talk about design, I am not talking about the creation of graphic art, but the idea generation, the game mechanics and structure.

Why HTML5

HTML5, CSS3 and Javascript are technologies accessible to everyone. It’s easy to start doing things in HTML5, and we dispose of a set of related technologies very useful for creating video games.

Objectives

The idea of ​​this series is to develop a small game, which will allow us to move fast to test the following technologies and methodologies.

  • Game Design (pre-production, prototype, production and post production)
  • Basic marketing plan
  • HTML5, CSS3 and JavaScript
  • CraftyJS, jQuery UI, Box2dWeb.
  • PhoneGap.
  • NodeJS
  • MongoDB.
  • Social Games (Facebook).

Posted in Game Development | Tagged , , | Leave a comment