Retroizer

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!

getitfromgymbyl.png

Awesome as ever Caleb - just embarking on a pixelart project, so definitely looking forward to seeing this in action…

Glad you like it :slight_smile:

C

For anyone who has downloaded this, please re-download it. There was a minor issue that I’ve fixed now with the overwriting of the onUpdate function. It should work now.

C

Awesome as ever Caleb - just embarking on a pixelart project, so definitely looking forward to seeing this in action…

Glad you like it :slight_smile:

C

For anyone who has downloaded this, please re-download it. There was a minor issue that I’ve fixed now with the overwriting of the onUpdate function. It should work now.

C