April 15, 2014

Catacomb Snatch 3D update


Catacomb Snatch 3D has been improved. The performance has increased by using techniques like object pooling and the code is more optimized and much cleaner. As you can see in the image below, the walls now generate gravel when they explode. 


Maybe the best improvement is that the mummies, snakes, and bats are more intelligent. They used to move around in one of four random directions, but are now moving with an angle. Since they are 2D in a 3D world, it may look silly sometimes. They have also begun to chase the player. 


The chasing is controlled by an AI algorithm called Finite State Machine (FSM) and the basic idea is that the enemies go through different predefined states. They patrol randomly around the map, but if they see the player from a certain distance, they begin to chase him. If the player gets away, the enemies will continue to patrol where they lost the player.

Update! I've added 2 new levels:




Sounds interesting? You can test it here.

No comments:

Post a Comment