This commit is contained in:
Martin
2022-11-16 14:04:23 +01:00
parent 0eb9cc907f
commit 3c39653e47
11 changed files with 790 additions and 170 deletions

View File

@@ -65,7 +65,7 @@ export class PlayerCollisionSystem {
private resolveXpContact(xpCollider: Collider2D): void {
const xp: XP = xpCollider.node.getComponent(XP);
this.player.addXp(xp.Value);
this.player.Level.addXp(xp.Value);
xp.pickup();
console.log("Collided with xp: " + xp);