Skip to content
- In game.lua, create theFloor and theCeiling using the image “floor.png”
- For Corona SDK, the grid looks like this: https://coronafaqs.files.wordpress.com/2012/01/native_coordinate_system.jpg. (0,0) is at the top left corner, increasing x goes rightwards and increasing y goes downward. The x positions for both variables should be at 0. What should the y variables be? Use display.contentHeight * a number
- Add a physics body that is static
- Add them to the screen group.
- In the functions scene:show and scene:hide, add and remove collision event listeners that use the function onCollision as listeners.
- Check your app. You should not be able to extent beyond the top and bottom of the app screen.