Top-Down City With Depth

Show off your games, demos and other (playable) creations.
User avatar
Thursdaybloom
Citizen
Posts: 81
Joined: Mon Feb 15, 2010 3:43 am
Location: Australia

Top-Down City With Depth

Post by Thursdaybloom »

This is something I'd been working on the past couple of days. I had the idea of adding depth to a birds-eye-view city. To do this I knew I had to design a way to offset the tops of the buildings based on player location and have them move independently to the streets.

Because of the popularity of GTA it's almost impossible to make a top-down city game without it being classed as a clone. Something like this could obviously end up being used for such a clone, but that's definitely not what I had in mind when I made it. I pretty much just wanted to prove to myself I could achieve it. Despite that, I'm going to keep working on this to see how far I can take it.

Because this is just a proof-of-concept demo I've cheated with the map scrolling by making the city layout one large spritebatch that you move around with WASD. The map itself involves a lot of copy/paste so it's nothing special.

Enjoy.


TODO:
Proper map scrolling
Include player sprite and building collision so you can only "drive" on the roads and pavement

I'd also like to redesign using 64x64 tiles and eventually use Box2d for collisions between cars and buildings



edit: there's now 2 attachments - the original 0.2 and a verson with the dimensions of tileset.png changed to 512x1024. If Topdown City hasn't worked for you previously then try the *-po2.love version and report back.
Attachments
topdowncity 0.2-po2.love
tileset is now 512x1024
(138.98 KiB) Downloaded 726 times
topdowncity 0.2.love
v0.2
hopefully walls dont draw over roofs now
may be just black, if it is try the other version and let me know
(116.62 KiB) Downloaded 625 times
Last edited by Thursdaybloom on Sat Apr 17, 2010 11:05 am, edited 3 times in total.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Top-Down City With Depth

Post by bartbes »

Nicely done.
User avatar
Chief
Party member
Posts: 101
Joined: Fri Mar 12, 2010 7:57 am
Location: Norway, 67° north

Re: Top-Down City With Depth

Post by Chief »

Well that is freaking awesome! Real GTA feeling there!
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Top-Down City With Depth

Post by kikito »

looks promising. Keep up with the good work!
When I write def I mean function.
User avatar
smartazz
Prole
Posts: 13
Joined: Mon Jan 11, 2010 10:04 am
Contact:

Re: Top-Down City With Depth

Post by smartazz »

Not bad at all, good work :)
User avatar
Deecodeuh
Citizen
Posts: 70
Joined: Tue Dec 15, 2009 3:18 am
Location: Michigan, USA

Re: Top-Down City With Depth

Post by Deecodeuh »

Make the roofs black. I can see through the ceilings.
User avatar
Thursdaybloom
Citizen
Posts: 81
Joined: Mon Feb 15, 2010 3:43 am
Location: Australia

Re: Top-Down City With Depth

Post by Thursdaybloom »

Can you screencap that for me because I've not had that issue.
DarkPrince
Prole
Posts: 2
Joined: Tue Mar 02, 2010 4:53 pm

Re: Top-Down City With Depth

Post by DarkPrince »

Also there seems to be a depth issue. When you view from the left of the black tall building up top, you can see the west-side wall of the building to the right of the black building goes OVER the roof... hehe.
User avatar
Thursdaybloom
Citizen
Posts: 81
Joined: Mon Feb 15, 2010 3:43 am
Location: Australia

Re: Top-Down City With Depth

Post by Thursdaybloom »

DarkPrince wrote:Also there seems to be a depth issue. When you view from the left of the black tall building up top, you can see the west-side wall of the building to the right of the black building goes OVER the roof... hehe.
Ok, seems that every building to the right takes drawing precedence over its left-hand neighbour. This could have something to do with the building numbering system I've used. Thanks for pointing that out!


Edit: Updated file. I put the drawing of the roof spritebatches in their own for loop, not at the end of the existing one. This seems to have fixed it. Let me know if it doesn't work for you.
User avatar
nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

Re: Top-Down City With Depth

Post by nevon »

When I run it now, I just get a black screen. Before the update it looked like a garbled mess.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 6 guests