aboutsummaryrefslogtreecommitdiff
path: root/src/example
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-11-13 12:33:16 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-11-13 12:33:16 +0100
commite4b3162d28a635af37dd7ca1f71db16e0d196864 (patch)
tree800bf855db81bf78ad9acdc09e98559c20945956 /src/example
parentf1ba2a5607f23ed0b23d74240ea66cb1f8d2c1ad (diff)
moved get_instance
Diffstat (limited to 'src/example')
-rw-r--r--src/example/events.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/example/events.cpp b/src/example/events.cpp
index ff97cf1..af6f294 100644
--- a/src/example/events.cpp
+++ b/src/example/events.cpp
@@ -9,13 +9,14 @@
#include <crepe/api/GameObject.h>
#include <crepe/api/Script.h>
#include <crepe/api/Transform.h>
-
#include "crepe/api/Event.h"
#include "crepe/api/EventManager.h"
#include "crepe/api/IKeyListener.h"
#include "crepe/api/IMouseListener.h"
+
using namespace crepe;
using namespace std;
+
class MyScript : public Script, public IKeyListener,public IMouseListener{
void update() {
// Retrieve component from the same GameObject this script is on