[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Raycasting source disk image



William Garber wrote:
> Should I even mess with it now, or wait until
> it's pretty close to game making status?
>


If you want to run around in 3d and change the look
of the wall panels, etc, and change where panels
go, then try it out..  it is quick and easy.

if you have an exit door (texture 15) at 5,5 (you can
see the coordinates in the map editor), and you
want it to lead to spot 11,20 on the current map,
you do this:


100 call demo
x1=peek(x) :x = player x memory location
Y1=peek(y): y = player y memory location
gosub 1000
poke x,x1:poke y,y1
goto 100

1000 if x1=5 and y1=5 then x1=11:y1=20:return


If you want an exit door at 11,20 (or another type
of texture that you can press ESCAPE at to activate)
to lead BAck TO 5,5  then add line 1010:

1010 if x1=11 and y1=20 then x1=5:y1=5:return

Rich