mirror of
https://github.com/Sheldan/canvas.git
synced 2026-04-16 12:28:02 +00:00
survivors: reducing jumpiness of homing projectiles re-directing by limiting it to a certain angle
adding rad degree conversion utils checking world border for projectiles
This commit is contained in:
@@ -62,6 +62,10 @@ export class World {
|
||||
return this._size;
|
||||
}
|
||||
|
||||
outside(position: Vector): boolean {
|
||||
return position.x > this.size.x || position.y > this.size.y || position.x < 0 || position.y < 0
|
||||
}
|
||||
|
||||
addEnemy(enemy: Enemy) {
|
||||
this._enemies.push(enemy)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user