summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--levels/hello_portal.txt15
-rw-r--r--levels/portal_thereNback.txt15
-rw-r--r--levels/portal_wind_up_no_jump.txt19
-rwxr-xr-xsource/math.h1
4 files changed, 50 insertions, 0 deletions
diff --git a/levels/hello_portal.txt b/levels/hello_portal.txt
new file mode 100644
index 0000000..b7a2c56
--- /dev/null
+++ b/levels/hello_portal.txt
@@ -0,0 +1,15 @@
+0x1
+1 0 0 24 1
+1 0 64 1 10
+1 64 256 1 1
+0 128 64 1 1
+2 512 256 1 1
+1 448 192 10 1
+1 448 256 1 3
+1 1024 256 1 3
+1 512 384 8 1
+1 0 704 24 1
+1 1472 64 1 10
+4 896 64 1 2 20 21
+4 704 256 1 2 21 20
+
diff --git a/levels/portal_thereNback.txt b/levels/portal_thereNback.txt
new file mode 100644
index 0000000..0e7165e
--- /dev/null
+++ b/levels/portal_thereNback.txt
@@ -0,0 +1,15 @@
+0x1
+0 128 64 1 1
+1 0 0 25 1
+1 0 64 1 16
+1 64 768 5 1
+2 1088 832 1 1
+1 768 768 6 1
+1 640 320 8 1
+4 128 832 1 2 20 21
+4 1088 384 1 2 21 20
+1 448 960 18 1
+1 0 1088 8 1
+1 448 1024 1 1
+1 1536 64 1 14
+
diff --git a/levels/portal_wind_up_no_jump.txt b/levels/portal_wind_up_no_jump.txt
new file mode 100644
index 0000000..1fbed89
--- /dev/null
+++ b/levels/portal_wind_up_no_jump.txt
@@ -0,0 +1,19 @@
+0x1
+0 128 64 1 1
+1 0 0 25 1
+1 0 64 1 16
+1 64 768 3 1
+2 1088 832 1 1
+#1 0 960 25 1
+1 768 768 6 1
+1 640 320 8 1
+4 128 832 1 2 20 21
+4 1088 384 1 2 21 20
+1 448 960 18 1
+1 0 1088 8 1
+1 448 1024 1 1
+1 1536 64 1 14
+# horizontal portals (for testing)
+#4 320 640 2 1 22 23
+#4 320 320 2 1 23 22
+
diff --git a/source/math.h b/source/math.h
index da7744b..cc56a8f 100755
--- a/source/math.h
+++ b/source/math.h
@@ -1,6 +1,7 @@
#ifndef MATH_H
#define MATH_H
+#include "SDL2/SDL_assert.h"
#include <math.h>
#define PI 3.14159265358979323846264338327950288f