Retroizer is a gadget for transforming your CBEffects particle effects to retro-style. It takes any vent data table and transforms it into a retro grid-based vent. It changes the build function to create rectangles, uses onUpdate to clamp them to a grid, and, in all, looks pretty cool and 8-bit.
Usage:
[lua]
local CBE=require(“CBEffects.Library”) – Do this before require()-ing Retroizer!
local retroizer=require(“retroizer”)
local myVentParams={ – Vent parameters, not VentGroup parameters
preset=“fountain”,
physics={
velocity=24,
sizeX=0,
sizeY=0
}
}
local retroParams=retroizer.retroize{
data=myVentParams, – Original vent data
cellSize=24, – Width/height particles will be clamped to
particleSize=24 – Width/height of each particle
}
local VentGroup=CBE.VentGroup{
retroParams – Use retro parameters in VentGroup
}
VentGroup:startMaster()
[/lua]
Enjoy!