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.
Top-Down City With Depth
- Thursdaybloom
- Citizen
- Posts: 81
- Joined: Mon Feb 15, 2010 3:43 am
- Location: Australia
Top-Down City With Depth
- Attachments
-
topdowncity 0.2-po2.love
- tileset is now 512x1024
- (138.98 KiB) Downloaded 709 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 609 times
Last edited by Thursdaybloom on Sat Apr 17, 2010 11:05 am, edited 3 times in total.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Top-Down City With Depth
Nicely done.
Re: Top-Down City With Depth
Well that is freaking awesome! Real GTA feeling there!
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Top-Down City With Depth
looks promising. Keep up with the good work!
When I write def I mean function.
Re: Top-Down City With Depth
Not bad at all, good work ![Smile :)](./images/smilies/ms-smile.png)
![Smile :)](./images/smilies/ms-smile.png)
Re: Top-Down City With Depth
Make the roofs black. I can see through the ceilings.
Twitta! http://twitter.com/#!/CodaBrink
- Thursdaybloom
- Citizen
- Posts: 81
- Joined: Mon Feb 15, 2010 3:43 am
- Location: Australia
Re: Top-Down City With Depth
Can you screencap that for me because I've not had that issue.
-
- Prole
- Posts: 2
- Joined: Tue Mar 02, 2010 4:53 pm
Re: Top-Down City With Depth
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.
- Thursdaybloom
- Citizen
- Posts: 81
- Joined: Mon Feb 15, 2010 3:43 am
- Location: Australia
Re: Top-Down City With Depth
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!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.
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.
- 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
When I run it now, I just get a black screen. Before the update it looked like a garbled mess.
Who is online
Users browsing this forum: No registered users and 0 guests