summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-04-23 11:21:28 +0000
committerGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-04-23 11:21:28 +0000
commitf71472046334287457a34a6ff19bf53d3aaf557a (patch)
treeeeb7db6c4220bf4f05f2b730fc892cb0c2ec54ee /main.cpp
parentf1f7b9177e2b2b693b9aa805c6aa6bf9bab5ab17 (diff)
downloadbullet-lab-remix-f71472046334287457a34a6ff19bf53d3aaf557a.tar.xz
Disable screenshot when you're entering your honourable name. It's
not tested so we could only hope that will work... Add crappy sounds to (part of) the menus. Replace a level in assessment mode. The original one was meanless.. The menu sounds are too crappy... remove them temporarily. However, let's complete the code base so that we won't waste time writing it...
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index bae7e80..d0038c1 100644
--- a/main.cpp
+++ b/main.cpp
@@ -1006,7 +1006,7 @@ bool FrameFunc()
fnt->printf(5, 150, HGETEXT_LEFT, "Multiplier: %.2lf",mult);
}
}
- if(hge->Input_GetKeyStateEx(HGEK_S)==HGEKST_HIT)hge->System_Snapshot();
+ if(hge->Input_GetKeyStateEx(HGEK_S)==HGEKST_HIT&&Current_Position!=7)hge->System_Snapshot();
hge->Gfx_EndScene();
return false;
}
@@ -1232,6 +1232,8 @@ int main(int argc,char *argv[])
MenuTex=hge->Texture_Load("./Resources/menus.png");
sky.Init();
snd=hge->Effect_Load("./Resources/tap.ogg");
+ menuin=hge->Effect_Load("./Resources/menuin.ogg");
+ menuout=hge->Effect_Load("./Resources/menuout.ogg");
titlespr=new hgeSprite(TexTitle,0,0,640,320);
playerspr=new hgeSprite(SprSheet,0,24,24,24);
playerspr->SetHotSpot(12,12);
@@ -1316,6 +1318,8 @@ int main(int argc,char *argv[])
delete bulletspr[i];
if(i<grey)delete towerspr[i];
}
+ hge->Effect_Free(snd);hge->Effect_Free(menuin);
+ hge->Effect_Free(menuout);
hge->Texture_Free(SprSheet);hge->Texture_Free(TLeaf);
hge->Texture_Free(quad.tex);hge->Texture_Free(TSflake);
hge->Texture_Free(TexTitle);hge->Texture_Free(TexCredits);