Skip to content

Commit

Permalink
Refactor EnemySpawner to use generic Ship type for enemy instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
erdemunlu committed Jan 27, 2024
1 parent 87ab10a commit 58e6f74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/EnemySpawner.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import Game from "../Game";
import { EnemyShipWeak } from "../objects/ships/EnemyShipWeak";
import { Ship } from "../objects/ships/Ship";

export class EnemySpawner {
enemyShip: EnemyShipWeak;
enemyShip: Ship;

constructor() {
this.enemyShip = new EnemyShipWeak();
Expand Down

0 comments on commit 58e6f74

Please sign in to comment.