[lua] local drawBackground = function()
background = display.newImageRect( “bg1.png”, 853, 640 )
background.x 853; background.y = 640
gameGroup:insert( background )
ground = display.newImageRect( “collision.png”, 960, 150 )
ground.x = 960; ground.y = 150
ground.myName = “ground”
local groundShape = { -285,-18, 285,-18, 285,18, -285,18 }
physics.addBody( ground, “static”, { density=1.0, bounce=0, friction=0.5, shape=groundShape } )
gameGroup:insert( ground )
end
[/lua]
Doesn’t seem to work because I still get a blank screen in simulator. And then theirs the objects in the game. The object falling during gameplay is 100x 100 pixels, while the bag( which the player controls) 215 x 215.
[lua]l
ocal lyDensity = 1.0
local lyShape = { -12, 13, 12,-13, 12,13, -12,13 }
local bagShape = { 15, -13, 65,-13, 65,13, 15,13 }[/lua]
[import]uid: 128294 topic_id: 29717 reply_id: 329717[/import]