Currently, the application supports the following bug movements:
- horizontal movement (hole to hole)
- circular movement
- half-circular movement
- random movement (random straight lines)
- static movement (bug/object doesn't move)
If the user wants to add a new bug movement:
- Open the application config file in
pogona_hunter/src/config.json, and add the name of the new movement under: boards > holes - Open the bug vue file in
pogona_hunter/src/components/bugs/holesBug.vue - The logic of this movement must be integrated into 2 main functions:
- move() - this function is called for each frame animation of the application
- initiateStartPosition() - this is the initialization of the bug.
- Notice that the holeBug module gets the movement type from
this.bugsSettings.movementTypeuse that with the new name you added to config.json - Rebuild the application docker service
cd docker && docker-compose up -d --build app