home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Magazin 1996 September
/
CD_06_96.ISO
/
data
/
par
/
main.par
< prev
next >
Wrap
Text File
|
1996-04-04
|
5KB
|
218 lines
; ******************************************************************************
; * MAIN.PAR Date: 15-Mar-1996 *
; *----------------------------------------------------------------------------*
; * *
; * This file contains intro and inits. *
; * *
; *----------------------------------------------------------------------------*
; * *
; * Project..: Pumuckl macht Musik *
; * Author...: Volker Eloesser *
; * System...: Escal WinSys 3.1 *
; * *
; *----------------------------------------------------------------------------*
; * (c) 1996 ESCAL Software GmbH. *
; ******************************************************************************
if level=-100
; #DoChoice
pic 1,"data\bmp\wait.bmp"
pic -1,"data\bmp\back.bmp"
page show 1
paint
#MakeTemps
end
flush -1
;hot "data\bmp\start.hot"
hot *hStartHot
frame init "data\bmp\start.bmp","data\bmp\start.fra",1
frame start
if level=-100
sample "data\wav\fx\rang001.wav",1
frame ani 1,31,200,(ev_lbutup,ev_sample)
end
frame show 31
pic 2,"data\bmp\gole101.bmp"
pic 3,"data\bmp\gosp201.bmp"
#LearnOrPlay
PAGE CLOSE 2
PAGE CLOSE 3
PAGE CLOSE 4
FRAME CLOSE
;set level,1
load "data\par\game.par"
return
:LearnOrPlay
set level,99
copy 4,1
repeat
wait ev_lbutup,ev_mmove
switch WaitEvent
case ev_lbutup
switch hot
case 1
set level,0
break
frame copy 101
; frame init "data\bmp\gole101.bmp","data\bmp\start.fra",1
; frame start
sample "data\wav\fx\gerpu026.wav",01
frame ani 101,109,200,(ev_lbutup)
if FrameEvent<>ev_lbutup
sample "data\wav\klabaut\lernen.wav",5
frame loop 110,116,200,(ev_sample,ev_lbutup)
end
set level,0
break
case 2
; frame init "data\bmp\gosp201.bmp","data\bmp\start.fra",1
; frame start
frame copy 201
sample "data\wav\fx\gerpu026.wav",01
frame ani 201,211,200,(ev_lbutup)
if FrameEvent<>ev_lbutup
sample "data\wav\klabaut\spielen.wav",5
frame loop 212,216,200,(ev_sample,ev_lbutup)
end
set level,7
break
case 3
#DelTemps
stop 1
endswitch
break
case ev_mmove
switch hot
case 0
; frame show 31
copy 1,4
break
case 1
; frame show 101
copy 1,2
break
case 2
; frame show 201
copy 1,3
break
endswitch
break
endswitch
until level<>99
sample ""
return
:DoChoice
pic 1,"data\bmp\auswahl.bmp"
page show 1
copy -2,1
pic -1,"data\bmp\ausklick.bmp"
timer 1,5
set tmp1,0
while not (hot>0 and WaitEvent=ev_lbutdn)
; repeat
wait ev_timer,ev_lbutdn,ev_mmove,ev_keydn
if WaitEvent=ev_keydn and key=13
set Waitevent,ev_lbutdn
set hot,1
end
#AniAll hot
; until hot>0 and WaitEvent=ev_lbutdn
wend
switch hot
case 1
sample "data\wav\fx\gerpu026.wav",1
copy 1,-2, 125,0, 400,442
timer 1,5
for @0,0,1
wait ev_timer
copy 1,-1, 244,232, 72,80, 230,229
paint
wait ev_timer
copy 1,-1, 244,232, 72,80, 306,229
paint
next
timer 1
page close -2
page close -1
return
case 2
#AniOne
chdir "demo_puz"
exec "demo.exe"
stop 1
case 3
#AniOne
chdir "demo_mem"
exec "pumudemo.exe"
stop 1
case 4
case 6
#AniOne
chdir "demo_mal"
exec "malbdemo.exe"
stop 1
case 5
#AniOne
chdir "demo_klb"
exec "jagd.exe"
stop 1
endswitch
return
:AniAll ;@0
if tmp2=0 or @0<=0
copy 1,-2, 125,0, 400,442
set tmp2,1
if @0>0
return
end
end
set tmp2,0
if @0<=0
inc tmp1
;set tmp1,tmp1>=6?tmp1:1
if tmp1>=6
set tmp1,1
end
set @0,tmp1
end
set tmp1,@0
switch @0
case 1
sprite 1,-1,0, 178,158, 230,284, 403,11
return
case 2
sprite 1,-1,0, 125,9, 120,112, 41,183
return
case 3
sprite 1,-1,0, 213,0, 96,108, 264,101
return
case 6
case 4
sprite 1,-1,0, 303,0, 144,58, 251,23
return
case 5
sprite 1,-1,0, 277,35, 204,124, 21,25
return
endswitch
return
:AniOne
sample "data\wav\fx\gerpu026.wav",1
for @0,0,10
#AniAll hot
Paint
next
return