After pressing the green flag, wait for the coloured circle to appear. Then press space Space - Locks and unlocks the tiles preventing them from moving and clears blocks and duplicates of the player when unlocked A - places a duplicate of the player at the location pressed D - locks the player at the location pressed Boomshot Spread Left Arrow - Decrease boomshot spread angle Right Arrow - Increase boomshot spread angle Blocks - EXPERIMENTAL S - Creates a block at the location pressed Use space to clear blocks Up Arrow - Increases the radius of the block hitbox Down Arrow - Decrease the radius of the block hitbox
Thanks to Ubisoft for the BWAHsome game. Big thanks to Natnew for the diagrams for reference and help making the entire thing in general The base of the project is at (https://scratch.mit.edu/projects/334877934/) if you want to check where less of the time has gone This is a program to generate spreads of each shot at each angle for the boomshot weapon. Getting line of sight is a work in progress. Any help is welcome. How it works: Boomshot Circle: It uses a circle generator to get the tiles and then parameters of smaller circles to change colours accordingly(modified version of the movement program) To get the correct angles the blue tile points towards the player and records the direction. All tiles if their angle is withing 35 degrees either side of that direction are shown, everything else hides. Line of Sight: Gets the 3D distance the target would be at the chosen spot (Distance A) Gets the 3D distance of the block being tested Scales distance A so the 2D distances are the same Using the line from shooter to the block as the hypotenuse and scaled down version of distance A as the adjacent, uses pythagoras to figure out the 3rd line. If then calculates the distance affected by the hitbox of the block, if it's larger then the line of sight is blocked