summaryrefslogtreecommitdiff
path: root/global.bmx
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2006-06-11 00:52:01 +0000
committerIan C <ianc@noddybox.co.uk>2006-06-11 00:52:01 +0000
commite9c53b3a4f3fd89176a34e8bd4aa527b51ca89ff (patch)
tree33cda4c01fbaeea75a11376e89bc68573fa03ad1 /global.bmx
parent88d280bb46d7557a06d2ab0342e42896549c7f9a (diff)
Added twinkling stars and starting level options
Diffstat (limited to 'global.bmx')
-rw-r--r--global.bmx9
1 files changed, 9 insertions, 0 deletions
diff --git a/global.bmx b/global.bmx
index e953197..dbcd52e 100644
--- a/global.bmx
+++ b/global.bmx
@@ -37,6 +37,7 @@ Incbin "GFX/missile.png"
Incbin "GFX/exhaust.png"
Incbin "GFX/flame.png"
Incbin "GFX/star.png"
+Incbin "GFX/twinkle.png"
Incbin "GFX/asteroid.png"
Incbin "GFX/fireball.png"
@@ -56,6 +57,7 @@ Type GFX
Global exhaust:TImage
Global flame:TImage
Global star:TImage
+ Global twinkle:TImage
Global asteroid:TImage
Global fireball:TImage
@@ -91,6 +93,9 @@ Type GFX
star=SafeLoadImage("incbin::GFX/star.png",0)
SetImageHandle(star,1,1)
+ twinkle=SafeLoadAnimImage("incbin::GFX/twinkle.png",8,8,0,6,0)
+ SetImageHandle(star,2,2)
+
asteroid=SafeLoadImage("incbin::GFX/asteroid.png",FILTEREDIMAGE)
MidHandleImage(asteroid)
@@ -105,6 +110,7 @@ Type GameConfig
Global kpause:Int
Global kthrust:Int
Global hiscore:Int
+ Global maxlevel:Int
Global accepted:Int
Function Load()
@@ -116,6 +122,7 @@ Type GameConfig
kthrust=KEY_SPACE
kpause=KEY_P
hiscore=0
+ maxlevel=1
accepted=False
Return
EndIf
@@ -127,6 +134,7 @@ Type GameConfig
kthrust=s.ReadInt()
kpause=s.ReadInt()
hiscore=s.ReadInt()
+ maxlevel=s.ReadInt()
accepted=s.ReadInt()
s.Close()
@@ -146,6 +154,7 @@ Type GameConfig
s.WriteInt(kthrust)
s.WriteInt(kpause)
s.WriteInt(hiscore)
+ s.WriteInt(maxlevel)
s.WriteInt(accepted)
s.Close()