Skip to content

Commit 16996f4

Browse files
committed
Fix bugs
1 parent 099afe3 commit 16996f4

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Classes/AddBrickGame.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class CAddBrickGame : public CGameBase
5353
enum
5454
{
5555
BRICKS_MOVE_INTERVAL = 2500,
56-
CONTROL_MOVE_INTERVAL = 95,
56+
CONTROL_MOVE_INTERVAL = 115,
5757
CONTROL_FIRE_INTERVAL = 100,
5858
BULLET_MOVE_INTERVAL = 70,
5959
SELF_ROW_INDEX = (ROW_COUNT - 2),

Classes/TankGame.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ void CTankGame::OnButtonEvent(const SEventContextButton* pButtonEvent)
188188
return;
189189
}
190190
int nDir = BTNID_2_DIR[pButtonEvent->nButtonID];
191+
if (nDir != DIR_LEFT && nDir != DIR_RIGHT && m_enGameStage == STAGE_BOSS)
192+
{
193+
return;
194+
}
191195

192196
// Update self tank direction
193197
if (pButtonEvent->bPressedFlag)

Classes/TankGame.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class CTankGame : public CGameBase
6565
BULLET_MOVE_INTERVAL = 40,
6666
TANK_KILL_ADD_SCORE = 10,
6767
NORMAL_STAGE_TANK_COUNT_MAX = 5,
68-
TANK_TOTAL_COUNT = 30,
68+
TANK_TOTAL_COUNT = 4,
6969
BOSS_SHAPE_ROW_COUNT = 8,
7070
BOSS_SHAPE_COLUMN_COUNT = 9,
7171
BOSS_TANK_LIFE_COUNT = 10,

0 commit comments

Comments
 (0)