Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Alpaca Factorio Thing?

A topic by fabbyrob created May 04, 2024 Views: 64
Viewing posts 1 to 1
HostSubmitted

I never posted yesterday, because I'm bad at following my own instructions.

Anyway, we're making a Alpaca farm/factory game, where a mutant alpaca has gained the ability to control other animals. 

I just built the system for setting animal tasks, seen below. The while chicken (ignore the sprite) has been assigned a job to go to the green spot, pick up stones, walk to the red spot, then chase down the red chicken (again, ignore the sprite) to give it the stones, then repeat. The WaypointWorkTypes array on the right is an array of structs that lets me build arbitrarily long work chains for the animals!

We also are using our HulkSmash terrain generator to put deposits of resources on the map, image below. The Algorithm was modified to start with a totally open map of all grass, surrounded by water. Hulks then wander and drop a random resource type. We'll probably mess with the weighting of different resource types later, right now they're all equally likely. 


We did have to fix a graphical bug where seams showed up between the tiles, since we're not using the real TileMap. Which I cheated and just made all the tiles 10% overlapping. It works for now!