Skip to content

Commit

Permalink
Beta 4.26.65
Browse files Browse the repository at this point in the history
  • Loading branch information
LanceJZ committed Oct 4, 2024
1 parent a5e4d88 commit 5647847
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 8 deletions.
10 changes: 8 additions & 2 deletions Asteroids Reimagined/Enemy2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,14 @@ void Enemy2::DropMine()

if (!Player->GameOver) PlaySound(FireSound);

MineDropTimeAmount = 4 - (((float)Wave - 3) * 0.5f);
float dropTime = GetRandomFloat(MineDropTimeAmount / 2, MineDropTimeAmount);
float dropTimeAdjust = ((float)Wave - 4) * 0.25f;

float min = (MineDropTimeAmount - dropTimeAdjust) / (((float)Wave - 4) * 0.5f);
float max = MineDropTimeAmount - dropTimeAdjust;

if (max < min) min = max;

float dropTime = GetRandomFloat(min, max);

Managers.EM.ResetTimer(LayMineTimerID, dropTime);

Expand Down
4 changes: 2 additions & 2 deletions Asteroids Reimagined/EnemyControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -524,14 +524,14 @@ void EnemyControl::SpawnEnemyOne()

void EnemyControl::SpawnEnemyTwo()
{
float enemyTimeAmountAdjust = ((float)(Wave - 3) * 0.5f) +
float enemyTimeAmountAdjust = ((float)(Wave - 4) * 0.5f) +
(((float)(EnemyTwoSpawnCount++)) * 0.05f);

if (EnemyTwoSpawnTimeAmount < enemyTimeAmountAdjust - 0.5f)
enemyTimeAmountAdjust = EnemyTwoSpawnTimeAmount - 0.5f;

float min = (EnemyTwoSpawnTimeAmount - enemyTimeAmountAdjust) /
(((float)(Wave - 3) * 0.1f) + 1.0f);
(((float)(Wave - 4) * 0.1f) + 1.0f);
float max = EnemyTwoSpawnTimeAmount - enemyTimeAmountAdjust;

if (max < min) min = max;
Expand Down
4 changes: 2 additions & 2 deletions Asteroids Reimagined/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ int WinMain()
int windowHeight = 960; //height
int windowWidth = 1280; //width

InitWindow(windowWidth, windowHeight, "Asteroids Reimagined - Beta 4.26.64");
InitWindow(windowWidth, windowHeight, "Asteroids Reimagined - Beta 4.26.65");
InitAudioDevice();

Image icon = LoadImage("icon.png");
Expand All @@ -48,7 +48,7 @@ int WinMain()

Managers.EM.SetUtilities(&TheUtilities);

// Define the camera to look into our 3D world
// Define the camera to look into our 3D world.
// Camera position
TheCamera.position = { 0.0f, 0.0f, -500.0f };
// Camera looking at point
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Asteroids Reimagined Beta 4.26.64 Released.
Asteroids Reimagined Beta 4.26.65 Released.

Instructions:
AWD to rotate and move. Use mouse to aim turret. Right mouse for shield. Left mouse to fire. Gun heats up as you fire, and slowly cools when you're not. Using shield drains its power, and slowly regains when not in use. E or Middle Mouse button for secondary weapon (Red, Yellow, Orange and Violet.) Mouse Wheel or F to switch type if you have more than one.
Expand Down Expand Up @@ -26,7 +26,8 @@ Fixed Fighter had no VFX but had audio when hit, Fighter pair had VFX, but no au
Fixed UFO shot not getting destroyed when player hit/shield hit.
Fixed player homing mines chasing Death Star no matter how far away it was.
Fixed Enemy firing many missiles at once suddenly.
Boss did not spawn for wave 5, game in unable to complete.
Fixed Boss did not spawn for wave 5, game in unable to complete.
Fixed Enemy Two that drops mines, after wave ten would drop a mine every frame after the first time.

Changes:
When UFO hits rock, 5 to number of rocks by wave spawn if not a small rock.
Expand Down
Binary file modified Release/Asteroids Reimagined Update.zip
Binary file not shown.
Binary file modified Release/Asteroids Reimagined.exe
Binary file not shown.
Binary file modified Release/Asteroids Reimagined.zip
Binary file not shown.

0 comments on commit 5647847

Please sign in to comment.