summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVittorio Romeo <vittorio.romeo@outlook.com>2021-10-31 18:00:02 +0000
committerVittorio Romeo <vittorio.romeo@outlook.com>2021-10-31 18:00:02 +0000
commita25ec9b311195fb457da864e43868ffba1fa9abc (patch)
tree17b6cb750f605f39e6886bd5ccfc0108047316c2
parent037529ee3ccf8ffd8bf8d99b96f870d0f925e522 (diff)
Add random sandbox testing level
-rw-r--r--_RELEASE/Packs/experimental/Levels/sandbox.json12
-rw-r--r--_RELEASE/Packs/experimental/Scripts/Levels/sandbox.lua25
2 files changed, 37 insertions, 0 deletions
diff --git a/_RELEASE/Packs/experimental/Levels/sandbox.json b/_RELEASE/Packs/experimental/Levels/sandbox.json
new file mode 100644
index 00000000..f1ac3927
--- /dev/null
+++ b/_RELEASE/Packs/experimental/Levels/sandbox.json
@@ -0,0 +1,12 @@
+{
+ "id": "sandbox",
+ "name": "sandbox",
+ "description": "dance!",
+ "author": "vittorio romeo",
+ "menuPriority": -10000,
+ "selectable": true,
+ "styleId": "cw",
+ "musicId": "jackRussel",
+ "luaFile": "Scripts/Levels/sandbox.lua",
+ "difficultyMults": []
+}
diff --git a/_RELEASE/Packs/experimental/Scripts/Levels/sandbox.lua b/_RELEASE/Packs/experimental/Scripts/Levels/sandbox.lua
new file mode 100644
index 00000000..145e8bd0
--- /dev/null
+++ b/_RELEASE/Packs/experimental/Scripts/Levels/sandbox.lua
@@ -0,0 +1,25 @@
+-- onInit is an hardcoded function that is called when the level is first loaded
+function onInit()
+ u_log(u_rndIntUpper(100))
+end
+
+-- onLoad is an hardcoded function that is called when the level is started/restarted
+function onLoad()
+end
+
+-- onStep is an hardcoded function that is called when the level timeline is empty
+-- onStep should contain your pattern spawning logic
+function onStep()
+end
+
+-- onIncrement is an hardcoded function that is called when the level difficulty is incremented
+function onIncrement()
+end
+
+-- onUnload is an hardcoded function that is called when the level is closed/restarted
+function onUnload()
+end
+
+-- onUpdate is an hardcoded function that is called every frame
+function onUpdate(mFrameTime)
+end