mirror of
https://github.com/Sheldan/canvas.git
synced 2026-04-24 22:43:35 +00:00
survivors: adding collision for faster projectiles to also consider collisions between ticks
differentiating between pistol and homing pistol using projectile speed for straight projectile
This commit is contained in:
@@ -6,7 +6,7 @@ import {Player} from "./Player.ts";
|
||||
import {Vector} from "./base.ts";
|
||||
import {BasicEnemy, Enemy, HealthEnemy, ShootingEnemy} from "./Enemies.ts";
|
||||
import {HUD} from "./ui.ts";
|
||||
import {Pistol} from "./weapons.ts";
|
||||
import {HomingPistol, Pistol} from "./weapons.ts";
|
||||
|
||||
|
||||
let hud: HUD;
|
||||
@@ -118,7 +118,7 @@ docReady(function () {
|
||||
}, 15_000)
|
||||
|
||||
player.addWeapon(Pistol.spawnPistol(world))
|
||||
player.addWeapon(Pistol.spawnPistol(world))
|
||||
player.addWeapon(HomingPistol.spawnPistol(world))
|
||||
hud = new HUD(world);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user