Arrow keys/WASD to move, mouse to point. Press the space bar to turn on a continuous meowing sound that, using the volume and the left/right audio channels, lets you know where Scratch Cat is! You can apply this to your own game, as long as you give credit! Notes are added to the some of the sprites so you know what to do. Basically just copy the scripts from the "FP Scratch Cat" and "Map Scratch Cat" sprites onto your own custom sprites to apply the code to a new sprite. You can also copy the Grass sprite if you want to make grass (or anything else that's SMALL and textures the floor or ground). Feel free to experiment with the sliders to see how it affects the project! The field of view isn't something you'd ever really want to change for a project, but it was fun to include it as a slider.
Basic engine for generating a first person view based on a 2D map of a game area. It shows a map in the corner while displaying a first person view. CAPABILITIES: - effects for loss of sight at a distance (objects pixelate and fade out when viewed from far away) - strafing - collisions with other objects - surround sound - constantly changing layering based on how close objects to you UPCOMING FEATURES/IMPROVEMENTS: - optional touch-friendly mode (buttons to function as the arrow keys for mobile users) - walls on the borders, so you know when you're about to hit the edge of the playing area - a way to get around Scratch's 300 clone limit for the grass sprite CHANGELOG: - v1.071 Optimization improvements - v1.07 Added Gobo, and made grass using clones. You can use this sprite to make grass or anything SMALL that textures the floor/ground. It doesn't work well for anything large. - v1.06 Scratch Cat now changes which way he's facing depending on where you're viewing him from! - v1.05 Objects disappear if you move far enough away - v1.0 Official release, due to fixing of the last main issue, the layering! Also improved notes on the scripts to more easily let you know what to do. - v0.7 Added surround sound from Scratch Cat, and increased modularity by adding the ability to set the "normal" distance--this allows you to easily change how large the playing area is. I also managed to neglect the most important change I have yet to make, the layering. - v0.67 Made changing the map size easier without having to change a bunch of scripts - v0.66 Made collisions much, much easier to adapt to a different project with different sprites. Also gave the sky a gradient - v0.65 Added collisions - v0.6 Added strafing and mouse control. Field of view was lessened to 60 to compensate for the fact that a 114 degree field of view looks really weird with this window size apparently - v0.52 collisions with boundary fixed thanks to , I also realized that adding strafing will have to change lots of things so now I have to work on that :/ - v0.51 Improved grass (size, alignment, behavior when you move close to it) - v0.5: Made code more easily applicable to other sprites. Added grass and sky, with clumps of grass and clouds. Added Sam. - v0.1: First version. Has one non-player sprite, comes with distance effects, map.