From e9c53b3a4f3fd89176a34e8bd4aa527b51ca89ff Mon Sep 17 00:00:00 2001 From: Ian C Date: Sun, 11 Jun 2006 00:52:01 +0000 Subject: Added twinkling stars and starting level options --- global.bmx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'global.bmx') 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() -- cgit v1.2.3