summaryrefslogtreecommitdiff
path: root/global.bmx
diff options
context:
space:
mode:
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()