Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- prgmRAYSRC
- .RAYCAST
- #Icon(00001FF820042FC4303C20044634463240024182200427E81008199817E81008)
- #ExprOn
- prgmTEXTURES
- Fix 5
- Full
- ClrDraw
- For(R,0,25
- ClrDraw
- Text(R,21,"WOLFENSTEIN"
- DispGraph
- End
- For(R,0,34
- ClrDraw
- Text(25,21,"WOLFENSTEIN"
- Text(57,~R+62,"3D"
- DispGraph
- End
- Pause 4500
- ClrDraw^^r
- Bitmap(0,0,GDB1)^^r
- 30->H
- 50->K
- 0->M
- 4->S
- Repeat getKey(15)
- ClrDraw
- For(A,0,(94/4))
- cos(A+M)->E
- sin(A+M)->F
- sub(CT
- 15/D->P
- P*D->D
- If 200*P>D:
- While pxl-Test(X,Y)^^r:
- D--
- D*E//(127*P)+H->X
- D*F//(127*P)+K->Y
- End
- End
- D+P->D
- 50*P/D->D
- A*4->B
- 2048/D->G
- If D<60000
- For(C,0,D*2)
- nib{2*GDB3+(G*C/2/2/2/2/2/2/2/2)}->nib{GDB2*2}
- Pt-On(B,25-D+C,GDB2)
- End
- End
- End
- For(A,0,GDB5-1)
- {A*2+GDB6}-H->E->R
- {A*2+1+GDB6}-K->F->S
- max(abs(E),abs(F))->J
- If J>127
- E*127-(E/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2*2-1*J/2)/J->E
- F*127-(F/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2*2-1*J/2)/J->F
- End
- sub(CT
- sqrt(R^^2+(S^^2))->Q
- If Q<D
- tan^-1(E,F)->D
- If (F>60000)
- D+128->D
- If (D>256)
- D-256->D
- End
- End
- D-(47/4+M)->D
- If abs(D)<(47/4+1)
- .Pt-Off(D+(47/4)*4,17+(50/Q/2),GDB4)
- 25-(25/Q*2/3)->B .Y start
- 50/Q*2/3->C .Y size
- If C>50
- 50->C
- End
- D+(47/4)*4-14->E .X start
- 24*256/C->F .Y count
- For(D,0,C-1)
- D*F/256->G
- {G+GDB40}->{GDB2}
- Pt-Off(E,B+D,GDB2)
- {G+GDB40+1}->{GDB2}
- Pt-Off(E+8,B+D,GDB2)
- {G+GDB40+2}->{GDB2}
- Pt-Off(E+16,B+D,GDB2)
- End
- 0->{GDB2}
- End
- End
- End
- Line(0,50,94,50
- DispGraph
- If getKey(55):
- RecallPic
- DispGraph
- getKey
- Repeat getKey:
- Pxl-Change(H,K)
- DispGraph
- Pause 900
- End
- End
- getKey(3)-getKey(2)*10+M->M.MOVEMENT AND ROTATION
- (M+260)^260->M
- If M>=130
- M-260->M
- End
- getKey(4)-getKey(1)*(cos(47/S+M)//96)+H->X
- getKey(4)-getKey(1)*(sin(47/S+M)//96)+K->Y
- If getKey(1) or getKey(4)
- sub(CM
- End
- End
- Normal
- Fix 4
- Lbl CT
- For(D,0,100)
- D*E//127+H->X
- D*F//127+K->Y
- If pxl-Test(X,Y)^^r:Return
- End
- End
- Return
- Lbl CM
- If pxl-Test(X,Y)^^r=0:
- X->H
- Y->K
- End
- prgmTEXTURES
- .TEXT
- Data(57,64)->GDB1
- [00000007FFC0000003F000040040000002103FFC007C000002102004004400000208200000040000020820040044000003EFA3FC007C00000200A204004000000200E387EFC000000200808044000000020000804400000002008080440000007E00FF8044000000460080004400000047EF000FC700000044440008010000006C440009C700000047C40009C400000040440009C40000004044000FC4000000404400004400000047CF80006C0003FF4600801F87F00201460080100010020146008010001FFE0142008010000802014000801000000001420080100008020146008010001E1E0146008010001F22014600801F83F1220147EF8000EC0123FF47C400004401200047C400004401200044440000440120004044000044013FFC444400004401000447C400004401000447C7FFC044010004400020704401FFFC400000104400000040002070440000007FFFEFC0440000000019040FEFE00000002128084420000000183008002000000005E0084420000000048008442000000004800FC7E000000007800844200000000000080020000000000008442000000000000FC7E000000000000800200000000000080020000000000008002000000000000FFFE00000]
- [0000000000000000]->GDB2
- [F11F22F11F44F11F]->GDB3
- [FFDBDBFFBDBDC3FF]->GDB4
- [FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF]->GDB40
- 1->GDB5
- [2332]->GDB6
Advertisement
Add Comment
Please, Sign In to add comment