amykatname / newhorizons

Port of the Penguin game to HaxeFlixel
https://discord.gg/2wGgTJcPt9
3 stars 5 forks source link

Room collisions #1

Open amykatname opened 5 days ago

amykatname commented 5 days ago

I already tried to take a crack at it as you can see the '/assets/images/rooms/town/collision.json' (god that folder tree is ass we should probably change it) that I generated with Tiled Editor but I couldnt figure it out before the CPJ shutdown and sudden interest in my project haha So basically just have walls, you can click in the restricted bounds but should be stopped from trying to walk there. A good idea to prevent getting stuck or anything would be to prematurely stop like 1-2 pixels away from the walls to avoid situations of getting stuck? Unsure