Top down shooter with pseudo 3d camera?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Jakus
Prole
Posts: 6
Joined: Tue May 28, 2013 7:56 am

Top down shooter with pseudo 3d camera?

Post by Jakus »

Hey hey,

I'm looking at making a top down shooter where things can rise from the screen (eg. helicopter or mortar) and was interested in seeing what is a good way of approaching this?

The camera would always be fixed from directly above but could be fixed to different Z heights. As in player gets shot into the air and the ground gets smaller as camera follows them into the air or player is walking on a platform higher than ground level. Also if a helicopter for example was to pass over; have them larger or smaller depending on their z level and the camera height.

If anyone has any information, tips or resources they could share with me that would be awesome.

Thank you
User avatar
pgimeno
Party member
Posts: 3691
Joined: Sun Oct 18, 2015 2:58 pm

Re: Top down shooter with pseudo 3d camera?

Post by pgimeno »

The world should probably be pure 3D even if drawn in pseudo-3D; therefore, each object should have a height with respect to the ground, and a thickness. Magnification factor is proportional to distance. Calculate the distance from the map to the camera, and from each object to the camera, and apply the corresponding zoom factor. Define a maximum height for the camera, and create your map in such a way that at this height, no borders are visible.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 7 guests