Skip to content

Commit

Permalink
fix: bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SorataBaka committed Jan 30, 2024
1 parent 40d7b85 commit aa79911
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ <h3 class="text-2xl font-bold">ソースからビルドする</h3>
</div>
<p class="text-xl">3. tar ファイルからソースコードを抽出します。</p>
<div class="bg-gray-500 rounded p-2 text-white font-mono bg-opacity-90">
<p>> tar xvzf ./galactic-war-1.0.0.tar.gz</p>
<p>> tar xvzf ./v1.0.0.tar.gz</p>
</div>
<p class="text-xl">4. ソースコードからコンパイルする</p>
<div class="bg-gray-500 rounded p-2 text-white font-mono bg-opacity-90">
Expand All @@ -92,14 +92,14 @@ <h3 class="text-2xl font-bold">ソースからビルドする</h3>
</div>
<p class="text-4xl">5. 実行可能ファイルを実行する。</p>
<div class="bg-gray-500 rounded p-2 text-white font-mono bg-opacity-90">
<p>> cd ./glwar</p>
<p>> ./glwar</p>
</div>
</div>
</section>
<hr class=" border-white">
<section class="h-auto flex flex-col align-middle justify-center">
<h2 class="text-4xl font-bold mb-5">操作方法</h2>

</section>
<hr class=" border-white">
<section class="h-auto flex flex-col align-middle justify-center">
Expand Down
6 changes: 3 additions & 3 deletions src/game.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ void game(Player * playerObject, Meteor * meteorArray) {

//Draw health and other informations
mvprintw(0, 0, "Health: %3d\nPoints: %ld\nMissiles: %d/12\nStreak: %3d", playerObject->health, playerObject->points, 12 - missileLength, playerObject->streak);
mvprintw(maxHeight-2, maxWidth-25, "[%c] LASER : %s", playerObject->userBindings.laser,playerObject->streak >= 20 ? "READY": "NOT READY");
mvprintw(maxHeight-3, maxWidth-25, "[%c] BOMB : %s", playerObject->userBindings.bomb ,playerObject->streak >=30 ? "READY" : "NOT READY");
mvprintw(maxHeight-2, maxWidth-25, "[%c] LASER : %s", playerObject->userBindings.laser,playerObject->streak >= LASER_STREAK_MIN ? "READY": "NOT READY");
mvprintw(maxHeight-3, maxWidth-25, "[%c] BOMB : %s", playerObject->userBindings.bomb ,playerObject->streak >= BOMB_STREAK_MIN ? "READY" : "NOT READY");

refresh();

Expand All @@ -69,7 +69,7 @@ void game(Player * playerObject, Meteor * meteorArray) {
if(key == 'q') break;
if(key == playerObject->userBindings.left && playerObject->currentPosition.x > 5) playerObject->currentPosition.x = playerObject->currentPosition.x - MOVEMENT_STEP;
if(key == playerObject->userBindings.right && playerObject->currentPosition.x < maxWidth-5) playerObject->currentPosition.x = playerObject->currentPosition.x + MOVEMENT_STEP;
if(key == playerObject->userBindings.laser && laserActive == false && playerObject->streak >= BOMB_STREAK_MIN){
if(key == playerObject->userBindings.laser && laserActive == false && playerObject->streak >= LASER_STREAK_MIN){
laserActive = true;
playerObject->streak = 0;
timeSinceLastLaser = getEpochMill();
Expand Down

0 comments on commit aa79911

Please sign in to comment.