JavaScript Raycaster

Published May 30, 2006


A silly project from over the weekend: JavaScript raycaster.

I couldn't work out how to handle keypresses in Firefox, and Firefox is too slow and flickery to make it worthwhile. IE runs it fine but at less than 1FPS, meaning that more often than not you end up walking through the walls. Opera is about the only browser it works happily in (~12FPS). Ah well.
Previous Entry Debugging fun
Next Entry Applications
0 likes 7 comments

Comments

Comments are shown oldest first so the discussion reads top to bottom.
Ravuya
Mozilla has one and I'm sure The5K had a few.

Edit Mozilla's uses the nonstandard <canvas> tag.
May 30, 2006 08:39 AM
Scet
Well it looks awesome, but I really don't feel like installing Opera. FireFox I got 10FPS but couldn't move and IE I got 1FPS.
May 30, 2006 06:17 PM
Will F
I'm getting an average of 4 FPS in Safari (and the keys work) - but it freezes Camino.
May 30, 2006 08:12 PM
MrEvil
Yay! 3fps (FX) and 12 fps (Opera) here. I'm wondering how fast this might run with the canvas tag. I might do some experiments later, but not until at least the weekend (exams and so forth). [grin]

Edit: I get about 8 fps in SeaMonkey... Maybe it's just Firefox that sucks? ;) Perhaps it's my extensions.
May 31, 2006 06:06 AM
MrEvil
The Mozilla Raycaster uses

  onkeydown="press(event);" onkeyup="release(event);"

I see yours take no parameters.
May 31, 2006 11:20 AM
Nyxbyte

I was wondering, how did you implemented the door opening mech?

June 27, 2016 02:14 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!