
78 ◾ HTML5 Game Development from the Ground Up
e nal set of events is shown in Figure6.41.
When we boost the player speed, it would be nice to show some visual
feedback, so this is a good time to introduce particle eects.
Particles are just another predened object we can easily add into our
project and layout (we nd it under the general section next to the Sprite
object), so let’s add one and name it “boost.” As soon as we place it in the
layout or double click on it, the image editor opens up: we can now draw
our own particles. For this example, we can rst reduce the size of the
image from the default 256 × 256 to 32 × 32 via the resize ...