It looks like you're new here. If you want to get involved, click one of these buttons!
local tx = Texture.new("mario5.png", true) local matrix = Matrix.new(0.5, 0, 0, 0.5, 0, 0) local shape = Shape.new() shape:setFillStyle(Shape.TEXTURE, tx, matrix) shape:beginPath() shape:moveTo(0,0) shape:lineTo(119,0) shape:lineTo(119,119) shape:lineTo(0,119) shape:closePath() shape:endPath() -- stage:addChild(shape) |
Comments
Likes: hnim, DRS
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps