• Register

Trash scape is a real-time city builder based in a world where the earth has become inhospitable for human life. The game is designed so the player can build their dream sky city, whether it is a slum, or a pristine city with a full power grid. In order to create the perfect city the player will need to build power routes, construct farms and trade with merchants and slavers. The game was built in 7 days in ludum dares 7day rts comp.

Report RSS DevBlog #2 AI, pathfinding and plans

This weeks main focus for development was the AI and its role among the world. The AI will be the players main source of profit in the world. They will work, eat, attend jobs , sleep and explore the world.

Posted by on

Check out devblog #1

This weeks main focus for development was the AI and is role among the world. The AI will be the players main source of profit in the world. They will work, eat, attend jobs , sleep and explore the world.

Pathfinding

I decided to use a simple A* path-finding algorithm for the AI that will allow them to navigate the world without running into objects and get places easy. It uses a grid based system which also features dynamic pathfinding. For example here you can see an empty area with walk-able areas (The green tiles)


Now you can see I added some cubes (representing buildings), the tiles below these cubes have turned read which are now no longer walk-able. (bonus points if you noticed you can rotate buildingsin this build)

General AI

Some thing I feel really strong about in TrashScape is building a community, not a city. In games such as simcity you run massive expansive citys with thousands of occupants, none of which you care about. In TrashScape I would rather have 30-60 AI all realistic working, living their lifes and being realistic. For this reason I have created and AI that, like a player would in a survival game, has their own goals, aspirations and needs.

Obviously such a huge undertaking is not going to happen in a week so in the mean time here is a screenshot of an AI working a stall and some others buying from it.


In the coming weeks I hope to get the AI implemented. This will involve having houses, beds, jobs, money, trading and more.

Thats about it this week, stay tuned. In the mean time please follow the game on indiedb, twitter , and facebook.

Post comment Comments
Raden
Raden - - 127 comments

This looks really interesting. You just got one new follower!

Reply Good karma Bad karma+2 votes
figalot Author
figalot - - 795 comments

Thanks Raden, don't forgot to follow us on some social networking sites for smaller updates. Fine most them here Glasshousegames.com

Reply Good karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: