local ball = Bitmap.new(Texture.new("ball.png", true))
ball:setAnchorPoint(0.5, 0.5)
ball:setPosition(50, 100)
stage:addChild(ball)
local crate = Bitmap.new(Texture.new("crate.png", true))
crate:setAnchorPoint(0.5, 0.5)
crate:setPosition(250, 100)
stage:addChild(crate)
local text = TextField.new(nil, "You can use these assets")
text:setPosition(50, 250)
text:setScale(4)
stage:addChild(text)
stage:addEventListener(Event.ENTER_FRAME, function()
ball:setRotation(ball:getRotation()+5)
crate:setScale(crate:getScale()+0.01)
if crate:getScale() > 2 then
crate:setScale(1)
end
end)