home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1992-04-25 | 1.0 KB | 42 lines |
- '
- 'If you move this prog off the ta disk remove the line below or
- 'change it to the name of the new disk.
- '
- Dir$="Totally_amos_may_92:source_progs/newbouncybob"
- '
- BOUNCYBOB
- Procedure BOUNCYBOB
- Screen Open 0,320,256,32,Lowres : Double Buffer : Flash Off : Curs Off
- Hide : Get Sprite Palette
- Degree : R1=0 : R2=153 : R3=314 : R4=69
- Palette 0,0 : Shift Up 1,8,16,1 : Bob Off 8 : Get Sprite Palette : Palette 0,0
- Autoback 0 : Bob Update Off : LOP=180
- Do
- Shift Up 1,8,16,1
- For Z=0 To 280 Step 2
- Screen Swap
- Wait Vbl
- Bob Clear
- Y#=Sin(LOP)
- Bob 8,Z,Y#*160+200,2
- Bob 9,280-Z,Y#*100+200,1
- Bob 7,130,Y#*180+200,3
- LOP=LOP+2
- If LOP>360 Then LOP=180 : Bell 1
- Bob Draw
- Next Z
- Shift Down 1,8,16,1
- For Z=280 To 0 Step -2
- Screen Swap
- Wait Vbl
- Bob Clear
- Y#=Sin(LOP)
- Bob 8,Z,Y#*160+200,2
- Bob 9,280-Z,Y#*100+200,1
- Bob 7,130,Y#*180+200,3
- LOP=LOP+2
- If LOP>360 Then LOP=180 : Bell 1
- Bob Draw
- Next Z
- Loop
- End Proc