Tag: html5 game dev

HTML5 Canvas Element

The canvas element is used to draw custom graphics on a webpage, and can also be used to animate images. html games are often created using the canvas element, as you can create custom graphics and animate characters or run mathematical calculations. For example, you could make a character image…

Continue Reading HTML5 Canvas Element

JavaScript Objects Explained

An object in JavaScript is a way to put related functions and variables into one container variable. An object is a type of variable, that is a data structure. Using objects can allow you to store related data together, which can result in more organised code and better readability. The…

Continue Reading JavaScript Objects Explained

JavaScript Random Function Explained

The random function in JavaScript is used to generate randomly generated numbers while programming. Random generation can be used for generating random numbers, procedural levels for games, and much more. It can also be used to pick certain routes through code based on random selection rather than the result of…

Continue Reading JavaScript Random Function Explained

Functions in JavaScript

Functions allows you to create code that can be called repeatable in different areas of the code without having to rewrite the code. We can also pass parameters into function to allow us to get slightly different results. Imagine a multiplication or two numbers, it is the same operation but…

Continue Reading Functions in JavaScript