You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: api/source/Game.md
-87
Original file line number
Diff line number
Diff line change
@@ -122,35 +122,12 @@ not spawned in the world can be accessed here.
122
122
123
123
124
124
125
-
{% api_property Game.resources 'object' %}
126
-
127
-
128
-
129
-
An object with your global resources that are bound to the account, like pixels or cpu unlocks. Each object key is a resource constant, values are resources amounts.
Unlock full CPU for your account for additional 24 hours. This method will consume 1 CPU unlock bound to your account (See [`Game.resources`](#Game.resources)).
289
-
If full CPU is not currently unlocked for your account, it may take some time (up to 5 minutes) before unlock is applied to your account.
290
-
291
-
### Return value
292
-
293
-
One of the following codes:
294
-
{% api_return_codes %}
295
-
OK | The operation has been scheduled successfully.
296
-
ERR_FULL | Your CPU is unlocked with a subscription.
297
-
ERR_NOT_ENOUGH_RESOURCES | Your account does not have enough `cpuUnlock` resource.
298
-
{% endapi_return_codes %}
299
-
300
-
{% api_method Game.cpu.generatePixel '' 3 %}
301
-
302
-
```javascript
303
-
if(Game.cpu.bucket==10000) {
304
-
Game.cpu.generatePixel();
305
-
}
306
-
```
307
-
308
-
Generate 1 pixel resource unit for 10000 CPU from your bucket.
309
-
310
-
### Return value
311
-
312
-
One of the following codes:
313
-
{% api_return_codes %}
314
-
OK | The operation has been scheduled successfully.
315
-
ERR_NOT_ENOUGH_RESOURCES | Your bucket does not have enough CPU.
0 commit comments