Source Code

The source code is created with Codea and an iPad, this game engine let you create the game and test it in the iDevice at the same time.

You can do some interesting things like a rope (Lua code):
rope = physics.joint(ROPE, bodyA, bodyB, anchorA, anchorB, length)
Or planet physics...

-- Planets physics
local x,y = self.base.position.x, self.base.position.y
for _,b in ipairs (debugDraw.bodies) do
if b.type == DYNAMIC then
local grav = vec2(x-b.position.x,y-b.position.y)/2
b:applyForce(grav)
end
end