aboutsummaryrefslogtreecommitdiff
path: root/levels
diff options
context:
space:
mode:
authorIndrajith K L2021-08-02 13:48:25 +0530
committerIndrajith K L2021-08-02 13:48:25 +0530
commit7d988900e2f73992fea504419d61d4cdf759fedf (patch)
treea722fc38bcd7d9b4155c54b32acf9a5dc44cfdd9 /levels
parent2ff207a1d30830aeca2ea9e5d085a55ee3448ab0 (diff)
downloadrebirth-wren-7d988900e2f73992fea504419d61d4cdf759fedf.tar.gz
rebirth-wren-7d988900e2f73992fea504419d61d4cdf759fedf.tar.bz2
rebirth-wren-7d988900e2f73992fea504419d61d4cdf759fedf.zip
* Basic Game State Implementation
* Code Refactoring
Diffstat (limited to 'levels')
-rw-r--r--levels/level1.wren14
-rw-r--r--levels/level2.wren5
2 files changed, 19 insertions, 0 deletions
diff --git a/levels/level1.wren b/levels/level1.wren
new file mode 100644
index 0000000..c485924
--- /dev/null
+++ b/levels/level1.wren
@@ -0,0 +1,14 @@
+import "./level_map" for LevelMap
+class Level1 {
+ construct new() {
+ _level1 = LevelMap.new("level1")
+ }
+
+ update() {
+
+ }
+
+ draw(dt) {
+ _level1.draw(0,0)
+ }
+} \ No newline at end of file
diff --git a/levels/level2.wren b/levels/level2.wren
new file mode 100644
index 0000000..6323ad5
--- /dev/null
+++ b/levels/level2.wren
@@ -0,0 +1,5 @@
+class Level2 {
+ construct new() {
+
+ }
+} \ No newline at end of file