Member-only story

All you need to

Make HTML 5 Games — Tile Game Tutorial

Dr Abstract
Level Up Coding
Published in
20 min readApr 30, 2024

--

In this tutorial and matching video tutorial, we will go through the steps to code a tile game using the HTML 5 Canvas and JavaScript.

An HTML 5 Tile Game to spot which orbs do not change!

Tile games are basically games arranged in a grid or with tiles that you drag around. In this case, we have a grid-based game to spot which objects are not changing as the rest of the objects change. This game could also be called a pattern game.

At the bottom of the screen is the number of “eternal” objects to find and the time it has taken. There are five levels, each time there are more objects and more objects to find. A Leader board is used to keep track of the lowest times.

We have two examples, a Simple Tile Game and a Complete Tile Game. You are welcome to look over the simple one first but the tutorial will show the steps to make the complete game.

Preparation

Anyone should be able to follow the steps and make the game, however there are many skills and techniques used to make this type of game on your own. Here is ◎ Your Guide To Coding Creativity on the Canvas which introduces this magical world.

--

--

Written by Dr Abstract

Inventor, Founder of ZIM JavaScript Canvas Framework and Nodism, Professor of Interactive Media at Sheridan, Canadian New Media Awards Programmer and Educator

Responses (1)

What are your thoughts?