From f68cc9034a576b6f91cf0db0344ece971944c973 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 1 Nov 2015 23:32:22 +0800 Subject: Move hge to an archive. Finish the main part of smPath. This is a C++ project, add C++ tags to all source code that could be identified as C source files. --- archive/blr1/src/effects.h | 5 +++-- archive/blr1/src/global.h | 5 +++-- archive/blr1/src/levels.h | 5 +++-- archive/blr1/src/loading.h | 1 + archive/blr1/src/menuitem.h | 1 + archive/blr1/src/menus.h | 1 + archive/blr1/src/scorec.h | 3 ++- archive/blr1/src/towernbullet.h | 1 + 8 files changed, 15 insertions(+), 7 deletions(-) (limited to 'archive/blr1') diff --git a/archive/blr1/src/effects.h b/archive/blr1/src/effects.h index 044a803..fe3b2de 100644 --- a/archive/blr1/src/effects.h +++ b/archive/blr1/src/effects.h @@ -1,3 +1,4 @@ +// -*- C++ -*- //Chrisoft Bullet Lab Remix HGE //Effects Implementations //"Copyleft" Chrisoft 2013 @@ -81,8 +82,8 @@ void BulletEffect_Process(int n) if (bullet[n].scale<=1){bullet[n].scale=1;return;} if (LOWFPS) bullet[n].effbrk-=17; - else + else --bullet[n].effbrk; if (bullet[n].effbrk<=0) bullet[n].scale-=0.04,bullet[n].effbrk=17; -} \ No newline at end of file +} diff --git a/archive/blr1/src/global.h b/archive/blr1/src/global.h index 85804e8..c1c3d4d 100644 --- a/archive/blr1/src/global.h +++ b/archive/blr1/src/global.h @@ -1,3 +1,4 @@ +// -*- C++ -*- //Chrisoft Bullet Lab Remix HGE //Global varibles and implementations //"Copyleft" Chrisoft 2013 @@ -13,7 +14,7 @@ hgeFont *fnt; hgeSprite *spr,*titlespr; //Here are some Varibles in Bullet Lab int Current_Position;//Where are we now. -/*Scenes: +/*Scenes: 0: main menu 1: game scene 2: tip scene @@ -186,7 +187,7 @@ void ShowTip(char tip[]) if (LOWFPS) { if (TipFont->GetColor()>>24>=0x08) - TipFont->SetColor(TipFont->GetColor()-0x8000000); + TipFont->SetColor(TipFont->GetColor()-0x8000000); else { DisableAllTower=false; diff --git a/archive/blr1/src/levels.h b/archive/blr1/src/levels.h index d706f4a..fba5acc 100644 --- a/archive/blr1/src/levels.h +++ b/archive/blr1/src/levels.h @@ -1,3 +1,4 @@ +// -*- C++ -*- //Chrisoft Bullet Lab Remix HGE //Level Implementations //"Copyleft" Chrisoft 2013 @@ -826,7 +827,7 @@ void Level6Part3() } } void Level6Part4() -{ +{ frameleft=ThirtySeconds;clrtime=3; if (bulcnt!=0||towcnt!=5&&towcnt!=0) { @@ -1877,4 +1878,4 @@ Give yourself an award even if you cannot pass this level."); IfCallLevel=false; return; } -} \ No newline at end of file +} diff --git a/archive/blr1/src/loading.h b/archive/blr1/src/loading.h index acf59aa..45f5cee 100644 --- a/archive/blr1/src/loading.h +++ b/archive/blr1/src/loading.h @@ -1,3 +1,4 @@ +// -*- C++ -*- unsigned char Loading[]= {0x89,0x50,0x4E,0x47,0x0D,0x0A,0x1A,0x0A,0x00,0x00,0x00,0x0D,0x49,0x48,0x44,0x52,0x00,0x00,0x00,0x60, 0x00,0x00,0x00,0x20,0x08,0x06,0x00,0x00,0x00,0xED,0xC0,0x7D,0x54,0x00,0x00,0x00,0x09,0x70,0x48, diff --git a/archive/blr1/src/menuitem.h b/archive/blr1/src/menuitem.h index 5788ed9..4794be2 100644 --- a/archive/blr1/src/menuitem.h +++ b/archive/blr1/src/menuitem.h @@ -1,3 +1,4 @@ +// -*- C++ -*- /* ** Haaf's Game Engine 1.7 ** Copyright (C) 2003-2007, Relish Games diff --git a/archive/blr1/src/menus.h b/archive/blr1/src/menus.h index cffcee7..a47f8f6 100644 --- a/archive/blr1/src/menus.h +++ b/archive/blr1/src/menus.h @@ -1,3 +1,4 @@ +// -*- C++ -*- //Chrisoft Bullet Lab Remix HGE //Menu Implementations //"Copyleft" Chrisoft 2013 diff --git a/archive/blr1/src/scorec.h b/archive/blr1/src/scorec.h index d07615a..fa8af22 100644 --- a/archive/blr1/src/scorec.h +++ b/archive/blr1/src/scorec.h @@ -1,3 +1,4 @@ +// -*- C++ -*- //Chrisoft Bullet Lab Remix HGE //Score Recording Implementations //"Copyleft" Chrisoft 2013 @@ -249,4 +250,4 @@ void InsertHighScore() break; } Score_Write(); -} \ No newline at end of file +} diff --git a/archive/blr1/src/towernbullet.h b/archive/blr1/src/towernbullet.h index 6cae63d..2a3dacb 100644 --- a/archive/blr1/src/towernbullet.h +++ b/archive/blr1/src/towernbullet.h @@ -1,3 +1,4 @@ +// -*- C++ -*- //Chrisoft Bullet Lab Remix HGE //Towers and Bullets Implementations //"Copyleft" Chrisoft 2013 -- cgit v1.2.3