display.setStatusBar(display.HiddenStatusBar) local physics = require("physics") physics.start() --physics.setDrawMode("hybrid") local main = display.newGroup() local crate = display.newRect( 200,200,60,60 ) physics.addBody( crate, "static", { density=0.8 } ) main:insert(crate) --main.xScale = 0.5 --main.yScale = 0.5 -- Create the particle system local particleSystem = physics.newParticleSystem{ filename = "particle.png", radius = 6, imageRadius = 6 } -- Paramaters for particle local particleParams = { flags = { "water" }, color = { 1, 0, 0, 1 }, x = 200, y = 100, lifetime = 32.0 } particleSystem:createParticle( particleParams ) main:insert(particleSystem)
main.xScale = 0.5
main.yScale = 0.5