Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Retroizer
Started by Caleb P Apr 11 2013 03:44 AM

3 replies to this topic
retro retroizer cbeffects grid-based
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Caleb P

[GLOBAL: userInfoPane.html]
Caleb P
  • Corona Geek

  • 1,424 posts
  • Corona SDK

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:

 

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()

 
Enjoy!
 
 
getitfromgymbyl.png
 
 


[TOPIC: post.html]
#2

SegaBoy

[GLOBAL: userInfoPane.html]
SegaBoy
  • Contributor

  • 635 posts
  • Corona SDK

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



[TOPIC: post.html]
#3

Caleb P

[GLOBAL: userInfoPane.html]
Caleb P
  • Corona Geek

  • 1,424 posts
  • Corona SDK

Glad you like it :)

 

C



[TOPIC: post.html]
#4

Caleb P

[GLOBAL: userInfoPane.html]
Caleb P
  • Corona Geek

  • 1,424 posts
  • Corona SDK

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




[topic_controls]
 
[/topic_controls]