{"author_link":"\/users\/whitefox","author_name":"WhiteFox","author_uid":"whitefox","comments":[],"epoch":1729377467,"event":"LD56","format":"md","ldjam_node_id":406249,"likes":2,"metadata":{"p_key":"209300","p_author":"WhiteFox","p_authorkey":"1178983","p_urlkey":"447675","p_title":"Enemy pathfinding, collider hell and post jam updates","p_cat":"LDJam ","p_event":"LD56","p_time":"1729377467","p_likes":"2","p_comments":"0","p_status":"WAYBACK","us_key":"1178983","us_name":"WhiteFox","us_username":"whitefox","event_start":"1728000000","event_key":"115","event_name":"Ludum Dare 56"},"node":{"_collation":{"body_sanitizer":"TextUtils::SanitizeHTML via existing importer","event":"LD56","removed_author":false},"_superparent":395186,"_trust":1,"author":178983,"body":"![6sl0hMH - Imgur.png](\/\/\/raw\/72b\/b2\/z\/68f99.png)\n\nHiya! TinyTaunters team here. We\u2019d like to share our experience with LD56 and some news.\n\nBuilding everything from scratch including audio and hand drawn artwork was super exciting and we loved all the feedback we got. Most of us are really inexperienced in game dev and have only joined a couple of jams and figuring stuff as you go bears its consequences.\n\nWe were thinking of doing a post-mortem for Tiny Taunters but\u2026 the game is simply not dead. It\u2019s just getting patched\u2026 rather slowly due to all of us having to go back to our banal non-jam day-to-day.\n\nGood news is we\u2019ve got our first major UPDATES. So let\u2019s talk about the major issues we encountered with the game and how we solved them.\nEnemy Pathfinding\n\nOur original pathfinding algorithm for the enemy AI was naive to say the least. We just calculated a vector towards the player, raycast and if there were obstacles in the way you stayed put, if not you went towards the position where you last saw the player.\n\nThis resulted in some very fun exploits where you could just stack enemies in corners and spam them with taunts\n\nIn order to fix it we moved to an A* solution. It was fairly easy to implement and with some fine tuning \u2026 the enemies were too smart. You could literally not get away from them even if they were slow as a turtle.\n\nAlso we had to abandon moving their transforms and try to use the physics engine through rigidbody which took some time to work into the scripts.\n\nAfter some more tuning we found a decent balance of stupid vs fun. Now you can still sort of trick them but it is harder and kind of fun to try out.\n\nWe also tried to do tile maps and sprite colliders for the first time. Our first plan was to put everything in tilemaps and then draw colliders on top of it. It turned out\u2026 fine. But when we started messing with the scales or positions of objects we had to manually move all colliders around and wall colliders were a mess.\n\n![eeydMTE - Imgur.png](\/\/\/raw\/72b\/b2\/z\/68f9b.png)\n\nA bigger problem surfaced when we added animations to the enemies. Since our art was all hand drawn, their sprites were all over the place leading to really messy interactions.\n\nFirst approach towards a fix was a polygon collider. This fixed the problem with the animations but the generated colliders had a lot of edges and the enemies got stuck all over the place. This also applied to a lot of the objects.\n\nOur second approach was adding simpler colliders on enemies and composing them into shapes with good round edges. Then we discovered that we could add tilemap colliders while making custom physics shapes for our tiles. Splash a composite collider on top and you have a minimal polygon that looks exactly as you designed it. We separated the tiles that had collisions with the tiles that were just the ground and we were good to go.\n\n![7k0CJHq - Imgur.png](\/\/\/raw\/72b\/b2\/z\/68f9c.png)\n\nTiny Taunters version 2! What\u2019s next? We published a new version of our game yesterday. This includes major fixes such as:\n\n    A* pathfinding for enemies\n    Better colliders\n    New artwork\n    New animations\n    Various quality of life fixes\n    \ud83e\udd73A public Leaderboard!\ud83e\udd73\n\n![LP9Fdf0 - Imgur.png](\/\/\/raw\/72b\/b2\/z\/68f9d.png)\n\nWe really liked the idea of having a leaderboard in order to interact with other players worldwide so we used to set it up.\n\nWe are thinking of doing some major reworks and adding some exciting new features. Namely, we are considering collectibles and alternative scoring system, different character powers and more beautiful artwork by metaksonio\n\n# [Play the game and leave some feedback here!](https:\/\/ldjam.com\/events\/ludum-dare\/56\/tiny-taunters)","comments":0,"created":"2024-10-19T22:24:03Z","files":[],"files-timestamp":0,"id":406249,"love":2,"love-timestamp":"2024-10-20T12:24:04Z","meta":[],"modified":"2024-10-20T12:24:04Z","name":"Enemy pathfinding, collider hell and post jam updates","node-timestamp":"2024-10-19T22:38:55Z","parent":397295,"parents":[1,5,9,395186,397295],"path":"\/events\/ludum-dare\/56\/tiny-taunters\/enemy-pathfinding-collider-hell-and-post-jam-updates-1","published":"2024-10-19T22:37:47Z","scope":"public","slug":"enemy-pathfinding-collider-hell-and-post-jam-updates-1","subsubtype":"","subtype":"","type":"post","version":1277685},"node_metadata":{"n_key":"406249","n_urlkey":"447675","n_parent":"397295","n_path":"\/events\/ludum-dare\/56\/tiny-taunters\/enemy-pathfinding-collider-hell-and-post-jam-updates-1","n_slug":"enemy-pathfinding-collider-hell-","n_type":"post","n_subtype":"","n_subsubtype":"","n_author":"178983","n_created":"1729376643","n_modified":"1729427044","n_version":"1277685","n_status":"WAYBACK"},"source_url":"https:\/\/ldjam.com\/events\/ludum-dare\/56\/tiny-taunters\/enemy-pathfinding-collider-hell-and-post-jam-updates-1","text":"![6sl0hMH - Imgur.png](\/\/\/raw\/72b\/b2\/z\/68f99.png)\n\nHiya! TinyTaunters team here. We\u2019d like to share our experience with LD56 and some news.\n\nBuilding everything from scratch including audio and hand drawn artwork was super exciting and we loved all the feedback we got. Most of us are really inexperienced in game dev and have only joined a couple of jams and figuring stuff as you go bears its consequences.\n\nWe were thinking of doing a post-mortem for Tiny Taunters but\u2026 the game is simply not dead. It\u2019s just getting patched\u2026 rather slowly due to all of us having to go back to our banal non-jam day-to-day.\n\nGood news is we\u2019ve got our first major UPDATES. So let\u2019s talk about the major issues we encountered with the game and how we solved them.\nEnemy Pathfinding\n\nOur original pathfinding algorithm for the enemy AI was naive to say the least. We just calculated a vector towards the player, raycast and if there were obstacles in the way you stayed put, if not you went towards the position where you last saw the player.\n\nThis resulted in some very fun exploits where you could just stack enemies in corners and spam them with taunts\n\nIn order to fix it we moved to an A* solution. It was fairly easy to implement and with some fine tuning \u2026 the enemies were too smart. You could literally not get away from them even if they were slow as a turtle.\n\nAlso we had to abandon moving their transforms and try to use the physics engine through rigidbody which took some time to work into the scripts.\n\nAfter some more tuning we found a decent balance of stupid vs fun. Now you can still sort of trick them but it is harder and kind of fun to try out.\n\nWe also tried to do tile maps and sprite colliders for the first time. Our first plan was to put everything in tilemaps and then draw colliders on top of it. It turned out\u2026 fine. But when we started messing with the scales or positions of objects we had to manually move all colliders around and wall colliders were a mess.\n\n![eeydMTE - Imgur.png](\/\/\/raw\/72b\/b2\/z\/68f9b.png)\n\nA bigger problem surfaced when we added animations to the enemies. Since our art was all hand drawn, their sprites were all over the place leading to really messy interactions.\n\nFirst approach towards a fix was a polygon collider. This fixed the problem with the animations but the generated colliders had a lot of edges and the enemies got stuck all over the place. This also applied to a lot of the objects.\n\nOur second approach was adding simpler colliders on enemies and composing them into shapes with good round edges. Then we discovered that we could add tilemap colliders while making custom physics shapes for our tiles. Splash a composite collider on top and you have a minimal polygon that looks exactly as you designed it. We separated the tiles that had collisions with the tiles that were just the ground and we were good to go.\n\n![7k0CJHq - Imgur.png](\/\/\/raw\/72b\/b2\/z\/68f9c.png)\n\nTiny Taunters version 2! What\u2019s next? We published a new version of our game yesterday. This includes major fixes such as:\n\n    A* pathfinding for enemies\n    Better colliders\n    New artwork\n    New animations\n    Various quality of life fixes\n    \ud83e\udd73A public Leaderboard!\ud83e\udd73\n\n![LP9Fdf0 - Imgur.png](\/\/\/raw\/72b\/b2\/z\/68f9d.png)\n\nWe really liked the idea of having a leaderboard in order to interact with other players worldwide so we used to set it up.\n\nWe are thinking of doing some major reworks and adding some exciting new features. Namely, we are considering collectibles and alternative scoring system, different character powers and more beautiful artwork by metaksonio\n\n# [Play the game and leave some feedback here!](https:\/\/ldjam.com\/events\/ludum-dare\/56\/tiny-taunters)","title":"Enemy pathfinding, collider hell and post jam updates","wayback_source":[]}