This repository was archived by the owner on Mar 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
How to setup Blooket.JS
RedYetiDev edited this page Feb 28, 2021
·
2 revisions
To setup Blooket.JS, you can use the following snippet in your JavaScript files.
Blooket = require("blooket.js")
var game = new Blooket()Let's Talk about this:
var game = new Blooket()
You can add options when running var game = new Blooket(), like so:
var game = new Blooket({
option: value
})Below is a table listing the available options.
| Option | Description | Type | Values | Default Value |
|---|---|---|---|---|
| repeat | Once the client answers all questions, will it start over | Boolean | true/false | true |
| blookcash | (Factory Mode Only) How much cash each block should give. | Integer | Any number | 100 |
| blooktime | (Factory Mode Only) How long between the books generating cash | Integer (milliseconds) | Any Number | 1000 |
| answertime | (Battle Royale Mode Only) How long it took the client to answer | Integer (milliseconds 1 to 20000) | Any number 1 to 20000 | 1 |
| cafebonus | (Cafe Mode Only) The amount of cash to give the client after every answer. | Integer | Any number | 100 |
| towerbonus | (Tower Defense Mode Only) The amount of cash to give the client after every answer. | Integer | Any number | 1 |
So, if I wanted repeat to be false
I would say
var game = new Blooket({
repeat: false
})And, if I wanted repeat to be false, and towerbonus to be 50
I would say
var game = new Blooket({
repeat: false,
towerbonus: 50
})That is how to setup Blooket.JS
Blooket.JS is by RedYetiDev
License Details
Blooket.JS is licensed under a Creative Commons Attribution 4.0 International License. This means means that you are free to share and adapt this package. BUT you are required to give appropriate credit to me (RedYetiDev), and anyone else you see fit. See the license file for details