Add available lights list to levels.
authorSimon Cross <hodgestar@gmail.com>
Sat, 10 Sep 2016 12:55:02 +0000 (14:55 +0200)
committerSimon Cross <hodgestar@gmail.com>
Sat, 10 Sep 2016 12:55:02 +0000 (14:55 +0200)
data/stations/01-tutorial.json
data/stations/station-alpha.json

index 04f9d1c491b70eeb68919f91641d38afa1f92711..92d58739948662d0772ae3ad4f66c4d6b198dfed 100644 (file)
@@ -8,6 +8,7 @@
   "available_lights": [
     {
       "type": "lamp",
+      "cost": 3,
       "colours": ["blue", "red"],
       "intensity": 0.5
     }
index 4661a7d33bbb5cd23a312da63554b4c5d9056247..c74136482a3d518c93338c6d3fc3a5b1b2d2be4b 100644 (file)
@@ -5,7 +5,30 @@
     "spawn positions": [[275, 300]],
     "seeds": 10
   },
-  "available_lights": null,
+  "available_lights": [
+    {
+      "type": "spotlight",
+      "cost": 5,
+      "colours": ["red"],
+      "radius_limits": [20, 400],
+      "direction": 135,
+      "spread": 90,
+      "angular_velocity": 5,
+      "intensity": 0.8
+    },
+    {
+      "type": "lamp",
+      "cost": 3,
+      "colours": ["yellow"],
+      "intensity": 0.5
+    },
+    {
+      "type": "lamp",
+      "cost": 3,
+      "colours": ["red", "yellow", "green"],
+      "intensity": 0.5
+    }
+  ],
   "obstacles": [
     {
       "type": "wall",