wow this is really cool. i was working on a different kind of 3d maze effect, but this seems far more efficient. BTW it goes pretty fast actually, really too fast.
U know what? There r a lot of these raycaster projects, but I haven't seen ONE of them that's actually a game. That would be rly nice. Another thing that could be nice is if there was a raycast in which u could draw the walls in 2D & then play in 3D.
The Scratch team made scratch, so technically every project on scratch was made by the scratch team.
Plus the scratch team are actual programmers. This is coding, which isn't programming. Using a real programming language, this is pretty simple, even thought its very difficult in Scratch.
Use the up arrow and down arrow to move, and the left arrow and right arrow to rotate.
Please post the FPS you get in the comments (both online and offline in presentation mode if possible).
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
Comments
You need to be logged in to post comments
Add a Comment
146fps online with flash. i walk with 43587345km/ph. COOLNESS
1248 on turbo
1600
(view all replies)330 FPS on Turbo Mode =]
1000fps
Yah right. Its funny, you can totally tell when people lie.
(view all replies)150 right now
s65 are you still on scratch ( Creating projects)
1168 fps OMG!
OMG try this in the 'flash-based player' thing online! MIND=BLOWN with the speed! 175.342 fps!!!!!!!!!!!!!!
I looked at the scripts and wow. That's quite a bit more complicated than I would've imagined.
The character moves too fast, but other than that, it's almost perfecto.
200fps online
WOW!!!!!!!
141fps!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Is there a way to add texture to the walls? Anyways, this game is AWESOME!!!!!
wow
WOW A LITTLE SENSETIVE BUT AMAZING JOB! I SUCK COMPARED TO U XD
WOW
Flash= Top 150 WOW!
I had to turn OFF turbo speed, actually. 120f
Online:120 fps
wow this is really cool. i was working on a different kind of 3d maze effect, but this seems far more efficient. BTW it goes pretty fast actually, really too fast.
1460fps in turbo mode... clever, I see how you did that.
i get about 150-200 fps in normal flash and about 400+ fps in flash turbo mode.
How to do raycast?
fps = 199.411
170 fps on flash turbo mode. I don't like how you can press 'left' and it spins continuously.
quite fast!
if only you were still active and working on this ;_;
awesome!!! That's game is very quick. Change it to the slowwer.
Really cool, but you might want to slow it down. I got approximatly 120 fps on flash no turbo. Awesome.
U know what? There r a lot of these raycaster projects, but I haven't seen ONE of them that's actually a game. That would be rly nice. Another thing that could be nice is if there was a raycast in which u could draw the walls in 2D & then play in 3D.
150 fps online, 8 fps offline
I switched online to Turbo mode, then I had 550 fps
(view all replies)wOw :O
200 in browser, 150 if I'm moving. Strange enough though, in the downloaded version, I get an FPS of 7.
150 when moving, 180 otherwise :) good job!
When I am moving, I get about 60 fps, and when not moving, it makes about twice that (wow).
I don't get it.
150 without moving
AWESOME
on mah mac it is going super fast
wow this is amazing how long did it take and did any1 help u this is way better than what any of the scratch team could do
The Scratch team made scratch, so technically every project on scratch was made by the scratch team. Plus the scratch team are actual programmers. This is coding, which isn't programming. Using a real programming language, this is pretty simple, even thought its very difficult in Scratch.
(view all replies)this 3d things are always cool to mess around with only if it was bigger and more detail then it would be cooler
wolfenstien..... hmmmm.....
how do you get such definite corners, could you please explain why my raycaster (link to project) doesn,t have a very good perspective?
5.1 offline
around 60 when not moving, but can reach almost 200. on turbo, 200-300 and maybe counting.
24 in the java player, 130 in flash, and 600 in flash turbo.
197 in flash player turbo mode
THIS IS REALLY GOOD!
fluctuates between 100 and 127
121 in flash
3,608.54 in turbo mode!
very slow in download 7.1 download 108.72 in online flash
this is slow to download and java, so stay in the online flash player!
the download does not work
does not work in java. T-T
413
Also i got 3,500 fps in turbo
it went like 2-14 on offline, surprising.
I can't believe it hit 250, it just hit it again while in was posting this!