░█░█░█▀▄░▀█░░▀█▀░█▀▄ ░▀▄▀░█▀▄░░█░░░█░░█░█ ░░▀░░▀░▀░▀▀▀░░▀░░▀▀░ Virtual Reality one tower defense inspired by @ggenije's Vectoid TD 3D Use the packaged Turbowarp version for the best experience: https://stemmathcoding.com/play/vr1td/ 1. Controls 2. Gameplay Instructions 3. VR Instructions 4. Credits ║ 1. CONTROLS ║ Computer controls: Mouse - look Space bar/mouse click - shoot Up/Down/Scroll wheel/Click in-game - select blaster Mobile controls: Drag - look around Tap in place - shoot projectile Click in-game button - select blaster VR controls: Look around irl - look around Space bar/mouse click - shoot projectile Click in-game button - select blaster ║ 2. GAMEPLAY INSTRUCTIONS ║ In this game, enemies approach your base, wishing to destroy it. It is your goal to destroy said enemies before they reach your base. Enemies you destroy will give you coins, which can buy upgrades to destroy harder enemies. Here are the upgrades you can apply to each one of your 5 blasters, up to 10 upgrades each: ⇨ Reload (initially 3¢) - decrease time between projectiles ⇨ Damage (initially 8¢) - increase damage enemies take when hit ⇨ Protection (initially 8¢) - decrease time unable to shoot when hit by enemy projectile ⇨ Blast (initially 9¢) - increase damage other enemies take ⇨ Monetary (initially 10¢) - increase money earned when enemy is destroyed ⇨ Burn (initially 10¢) - unfreeze enemies (cannot be used alongside Freeze) ⇨ Freeze (initally 10¢) - cool down enemies (cannot be used alongside Burn) ║ 3. VR INSTUCTIONS ║ So you want to try out VR mode - yay! This is definitely a work in progress, but I've had a lot of fun making this - so I hope you have fun as well! In order to play in VR, you'll need: ⇨ A phone (you can test on computer with camera) ⇨ A VR headset designed for phones ⇨ A bluetooth keyboard, or anything else that can connect to the phone and maps to the space bar The Scratch version of this project utilizes a modified version of ScratchVR, which was created by . ScratchVR utilizes Video Sensing to get rotation; therefore you will need a headset where the front-facing camera is not entirely blocked. Also note that the modified engine is susceptible to drift and inaccurate measurement, so the game runs at 75% speed to make it easier in this mode. Alas, it is highly recommended to use the packaged Turbowarp version here: https://stemmathcoding.com/play/vr1td/. To play in VR mode: ⇨ Connect keyboard/controller to phone ⇨ Open the project on the phone ⇨ Zoom in the project before pressing the flag (instructions located in thumbnail) ⇨ Go through the menu until game is reached ⇨ Place phone in headset (game has 10s delay before first enemy appears) ⇨ Give it a try! When using VR mode, there are three settings you can adjust: ⇨ Pitch: invert this if your left/right motion is opposite of what the game thinks. ⇨ Yaw: invert this if your up/down motion is opposite of what the game thinks. ⇨ Eye Distance: adjust this if the distance between your eyes do not match; otherwise, you may end up straining your eyes. ║ 4. CREDITS ║ Thanks for... for game inspiration (based off of Vectoid 3D) 's 3D tutorial 's ScratchVR (Scratch rotation detection) 's sound pack 's bounce code for win text again for variable naming inspiration Scratch Wiki for merge sort code J_i_m_ on yt for help with merge sort Mozilla for cube collision code Universfield's Ambient Background music from Pixabay u_b32baquv5u's 8-Bit explosion 10 from Pixabay Several pieces of code were generated, in part or whole, by ChatGPT, such as for calculating position change with two angles and finding intersection by a line and cube. psst...you can get the glow effect by typing "glow" while the project runs, and you can get the particles in the background by playing on turbowarp. note the glow effect may slow down your computer soli Deo gloria