aboutsummaryrefslogtreecommitdiff
path: root/game/player/PlayerEndScript.cpp
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2025-01-08 10:08:03 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2025-01-08 10:08:03 +0100
commit7f7c5c56dce30d47c32fb57fad6d839d0990b054 (patch)
treeeebc8d3f4c332d969f4a66a566edd844bd43387c /game/player/PlayerEndScript.cpp
parentceb41b7ae7e2734af954364b319fc0b6f2a86c2f (diff)
enemy spawn working + enemy shooting
Diffstat (limited to 'game/player/PlayerEndScript.cpp')
-rw-r--r--game/player/PlayerEndScript.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/game/player/PlayerEndScript.cpp b/game/player/PlayerEndScript.cpp
index e04fb9d..fc3b8a1 100644
--- a/game/player/PlayerEndScript.cpp
+++ b/game/player/PlayerEndScript.cpp
@@ -1,3 +1,4 @@
+#include <iostream>
#include "PlayerEndScript.h"
#include "../Config.h"
@@ -22,6 +23,7 @@ void PlayerEndScript::init() {
}
bool PlayerEndScript::on_collision(const crepe::CollisionEvent & ev) {
+ cout << "collision player" << endl;
if (ev.info.other.metadata.name == "floor") {
Transform & transform_player
= this->get_components_by_name<Transform>("player").front();