first person shooter
Use the up arrow and down arrow to move, and the left arrow and right arrow to rotate.
Best performance when downloaded and put into presentation mode.
This is a realtime 3D raycaster (although still very slow). The optimization techniques used to get the raycaster to this speed were a lot of loop unrolling, and taking advantage of Scratch's parallelism by splitting across the raycasting work across many different sprites (while having two central sprites, for player control and graphics rendering).
Special features of this raycaster include distance fog and collision with walls.
I'll probably make this faster in the future, but for now I guess I'm done. =P
Based on: Realtime 3D Raycaster Demo by
Original project: raycasterBareOptNoArr by
Ready to Remix!
Add your ideas! You could try:
- drawing a new costume
- changing the scripts
- creating a new sprite