(Renkum, Sunday 3rd of June 2012)

Goal

Despite of all my experience in IT as a developer, team leader and architect I’m a bit of starter when it comes to HTML5. My goal however is to write my favourite 20 minutes coding game in HTML5.

I would like to experience how much time I need to invest to be able to write a reasonable game.

You’ll ask: “What the # is your favourite 20 minutes coding game”. Well that is a little character based game on my Commodore 64 that I could instantly code in 20 minutes before playing it.

The 20 minute coding Commodore 64 game

The goal of that game was easy, I used 3 different characters (using the special C= button on the commodore, you could put the Commodore in an alternative, sort of Wingdings, character set with hearts, arrows etcetera). One character (a heart) is the item to grab, an other character is the item to avoid (a star) and the last character is the vehicle that you need to control to grab the wanted items (an arrow).

The stars and hearts (each 50) are randomly spread out over the field (used to be 40 characters wide and 25 characters high) and the arrow travels from down to up each timer tick (f E each 500 milliseconds). The gamer needs to control the arrow using the [S] and the [A].

When the arrow leaves the screen on the upper side, it will appear again on the lower side. When it leaves the screen on the left side, it will appear on the right side and vice versa.

So the game looked like shown below:

C64 Game

 

And now HTML5

As I said before, I’m a newbie in HTML5. So yesterday I spend 3 hours following a free online HTML5 course on W3Schools.com and I think that I know enough to start programming my game.

I will start using a <canvas> to draw the game in. <canvas> is a new HTML5 tag which you can use as an area to paint in. It has been designed to be used by  gaming developers. Well I’m going to write a game (it is however a slow one, but it is still a game).  You can also use the new vector graphics, but I'll do that later.

 


Day1 Day2
Day3
Day4 Day5 Day6 Day7
back to index