Browse Source

place more resources on generation, place them better

kyleperik 5 months ago
parent
commit
419a6fb13e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      setup.js

+ 2 - 2
setup.js

@@ -269,8 +269,8 @@ var initialState = {
269 269
     facing: { x: 1, y: 0 },
270 270
     objects: range(40).map(
271 271
         i => ({
272
-            type: Math.random() > .5 ? 'iron' : 'copper',
273
-            pos: vdo(() => Math.random() * 30 - 15),
272
+            type: ['iron', 'copper', 'sulfur', 'silicone'][Math.floor(Math.random() * 4)],
273
+            pos: vdo(() => Math.round(Math.random() * 30 - 15)),
274 274
             progress: 0
275 275
         })
276 276
     ).concat([{ type: 'charger', pos: { x: 0, y: 0 } }]),