This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- A Example of code with Button with two functions | |
local player = display.newImageRect("player.png", 160,110) | |
local flip = display.newImageRect("swordIcon.png", 50,40) | |
flip.x = W/1 - 50 | |
flip.y = H/2 + 200 | |
local flip2 = display.newImageRect("swordIcon.png", 50,40) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}) |