summaryrefslogtreecommitdiff
path: root/types.bmx
diff options
context:
space:
mode:
Diffstat (limited to 'types.bmx')
-rw-r--r--types.bmx14
1 files changed, 10 insertions, 4 deletions
diff --git a/types.bmx b/types.bmx
index 42cb2bd..0de29d6 100644
--- a/types.bmx
+++ b/types.bmx
@@ -26,7 +26,6 @@ Incbin "GFX/copperslice.png"
Incbin "GFX/dust.png"
Incbin "GFX/title.png"
Incbin "GFX/gameover.png"
-Incbin "GFX/cursor.png"
Incbin "TILES/tile.png"
Incbin "TILES/pit_top.png"
@@ -45,6 +44,9 @@ Incbin "TILES/top_right.png"
Incbin "TILES/bottom_left.png"
Incbin "TILES/bottom_right.png"
+Incbin "TILES/special_bomb.png"
+Incbin "TILES/special_twister.png"
+
Const HERTZ:Int=60
Type Lookup
@@ -83,7 +85,6 @@ Type GameGFX
Global scores_button:TImage
Global keys_button:TImage
- Global cursor:TImage
Global tile:TImage
Global pit_top:TImage
@@ -104,6 +105,9 @@ Type GameGFX
Global bottom_left:Timage
Global bottom_right:Timage
+ Global special_bomb:TImage
+ Global special_twister:TImage
+
Function Init()
font=TBitmapFont.Load("incbin::GFX/font.bmf",0)
small=TBitmapFont.Load("incbin::GFX/small.bmf",0)
@@ -129,7 +133,6 @@ Type GameGFX
right_button=LoadImage("incbin::GFX/right_button.png",0)
tile=LoadImage("incbin::TILES/tile.png",0)
- cursor=LoadImage("incbin::GFX/cursor.png",0)
pit_top=LoadImage("incbin::TILES/pit_top.png",0)
pit_bottom=LoadImage("incbin::TILES/pit_bottom.png",0)
@@ -148,6 +151,9 @@ Type GameGFX
top_right=LoadImage("incbin::TILES/top_right.png",0)
bottom_left=LoadImage("incbin::TILES/bottom_left.png",0)
bottom_right=LoadImage("incbin::TILES/bottom_right.png",0)
+
+ special_bomb=LoadAnimImage("incbin::TILES/special_bomb.png",32,32,0,40)
+ special_twister=LoadAnimImage("incbin::TILES/special_twister.png",32,32,0,40)
End Function
End Type
@@ -199,7 +205,7 @@ Type GameConfig
s.WriteInt(kleft)
s.WriteInt(kright)
s.WriteInt(krotright)
- s.WriteInt(krotright)
+ s.WriteInt(krotleft)
s.WriteInt(kdrop)
s.WriteInt(kpause)
s.WriteInt(start_level)