Top-Down City With Depth
Posted: Thu Apr 15, 2010 11:29 am
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.
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.