Now that we have some notion of how to combine the elements, we'll put them together in the actual code. Because we have two different images that we'll want layered together, the splatter object can't be just a single display object any more. We'll replace it with a group, layer on highlights, and add the impression of motion.
Make sure that the effects folder in your project contains the images
highlight.png. Copy these from the
version 1 subfolder of the
Predation directory in the project pack if needed.
Start by opening the file
blast.lua and perform the following steps:
local category = require "category" local ...