Skip to content
This repository was archived by the owner on Mar 5, 2021. It is now read-only.

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 Wiki Page

Installing

Setup

Using

Clone this wiki locally