summaryrefslogtreecommitdiff
path: root/gametypes.bmx
diff options
context:
space:
mode:
Diffstat (limited to 'gametypes.bmx')
-rw-r--r--gametypes.bmx9
1 files changed, 9 insertions, 0 deletions
diff --git a/gametypes.bmx b/gametypes.bmx
index a89c366..7956568 100644
--- a/gametypes.bmx
+++ b/gametypes.bmx
@@ -265,6 +265,7 @@ Type Missile
Field turn:Double
Field speed:Double
Field accurate:Int
+ Field smoke:Int
Method New()
Select Rand(1,4)
@@ -291,6 +292,7 @@ Type Missile
If Rand(100)>50
accurate=True
EndIf
+ smoke=0
End Method
Method Update(tx:Double,ty:Double)
@@ -331,6 +333,13 @@ Type Missile
DrawImage(GFX.missile,x,y)
CollideImage(GFX.missile,x,y,0,0,MISSILE_LAYER,Self)
+ smoke:+1
+
+ If smoke=10
+ Particles.AddScaledImage(GFX.exhaust,x,y,0.1)
+ smoke=0
+ EndIf
+
If onscreen
x=x Mod 800
y=y Mod 600