It looks like you're new here. If you want to get involved, click one of these buttons!
QuasarCreator
Member
local square = b2.PolygonShape.setAsBox(20, 20, 0, 0, 0) square:setFillStyle(Shape.NONE) square:setLineStyle(1, 0x000FF, 2) self:addChild(square) |
Comments
require "box2d"
In example:
The second example just draws a square on the screen, and returns a sprite you can scale, rotate, and such.
Hope it helps
Eli
Likes: QuasarCreator