Raycast Lighting Concept

Raycast Lighting Concept

by PurplePyramid

πŸ‘ 103 ❀️ 12 ⭐ 7 πŸ”„ 0
Created: Aug 23, 2022 Last modified: Aug 27, 2022 Shared: Aug 27, 2022

Description

Inspired by Griffpatch's youtube tutorials on raycasting in his 3D tutorials. Check them out here: https://www.youtube.com/watch?v=M1c5TcdITVs&list=PLy4zsTUHwGJKolO9Ko_j6IStFIJnTYBul I just like 2D a lot better, so I decided to apply raycasting to this project and use it for a lighting effect. In the pause menu, "LTS" = Light Tile Size. An LTS of 10 means we use a 10 pixel by 10 pixel square to scan and draw the lighting effects.

Instructions

Try here: https://turbowarp.org/724362333 for faster performance. WASD : Move Look with Mouse Curser E/Q: Toggle between flashlight and lantern mode. SPACE: Toggle full lighting on/off. P: Pause/Unpause Shine your light around some spooky figures. Try and guess what they are, or make cool shadows! Press space to show the figures in full lighting once you've already made your guess. If you need help, try raising the resolution in the pause menu (just beware that your FPS could drop significantly). This project scans the figures in the "Solids" sprite for faster raycasting. See inside the "Solids" sprite for how to add your own costumes/figures!

Project Details

Visibility
Visible
Comments
Enabled

More Cool Projects

Project thumbnail
View Project

The Block Party Game but more people join it

by Lightabug

Project thumbnail
View Project

Preview 2 Scratch Cat in G Major 46

by gamerboy1228

Project thumbnail
View Project

progressbar infinite

by Code-XP

Project thumbnail
View Project

BFDIA 13 AND TPOT 12 Results (My Way Prediction)

by princeTproductions

Project thumbnail
View Project

beat up evil annoying orange Remastered 3

by mugpanic

Project thumbnail
View Project

biker in the town #game

by Anuj_Kr_Chaudhary

Project thumbnail
View Project

Super Mario Kart v0.4.8 #games

by sujederscratch

Project thumbnail
View Project

Nick Jr Anomaly And Lost Episode

by AlexDGDash

Project thumbnail
View Project

Canny Wenda v1.0 [11 Phases]

by Freddy3000

Project thumbnail
View Project

free sound (or bytebeat)

by tanmanshum

Project thumbnail
View Project

Credits text engine Super Mario Scratchy World v0.2.3

by will-ric

Project thumbnail
View Project

Google Logo Starter Project remix

by Skye_dawson123

Project thumbnail
View Project

Glitchy scratch cat clicker!

by hamzawali78

Project thumbnail
View Project

AY in Avoid the Spears [ Lopps Background 40 Players ]

by Basilioleo1120

Project thumbnail
View Project

minecraft

by Dandibar

Project thumbnail
View Project

Everybody Edits

by pedro123ppp0

Project thumbnail
View Project

γƒžγ‚€γ‚―γƒ©2Dγ€€εŠθ‡ͺε‹•η•‘

by takehigo

Project thumbnail
View Project

Super Mario: Portal to the Forest

by SJEshilohv

Project thumbnail
View Project

undertale AU collecter!! v1

by bouningen-kun

Project thumbnail
View Project

Spamton Neo fight Snowgrave

by tripoid

Project thumbnail
View Project

Rocket Santa

by ccallahantow

Project thumbnail
View Project

The Future of the ε€ͺιΌ“γƒˆγ‚™γƒ©γƒ 

by rinkaidesu

Project thumbnail
View Project

Discover Card New Year's Countdown (1998-1999) remastered

by N0_Namez

Project thumbnail
View Project

Online + Fem!Dust!Sans' bio

by Fem-Dust-Sans