|
-
for the win
First Attempt at Ray-Casting
I know strille originally wrote a pretty efficient Ray-Casting Engine and Glen Rhodes recently recreated Wolf 3D in flash 8. I just wanted to see if I can whip one up just from reading some random tutorial I found online.
The result:
http://www.eden.rutgers.edu/~xiaoshi.../ray-cast.html
source:
http://www.eden.rutgers.edu/~xiaoshi...ast/source.txt
The map is a box with a smaller box in the center, there is some distortion that I haven't been able to figure out. Movement is a bit choppy because I'm just using key listeners instead of embedded them in onEnterframe.
-
Senior Member
Its nice start, but sometimes the box in the center does not display correctly.
-
Amiga freak
Don't use "Key.getCode" as it causes delay before the movement takes place, use "Key.isDown" instead.
Am I wrong?
-
M.D.
Looks ok, don't really have anything to compare it with.
And i agree with tonypa, there's errors with the middle room and no collisions.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|