home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #3
/
amigamamagazinepolishissue1998.iso
/
maksiu
/
utils
/
eaissue3b.lha
/
Source_Code
/
RM_Blood_Splatter.AMOS
/
RM_Blood_Splatter.amosSourceCode
< prev
next >
Wrap
AMOS Source Code
|
1995-12-30
|
1KB
|
54 lines
' Blood splater.
'
' This is simular to the windscreen 2 routine
'
' It colour be useful for the next Amos Apocolypse!
'
' (I doubt AJC will agree though!)
'
' By Richard Martin
'
'
Screen Open 0,320,200,4,Lowres
Palette $0,$FFF,$F00,$C00
Cls 0
Ink 2
Circle 50,50,3
Paint 51,51
Get Bob 1,45,45 To 55,55
Cls 0
Do
BLOOD[Rnd(15)+20]
' Put a delay between them
Wait 15
Exit If Mouse Key
Loop
'
Procedure BLOOD[SIZE]
'
' Draw great blood blob!
'
CENTERX=Rnd(320)
CENTERY=Rnd(200)
For I=1 To SIZE
RAND1=Rnd(15)
RAND2=Rnd(10)
RAND3=Rnd(100)
If RAND3>50
RAND1=RAND1-(RAND1*2)
RAND2=RAND2-(RAND2*2)
End If
Paste Bob CENTERX+RAND1,CENTERY-RAND2,1
Next I
End Proc
'
'
' If you want to incorporate this into a game, look inside the BLOOD[]
' procedure and see where is says Centerx=blaa blaa blaa and Centery=
' bleat bleat bleat and replace them with the X and Y value of the thing
' that got blasted.
'
' I.E.
'
' Centerx=alienx
'