Large PoliceOfficers.js file, it’s refactored now.

While working on GunStopperDrone game for the web using three.js, I noticed my PoliceOfficers.js file was over 4600 lines. I have physics collision working with the drone and the gunman but not police officers yet. they go through buildings the car and the officers. Struggling with it a bit and noticed AI wrote this huge file. I asked it to refactor, and after some web testing and unit tests, I have a bunch of different components with the main file being ~200 lines and it’s working like before. I used AugmentCode. It’s great. Figures stuff out Cursor just can’t do.

GunStopperDrone Web Game Progress

I have been working on the game and recently added two libraries that are very helpful.

The first is a path finding library so the gunman will navigate around buildings to the target: https://github.com/donmccurdy/three-pathfinding

Another library I found and added allows web console.log messages to appear in a terminal, so an AI tool, I use AugmentCode, can read and respond to the errors without copy-pasting the errors in. I’m excited about it. I still have to copy-paste screenshots sometimes, but this is a big help. Here it is: https://github.com/patak-dev/vite-plugin-terminal