A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: First Attempt at Ray-Casting

  1. #1
    for the win Asclepeos's Avatar
    Join Date
    Dec 2000
    Posts
    388

    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.

  2. #2
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,223
    Its nice start, but sometimes the box in the center does not display correctly.

  3. #3
    Amiga freak Ironclaw's Avatar
    Join Date
    Jan 2001
    Location
    Sweden
    Posts
    1,650
    Don't use "Key.getCode" as it causes delay before the movement takes place, use "Key.isDown" instead.


    Am I wrong?

  4. #4
    M.D. mr_malee's Avatar
    Join Date
    Dec 2002
    Location
    Shelter
    Posts
    4,139
    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.
    lather yourself up with soap - soap arcade

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center