SPACE to toggle the UI R to reset all values WASD to move ( mouse or arrows to turn ) Click to place tiles 0 - Floor ( No effect on light ) 1 - Wall ( Absorbs light ) 2 - Mirror ( Reflects light ) 3 - Glass ( Refracts light ) Reducing the amount of glass and mirrors can help performance! Press 1 & 2 to change the selected tile Press 3 to set lights to dynamic Press 4 to set lights to baked Press 5 to set lights to bake every second
8/15/22 - Added baked lighting and updated code 8/16/22 - Colored lights* ( USE TURBOWARP! ) Please run on TW for a better experience. https://turbowarp.org/713689806?fps=60&limitless&hqpen I recommend 100 rays or less with a DOF of 10 on scratch. ( unless you have a lower end device ) All of the code is by me. ( with the tile-based collisions by @Griffpatch ). Feel free to mess with the code, but please give credit. *Scratches color blending isn't the best, so a low intensity colored light looks best