----------------------------------------------------------------------------------------- -- -- main.lua -- ----------------------------------------------------------------------------------------- -- Your code here display.setStatusBar( display.HiddenStatusBar ) local physics = require( "physics" ) physics.start() --physics.setDrawMode( "hybrid" ) --physics.setDrawMode( "debug" ) local water = display.newImageRect( "water.png", 320, 480 ) water.x = 160 water.y = 240 local ground = display.newImageRect( "ground.png", 320, 70 ) ground.x = 160 ground.y = 445 physics.addBody( ground, "static", { density=1, friction=0.5, bounce=0.3 } ) local box = display.newImageRect( "box.png", 60, 60 ) box.x = 163 box.y = 30 physics.addBody( box, { density=3, friction=0.5, bounce=0.3 } )