display buffs in the client

This commit is contained in:
2025-01-18 12:00:12 +09:00
parent 18c3ace616
commit 8457312f63
5 changed files with 90 additions and 27 deletions
+9 -9
View File
@@ -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'
}