Home/Tag: canvas

January 2017

JavaScript: Do you like games? (Part 6)

2019-03-18T13:58:38+03:00January 25th, 2017|Categories: Games, JavaScript, Technical|Tags: , , , , |

It’s time to cover asteroid generation. I bet you never thought playing with rock would be fun… well, you were wrong! Before we code, let’s visualize and put into words what we want to achieve: we want a class that will draw an asteroid (stroke of genius right here) it should be drawn randomly

JavaScript: Do you like games? (part 5)

2019-03-18T13:58:00+03:00January 19th, 2017|Categories: Games, JavaScript, Technical|Tags: , , , , |

I believe it’s high time we attempted to build a game with the engine we have so far; wouldn’t you agree? We’ll be making Asteroids, which first made its debut in November 1979; released by Atari Inc. There are so many ways we could implement the game: we could use sprite sheets, as we

JavaScript: Do you like games? (part 4)

2019-03-18T13:57:17+03:00January 12th, 2017|Categories: Games, JavaScript, Technical|Tags: , , , , |

We’re going to continue with DisplayObject which extends Scene. You can review the schema in part 1 of this series but we’re going to make some changes to how things are named. Its job is very simple; it will group objects that need to be rendered in a children array and it will expose

JavaScript: Do you like games? (part 3)

2019-03-18T13:55:26+03:00January 5th, 2017|Categories: JavaScript, Technical|Tags: , , , , |

The last article was a bit long so we’re going to move forward in smaller increments. Let’s start with a discussion on how movement works in games. The 18th century Swiss mathematician, physicist, astronomer, logician and engineer (quite a resume) Leonhard Euler devised a way for us to predict where an object’s going to

December 2016

JavaScript: Do you like games? (part 2)

2019-03-18T13:54:41+03:00December 22nd, 2016|Categories: JavaScript, Technical|Tags: , , , , |

Time to get started on the core components of the game engine. We should be able to render something on the Canvas before the end of this article! Note: please be aware that I’ll add links to specific pieces of code in the GIT repository history tree. This will make it easier for you

JavaScript: Do you like games? (part 1)

2019-03-18T13:54:20+03:00December 14th, 2016|Categories: JavaScript, Technical|Tags: , , , |

Maybe I should ask if you’ve ever thought about how games work, perhaps even about building a game from scratch? If not, turn away now; I see lots of math in your future! In my childhood I was fascinated by Mario and other games like it. They were very simplistic and yet extremely fun

Go to Top