mirror of
https://github.com/Sheldan/canvas.git
synced 2026-04-21 21:41:27 +00:00
survivors: fixing drops being duplicated (sometimes)
adding item container system to not edit the list while iterating over
This commit is contained in:
@@ -7,6 +7,7 @@ import {Vector} from "./base.ts";
|
||||
import {BasicEnemy, ContainerEnemy, Enemy, HealthEnemy, ShootingEnemy} from "./Enemies.ts";
|
||||
import {HUD} from "./ui.ts";
|
||||
import {HomingPistol, Pistol} from "./weapons.ts";
|
||||
import {MoneyDrop} from "./drop.ts";
|
||||
|
||||
|
||||
let hud: HUD;
|
||||
@@ -107,7 +108,6 @@ docReady(function () {
|
||||
world = new World(player, ctx, new Vector(window.innerWidth, window.innerHeight));
|
||||
state = new WorldState();
|
||||
|
||||
ShootingEnemy.spawnShootingEnemy(world, new Vector(350, 350))
|
||||
setInterval(() => {
|
||||
BasicEnemy.spawnBasicEnemy(world)
|
||||
ShootingEnemy.spawnShootingEnemy(world)
|
||||
|
||||
Reference in New Issue
Block a user