display buffs in the client
This commit is contained in:
+9
-9
@@ -121,17 +121,17 @@ function laneScenario() {
|
||||
game.spawnEntity(new Entity(Template.minion(Team.red, { ranged: true, route: redRoute })))
|
||||
}
|
||||
}
|
||||
// game.logic = gameLogic
|
||||
game.logic = gameLogic
|
||||
|
||||
player2.teleport(new Vector2(100, 100))
|
||||
player2.logic = function patrolLogic() {
|
||||
const entity = this
|
||||
if (entity.position.x < 100) { entity.memory.patrolReverse = false }
|
||||
if (entity.position.x > 1900) { entity.memory.patrolReverse = true }
|
||||
const goal = entity.memory.patrolReverse ? new Vector2(50, 100) : new Vector2(1950, 100)
|
||||
// player2.teleport(new Vector2(100, 100))
|
||||
// player2.logic = function patrolLogic() {
|
||||
// const entity = this
|
||||
// if (entity.position.x < 100) { entity.memory.patrolReverse = false }
|
||||
// if (entity.position.x > 1900) { entity.memory.patrolReverse = true }
|
||||
// const goal = entity.memory.patrolReverse ? new Vector2(50, 100) : new Vector2(1950, 100)
|
||||
|
||||
entity.moveAction(goal)
|
||||
}
|
||||
// entity.moveAction(goal)
|
||||
// }
|
||||
|
||||
// player1.abilities[0] = 'melee_attack'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user