Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/main/java/deltablade/DeltaBladeFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@ private static Node safeTexture(String name, int w, int h, Color fallback) {

@Spawns("player")
public Entity newPlayer(SpawnData data) {
// TODO: Add Gerald's real blue ship PNGs (384x48, 8 frames each):
// - player_blue_thruster.png (2508 bytes)
// - player_blue_bank.png (3759 bytes)
// - player_blue_bowwave.png (4603 bytes)
// Add to src/main/resources/assets/textures/ AND embed in EmbeddedTextures.TEXTURE_DATA
// Animation infrastructure is ready - just needs the lossless PNG bytes.
Image thrusterSheet = EmbeddedTextures.getImage("player_blue_thruster.png", 384, 48);
Image bankSheet = EmbeddedTextures.getImage("player_blue_bank.png", 384, 48);
Image bowwaveSheet = EmbeddedTextures.getImage("player_blue_bowwave.png", 384, 48);
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/deltablade/EmbeddedTextures.java

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion src/main/java/deltablade/WaveManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,13 @@ public void update(double tpf) {
return;
}

if (enemiesSpawned < totalEnemiesInWave && squadsToSpawn > 0) {
if (enemiesSpawned < totalEnemiesInWave) {
squadSpawnTimer += tpf;
if (squadSpawnTimer >= squadSpawnDelay) {
squadSpawnTimer = 0;
if (squadsToSpawn <= 0) {
squadsToSpawn = 1;
}
spawnNextSquad();
}
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.