home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 16
/
CD_ASCQ_16_0994.iso
/
news
/
vr386
/
rides.wld
< prev
next >
Wrap
Text File
|
1994-01-04
|
7KB
|
233 lines
#
# RIDES.WLD
#
# amusement park, demonstrating animation stuff
# Created by Dave Stampe, January 1993
# for use with the REND386 package.
#
loadpath rides
hither 10 # anything closer than this gets clipped
yon 1000000 # anything farther than this doesn't get rendered
stepsize 20 # a bit faster for big world
start 0,1200,0 0,0,0 2
camera 2 37800,27000,3030 45,-65,0
ambient 80
light 1000,100000,1000 0
skycolor 0xad
groundcolor 0x5d
surfacedef cobble 239
surfacemap roadcolors
surface 1 cobble
# Splits and associated surfaces:
# split 0,0,0 0,1,0 0 # 0 (floor plane)
# Ferris wheel splits
split 40000,11000,1050 0,0,1
split 40000,11000,2150 0,0,1
split 40000,11000,5250 0,0,1
split 40000,11000,6350 0,0,1
endsplits
# Areas:
# A midway road:
object floor 40,1,20 0,0,0 8800,0,6000 0 roadcolors fixed
object floor 40,1,20 0,-45,0 12800,0,6000 0 roadcolors fixed
object floor 40,1,20 0,-90,0 15628,0,8828 0 roadcolors fixed
object floor 400,1,20 0,0,0 13628,0,12828 0 roadcolors fixed
# some trees:
object tree2 12,12,12 0,0,0 800,1,12000 0
object tree2 18,18,18 0,0,0 -2800,1,14000 0
object tree2 33,26,30 0,0,0 11200,1,15000 0
# A big fir tree:
object fir2 1,1,1 0,0,0 16000,0,-1380 256 . fixed
some miscellaneous object:
object ball6 8,8,8 0,0,0 4200,0,10000 0
object ball6 6,6,6 0,45,0 4200,800,10000 0
object ball6 4,4,4 0,90,0 4200,1400,10000 0
object ball6 2,2,2 0,135,0 4200,1800,10000 0
object octframe 8,15,20 0,0,0 3000,1500,5000 0 .
include ball.ani # the living ball thing
# Ferris wheel
object fwsppt 100,100,100 0,0,0 40000,0,0 256 . fixed
object fw1=fwside 100,100,100 0,0,0 40000,11000,1100 256
object fcar1=fwcar 30,30,30 0,0,0 4100,10000,1100 256 . fw1
object fcar2=fwcar 30,30,30 0,0,0 -4100,-10000,1100 256 . fw1
object fwside 100,100,100 0,180,0 0,0,5200 256 . fw1
object fwsppt 100,100,100 0,0,0 40000,0,6400 256 . fixed
polyobj 2 0x00f8 40000,11000,1000 40000,11000,6400
polyobj 4 0x11ff 36000,0,2100 36000,0,5300 44000,0,5300 44000,0,2100
animation 150 # turn ferris wheel
state a
do fw1=step(x,x,x 0,0,-15)[][]
do fcar1=step(x,x,x 0,0,15)[][]
do fcar2=step(x,x,x 0,0,15)[][]
animation 3 # ride car 1
state wait_in # wait for car and passenger
do fcar1=postest(36000,-3000,2100 44000,5000,5300) [exit][]
do sensor(36000,-3000,2100 44000,3000,5300)[exit][]
do fcar1=attach(1) [state=wait_inout]
state wait_inout # wait for car to leave
do fcar1=postest(35000,x,x 45000,8000,x) [state=in][]
state in # wait till car down, no passenger
do fcar1=postest(37000,-3000,2100 43000,5000,5300) [exit][]
do sensor(32000,x,1000 40000,x,7300)[][exit]
do fcar1=attach(0) [state=wait_out]
state wait_out # wait for car to leave
do fcar1=postest(30000,x,x 50000,8000,x) [state=wait_in][]
animation 3 # ride car 2
state wait_in # wait for car and passenger
do fcar2=postest(36000,-3000,2100 44000,5000,5300) [exit][]
do sensor(36000,-3000,2100 44000,3000,5300)[exit][]
do fcar2=attach(1) [state=wait_inout]
state wait_inout # wait for car to leave
do fcar2=postest(35000,x,x 45000,8000,x) [state=in][]
state in # wait till car down, no passenger
do fcar2=postest(37000,-3000,2100 43000,5000,5300) [exit][]
do sensor(32000,x,1000 40000,x,7300)[][exit]
do fcar2=attach(0) [state=wait_out]
state wait_out # wait for car to leave
do fcar2=postest(30000,x,x 50000,8000,x) [state=wait_in][]
# balloon ride
object balloon=balloon 50,50,50 0,0,0 18000,4500,10000 0
polyobj 4 0x11ff 18000,0,12000 22000,0,12000 22000,0,8000 18000,0,8000
animation 1 # balloon ride control
state wait_in
do sensor(18000,-1000,8000 22000,4000,12000)[bal=0 exit][bal=2]
do balloon=attach(1) [state=wait_end]
state wait_end
if (bal=1) balloon=attach(0) [state=wait_out balloon=0]
state wait_out
do sensor(17000,-1000,7000 23000,4000,13000)[state=wait_in][]
animation 150 # balloon ride move
state wait_in
if (bal=2) set[state=up]
state up
do balloon=step(x,2000,x x,x,x)[][]
do balloon=postest(x,0,x x,40000,x)[state=down][]
do balloon=selected(1)[][state=down] # click to abort
state down
do balloon=step(x,-2000,x x,x,x)[][]
do balloon=poslimit(x,4500,x x,x,x)[state=wait_in bal=1][]
# A precessing cone merry-go-round ride:
segment segspin=world 13,0,0 7500,-100,1400
object conespin = cone8 4,8,4 0,0,0 0,300,0 0 . segspin
animation 200
state a
do segspin=step(x,x,x x,100,x)[][]
do conespin=step(x,x,x x,-150,x)[][]
animation 10 # capture viewpoint
state off
do sensor(5500,-5000,-500 9500,5000,3500)[][state=goon]
state goon
do poptext(0.5) Welcome aboard!
do conespin=attach(1)[state=on]
state on
do sensor(5000,-5000,-1000 10000,5000,4000)[state=gooff][]
state gooff
do conespin=attach(0)[state=off]
# animation of bouncing, spinning head
object sculpbase=block 6,10,6 0,0,0 28000,1,22000 0 basecolors
object mh=methead 4,4,4 0,180,0 300,1100,300 0 . sculpbase
animation 150
state init
do mh=moveto(x,1005,x 0,90,0)[state=a] # position head
state a
do mh=gravity(0,3000,0 0,-4000,0)[] # start bounce
do mh=step(x,x,x 0,100,0)[] # start spin
do mh=poslimit(x,1000,x x,x,x)[state=b][] # test for end
state b
do mh=gravity(0,3000,0 0,-4000,0)[] # same, but reversed spin
do mh=step(x,x,x 0,-100,0)[]
do mh=poslimit(x,1000,x x,x,x)[state=a][]
# cart ride
polyobj 4 0x11ff -3000,0,36000 3000,0,36000 3000,0,30000 -3000,0,30000
segment arm=world 0,0,0 25000,0,14000
object mc=metlcube 40,0.5,20 0,-55,0 -28000,750,14000 256 . arm
object fw1=fwside 5,5,5 0,0,0 500,50,-100 256 . mc
object fwside 5,5,5 0,180,0 0,0,2200 256 . fw1
object fw3=fwside 5,5,5 0,0,0 3500,50,-100 256 . mc
object fwside 5,5,5 0,180,0 0,0,2200 256 . fw3
animation 150
state fast # travel speed
do fw1=step(x,x,x x,x,250)[][]
do fw3=step(x,x,x x,x,250)[][]
do arm=step(x,x,x x,-15,x)[][]
do mc=postest(-6000,x,24000 6000,x,42000)[][state=slow]
state slow
do fw1=step(x,x,x x,x,75)[][] # dismount speed
do fw3=step(x,x,x x,x,75)[][]
do arm=step(x,x,x x,-3,x)[][]
do mc=postest(-6000,x,24000 6000,x,42000)[state=fast][]
animation 2 # ride wagon
state wait_in # wait for car and passenger
do mc=postest(-3000,x,30000 3000,x,36000) [exit][]
do sensor(-3000,-3000,30000 3000,3000,36000)[exit][]
do mc=attach(1) [state=wait_inout]
state wait_inout # wait for car to leave
do mc=postest(-3100,x,29000 3100,x,37000) [state=in][]
state in # wait till car down, no passenger
do mc=postest(-2900,x,30500 2900,x,35500) [exit][]
do sensor(-3000,x,30000 3000,x,36000)[][exit]
do mc=attach(0) [state=wait_out]
state wait_out # wait for car to leave
do mc=postest(-3100,x,29000 3100,x,37000) [state=wait_in][]
title RIDES.WLD
title carnival of rides
title red areas are entry/exit zones
title 29/11/92 by Dave Stampe
title memory
# End of RIDE.WLD