A simple parallax 3d effect implementation with Corona SDK. This runs on Android and iOS.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 48ff181 Oct 25, 2014
Permalink
Failed to load latest commit information.
res OK Sep 23, 2014
scenes OK Sep 23, 2014
src OK Sep 23, 2014
build.settings ok Sep 23, 2014
config.lua Added helpers.lua Mar 27, 2014
main.lua OK Sep 23, 2014
readme.md Update readme.md Oct 25, 2014

readme.md

Parallax 3d Effect

About

A simple parallax 3d effect implementation with Corona SDK. This runs on Android and iOS. Gravity data from the accelerometer is then used to offset the angle of view. Illusion of depth is created by slightly moving the layers in the right direction, the magnitude of the movement depending on the distance to the eye.

To manage the scene I created 10 different layers. I placed the smaller shark in the front layer (layer 0), the larger shark in the middle (layer 5) and the back image to the background (layer 10).

Layer 0 has 0% displacement according to gravity, and Layer 10 has 100% displacement.

More Info

####Jose's GameDev Blog