In this first part of my basic movement tutorial series, I want to show you how you can achieve a basic movement system where a object follows the mouse with an easing animation / speed. Additionally we are adding the ability to directly face our desired target (mouse).
Introduction A particle engine is a crucial part in todays game engines and also an easy way to achieve awesome effects / graphics without being an artist. But what exactly is a particle engine? Actually there is really no big magic behind this, all we need is a particle emitter and particle class.
In todays games there is almost always the need to find the quickest way to a desired destination. No matter if you want to create a strategy, hack&slash or just a platformer and especially when it comes to Artificial Intelligence, there must be a performant and reliable system behind your game.
This is the first part of our tutorial series on how to create snake game with and without frameworks. In part one we will be developing a snake using without using any framework, just basic javascrript and canvas-2d. To make it easier to read, the whole tutorial part is inside the source as comments.
On many pages on the web, people still tend to use setInterval() as main function of a gameloop. This is not the best way to do this. Modern browsers are capable of telling you, as soon as they’re ready to render new output using requestAnimationFrame.