From f71472046334287457a34a6ff19bf53d3aaf557a Mon Sep 17 00:00:00 2001 From: "chirs241097@gmail.com" Date: Wed, 23 Apr 2014 11:21:28 +0000 Subject: 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... --- main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'main.cpp') 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(iEffect_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); -- cgit v1.2.3