restrict casting vision to nearby enemies
This commit is contained in:
+1
-1
@@ -142,7 +142,7 @@ export default class Game {
|
||||
}
|
||||
|
||||
const callUpdate = function callUpdate(object) { object.update() }
|
||||
this.entities.forEach(callUpdate) // TODO: entity with lower ID has unfair collision advantage (regular loop + until it fully loops around with an offset?)
|
||||
this.entities.forEach(callUpdate)
|
||||
this.projectiles.forEach(callUpdate)
|
||||
if (this.#logic != null) {
|
||||
this.#logic()
|
||||
|
||||
Reference in New Issue
Block a user