Skip to content

Instantly share code, notes, and snippets.

View diogenesbecker's full-sized avatar

diogenesbecker

View GitHub Profile
@dantes2023
dantes2023 / main.lua
Created August 25, 2014 22:01
Object Moving Along A Bezier Curve Example
local bg = display.newImage("images/bg.png")
bg.x = _W/2; bg.y = _H/2;
local car = display.newImage("images/car.png")
car.x = _W/2
car.y = _H - 250
car.name = "car"
-- understood proprierties of bezier curve
--local curve = bezier:curve({xInitial, xControlPoint1, xControlPoint2, xControlPoint3}, {yInitial, yControlPoint1, yControlPoint2, yControlPoint3})