


   Raycaster Version 3.1
************************************************



Changes:
Bugfix in the floor and ceil drawing function


new commands/changed commands:

KeyAction needs now 4 parameters ->KeyAction(x,h,1,1)
SetViewAngle
GetNewX
GetNewY
MoveObject
CalculateDistance









-you need to use a password

This is your Password for the raycaster.

pass=InitRaycaster(943984,232359,692895,981105)



-when loading textures, sprites... you must use #PB_Sprite_Memory

example:
r10=LoadSprite(#Tex_m, "tex12.bmp", #PB_Sprite_Memory)

everything else will slow down the speed








; this is how to load a worldfile from memory,
; when you dont like to show the worldfile to others
; ///////////////////////////////////////////////////////////////
; //////////////////////LOAD BINARY WORLD////////////////////////
addr=?MapLabel
x=0
y=0
lenght=?EndOfMapLabel-?MapLabel
l=0
While(l<lenght)
  letter.b=PeekB(addr+l)

  If PeekB(addr+l)=32:letter=0:EndIf
  If PeekB(addr+l)>32:letter=letter-96:EndIf

  If PeekB(addr+l)=10 
    x=0
    y=y+1  
  EndIf
  If PeekB(addr+l)<>10 And PeekB(addr+l)<>13 
    SetWall(letter,x,y,0)
    x=x+1
  EndIf
  l=l+1
Wend
; ////////////////////////////////////////////////////////////

;////////////////////////////////////////////////////////////
; at the end of code
DataSection
  MapLabel:
  IncludeBinary "raymap64.dat"
  EndOfMapLabel:
EndDataSection 
;////////////////////////////////////////////////////////////






