Results 1 to 7 of 7

Thread: RejKaster - a raycasting example.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    The numbers in test.map are shortints (2 byte), you are reading it as a file of integer - integer is 4 bytes on 32bit systems.

    Edit:
    It crashes on division by zero in rendering on this line: draw_yoffset2:= (halfheight*12/ray_draw)-1;
    Also, a lot of out of bounds access on map array -> crashes a lot.
    Otherwise it runs, Freepascal 3.0 64bit at about 50% cpu load.

    btw.probably include the SDL units in the sources as well?
    Last edited by imcold; 26-05-2017 at 08:09 PM.

  2. #2
    Quote Originally Posted by imcold View Post
    The numbers in test.map are shortints (2 byte), you are reading it as a file of integer - integer is 4 bytes on 32bit systems.

    Edit:
    It crashes on division by zero in rendering on this line: draw_yoffset2:= (halfheight*12/ray_draw)-1;
    Also, a lot of out of bounds access on map array -> crashes a lot.
    Otherwise it runs, Freepascal 3.0 64bit at about 50% cpu load.

    btw.probably include the SDL units in the sources as well?
    Thanks. I'll repair it with next commit.

  3. #3
    You have any screenshots etc?

Bookmarks

Posting Permissions

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