summaryrefslogtreecommitdiff
path: root/Level.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Level.cpp')
-rw-r--r--Level.cpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/Level.cpp b/Level.cpp
new file mode 100644
index 0000000..a6cab97
--- /dev/null
+++ b/Level.cpp
@@ -0,0 +1,36 @@
+#include "Level.h"
+#include <iostream>
+
+#include "Monster.h"
+#include "Pickup.h"
+#include "Hazard.h"
+#include "Platform.h"
+
+Level::Level() {
+ std::cout << "Level::Level(): Level created.\n";
+}
+
+void Level::changeLevel(int levelNo) {
+ std::cout << "Level::changeLevel(): Loading level " << levelNo << ".\n";
+
+ // Creating some objects for fun/demonstration purposes
+ Monster monster1;
+ Pickup pickup1;
+ Hazard hazard1;
+ Platform platform1;
+
+ // Placing the player for fun/demonstration purposes
+ player.setX(0);
+ player.setY(0);
+
+ // Checking where the player is for fun/demonstration purposes
+ std::cout << "Level::changeLevel(): player is at " << player.getX() << ", " << player.getY() << ".\n";
+}
+
+void Level::move() {
+ //std::cout << "Level::move(): Moving level items.\n";
+}
+
+void Level::draw(SDL_Surface *screen) {
+ //std::cout << "Level::draw(): Drawing into the screen.\n";
+}