Contains all core game functions and classes
- Source
Classes
Namespaces
Members
(static) Achievements :Object
All registred achievements
- Object
- Source
(static) AchievementsById :Array.<Game.Achievement>
All registred achievements (Array)
- Array.<Game.Achievement>
- Source
(static) AchievementsOwned :number
Count of owned achievements
- number
- Source
(static) BuildingsOwned :Object
All registred objects
- Object
- Source
(static) CFell :boolean
Cupcake Fall flag
- boolean
- Source
(static) ClickMastery :number
Current click mastery
- number
- Source
(static) ClickMasteryStr :string
Click mastery string
- string
- Source
(static) ClickRank :string
Click rank string
- string
- Source
(static) CosmicCollapse :number
Cosmic collapse unlock flag
- number
- Source
(static) CustomLogs :string
Custom string in Logs section
- string
- Source
(static) CustomMenu :string
Custom string in Menu section
- string
- Source
(static) CustomMods :string
Custom string in Mods section
- string
- Source
(static) CustomStats :string
Custom string in Stats section
- string
- Source
(static) DEV :boolean
Dev mode flag
- boolean
- Source
(static) Kitten :boolean
Kitten mode flag
- boolean
- Source
(static) Marhmall :boolean
Marshmallow mode flag
- boolean
- Source
(static) Needto :number
Target for new click mastery rank
- number
- Source
(static) Objects :Object
All registred objects
- Object
- Source
(static) ObjectsById :Array.<Game.Object>
All registred objects (Array)
- Array.<Game.Object>
- Source
(static) T :number
Ticker varible
- number
- Source
(static) Ticker :string
Current news label
- string
- Source
(static) TickerAge :number
Current life of ticker
- number
- Source
(static) Upgrades :Array.<Game.Object>
All registred upgrades
- Array.<Game.Object>
- Source
(static) UpgradesById :Array.<Game.Object>
All registred upgrades (Array)
- Array.<Game.Object>
- Source
(static) UpgradesOwned :number
How much upgrades user owns
- number
- Source
(static) backgroundType :number
Custom background : 0=blue, 1=red...
- number
- Source
(static) beta :number
Indicates, if game is in beta
- number
- Source
(static) bg :string
Background image (bakers and such)
- string
- Source
(static) bgFade :string
Fading to background
- string
- Source
(static) bgR :number
Background ratio (0 - not faded, 1 - fully faded)
- number
- Source
(static) bgRd :number
Background ratio displayed
- number
- Source
(static) bigcupcakeDiv :HTMLElement
Cupcake sprite div
- HTMLElement
- Source
(static) bincup :number
Binary cupcake unlock flag
- number
- Source
(static) clickFrenzy :number
Click frenzy flag, as long as >0, mouse clicks get 777x more cupcakes
- number
- Source
(static) coffeeDiv :HTMLElement
Coffee sprite div
- HTMLElement
- Source
(static) coffeeH :number
Coffee height, between 0 and 1 (although should never go above 0.5)
- number
- Source
(static) coffeeHd :number
Coffee height display
- number
- Source
(static) coffeeName :string
Name of the current coffee. Name in statistics
- string
- Source
(static) coffeeProgress :number
You can a little bit for each achievement; 0-1 : coffee; 1-2 : chocolate coffee; 2-3 : raspberry coffee
- number
- Source
(static) coffeeType :number
Custom coffee : 0=plain, 1=chocolate...
- number
- Source
(static) computedMouseCps :number
Computed Mouse CPS
- number
- Source
(static) cupcakeClicks :number
Count of click on cupcake, +1 for each click on the cupcake
- number
- Source
(static) cupcakeNumbers :Array.<any>
Rising numbers
- Array.<any>
- Source
(static) cupcakeParticles :Array.<any>
Falling cupcakes
- Array.<any>
- Source
(static) cupcakes :number
Current count of cupcakes
- number
- Source
(static) cupcakesEarned :number
All cupcakes earned during gameplay
- number
- Source
(static) cupcakesPs :number
Cupcakes per second (to recalculate with every new purchase)
- number
- Source
(static) cupcakesReset :number
Cupcakes lost to resetting
- number
- Source
(static) cupcakesd :number
Current display count of cupcakes
- number
- Source
(static) darkchocClicks :number
Count of click on chocolate cupcakes, +1 for each dark chocolate cupcake clicked
- number
- Source
(static) elderWrath :number
Elder wrath target
- number
- Source
(static) elderWrathD :number
Elder wrath now
- number
- Source
(static) fps :number
FPS of the game. If increased - games speeds up
- number
- Source
(static) frenzy :number
Frenzy flag, as long as >0, cupcake production is multiplied by frenzyPower
- number
- Source
(static) frenzyPower :number
Power of Frenzy effect
- number
- Source
(static) gamestart :number
Date when save is created
- number
- Source
(static) globalCpsMult :number
Global CPS
- number
- Source
(static) goldenClicks :number
Count of click on golden cupcakes, +1 for each golden cupcake clicked
- number
- Source
(static) handmadecupcakes :number
All the cupcakes made from clicking the cupcake
- number
- Source
(static) indcup :number
Industrial cupcake unlock flag
- number
- Source
(static) missedGoldenClicks :number
Count of missed golden cupcake, +1 for each golden cupcake missed
- number
- Source
(static) mouseX :number
Mouse X
- number
- Source
(static) mouseY :number
Mouse Y
- number
- Source
(static) muscup :number
Music cupcake unlock flag
- number
- Source
(static) particles :Array.<any>
Generic particles
- Array.<any>
- Source
(static) particlesY :number
Y axis of generic particles
- number
- Source
(static) pledgeT :number
- number
- Source
(static) pledges :number
- number
- Source
(static) prefs :any
Game prefs
- any
- Source
(static) prestige :any
Cool stuff that carries over beyond resets
- any
- Source
(static) priceIncrease :number
Coefficient of price increase
- number
- Source
(static) ready :number
Indicates the game is fully initialized
- number
- Source
(static) satcupbought :number
Satanic cupcake unlock flag
- number
- Source
(static) storeToRebuild :number
Store rebuild flag
- number
- Source
(static) time :number
Current time
- number
- Source
(static) upgradesToRebuild :number
Rebuild upgrades flag
- number
- Source
(static) version :number
Version of the game
- number
- Source
(static) windowH :number
Window height
- number
- Source
(static) windowW :number
Window width
- number
- Source
Methods
(static) AbuseGC(mode) → {void}
Sets the delay to show of GC/DCC to zero.
Name | Type | Description |
---|---|---|
mode | any | 0 - GC, 1 - DCC |
- Source
- Type:
- void
(static) AddCupcake(amount, mode) → {void}
Dev function. Applies certain amount of cupcake with some mode
Name | Type | Description |
---|---|---|
amount | any | Amount of cupcake to apply |
mode | any | Mode of apply. 0 - Add, 1 - Multiply, 2 - Subtract, 3 - Divide |
- Source
- Type:
- void
(static) BgMusic() → {void}
Plays background audio
- Source
- Type:
- void
(static) CMastery() → {void}
Process click mastery
- Source
- Type:
- void
(static) CalculateGains() → {void}
Calculates gains
- Source
- Type:
- void
(static) CalculatePrestige() → {void}
Calculates prestige
- Source
- Type:
- void
(static) ChangeBG() → {void}
Invokes change BG image prompt
- Source
- Type:
- void
(static) ChangeCoffee(coffee) → {void}
Changes coffee
Name | Type | Description |
---|---|---|
coffee | string | coffee name |
- Source
- Type:
- void
(static) ChangeCupcake() → {void}
Opens prompt with new cupcake img url entering
- Source
- Type:
- void
(static) ChrCode() → {void}
Opens up Christmas Code prompts
- Source
- Type:
- void
(static) Clickcupcake() → {void}
Clicks on cupcake
- Source
- Type:
- void
(static) ComputeCps(base, add, mult, bonus) → {number}
Computes CPS
Name | Type | Description |
---|---|---|
base | number | Base CPS |
add | number | Add part (+) |
mult | number | Mult part (*) |
bonus | number | Bonus part (all + ) |
- Source
- Type:
- number
(static) CupDrop() → {void}
Drops the cupcake and performs animation effects.
- Source
- Type:
- void
(static) DefaultPrefs() → {void}
Sets prefs to default
- Source
- Type:
- void
(static) Draw() → {void}
Draws all game stuff
- Source
- Type:
- void
(static) Drawbakerpocalypse() → {void}
Draws bakerpocalypse
- Deprecated
- Yes
- Source
- Type:
- void
(static) Earn(howmuch)
Gives cupcakes
Name | Type | Description |
---|---|---|
howmuch | number | How much cupcake to give |
- Source
(static) ExportSave() → {void}
Opens the expot save prompt
- Source
- Type:
- void
(static) GetAchieve() → {void}
Opens prompt with achieve entering
- Source
- Type:
- void
(static) GetRank() → {void}
Updates click rank
- Source
- Type:
- void
(static) HardReset() → {void}
Deletes save
- Source
- Type:
- void
(static) Has(what) → {boolean}
Returns ownes the Upgrade
Name | Type | Description |
---|---|---|
what | any |
- Source
- Type:
- boolean
(static) HasAchiev(what) → {void}
Check for Achievement owning by name
Name | Type | Description |
---|---|---|
what | string | Name of Achievement |
- Source
- Type:
- void
(static) HowMuchPrestige(cupcakes) → {number}
Calculates amount of prestige from cupcakes count
Name | Type | Description |
---|---|---|
cupcakes | number | Count of cupcakes to calculate |
- Source
- Type:
- number
(static) ImportSave() → {void}
Opens the import save prompt
- Source
- Type:
- void
(static) Init() → {void}
Inits game
- Source
- Type:
- void
(static) Launch() → {void}
Launchs game
- Source
- Type:
- void
(static) LaunchModAPI() → {void}
Launches ModAPI
- Source
- Type:
- void
(static) LoadSave(datanullable, loadMods) → {void}
Loads save
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
data | string | <nullable> | Save data. If not present - loads from cookies | |
loadMods | boolean | true | If false - doesn't loads mods from localStorage |
- Source
- Type:
- void
(static) Lock(what) → {void}
Locks the Upgrade
Name | Type | Description |
---|---|---|
what | string | Upgrade name |
- Source
- Type:
- void
(static) Logic() → {void}
Process logic
- Source
- Type:
- void
(static) Loop() → {void}
Main game loop
- Source
- Type:
- void
(static) NumtoRome(num) → {string}
Decimal number to Rome view
Name | Type | Description |
---|---|---|
num | number |
- Source
- Type:
- string
(static) Popup(text, …argumets) → {void}
Shows popup with some text (text will be localized by key if one is specified)
Name | Type | Attributes | Description |
---|---|---|---|
text | string | ||
argumets | Array.<any> | <repeatable> |
- Source
- Type:
- void
(static) RandomBakeryName() → {string}
Gets up random bakery name
- Source
- Type:
- string
(static) RebuildStore() → {void}
Rebuild store
- Source
- Type:
- void
(static) RebuildUpgrades() → {void}
Recalculates upgrades
- Source
- Type:
- void
(static) Reset(bypassnullable)
Resets the game
Name | Type | Attributes | Description |
---|---|---|---|
bypass | boolean | <nullable> | Bypass prestige |
- Source
(static) RuinTheFun() → {void}
Ruins the fun)
- Source
- Type:
- void
(static) ShowMenu(what) → {void}
Shows menu by name
Name | Type | Description |
---|---|---|
what | string | Menu name |
- Source
- Type:
- void
(static) Spend(howmuch)
Takes cupcakes
Name | Type | Description |
---|---|---|
howmuch | number | How much cupcake to take |
- Source
(static) TickerDraw() → {void}
Draw the news label
- Source
- Type:
- void
(static) ToggleMusic(audioobj) → {void}
Toggles the music
Name | Type | Description |
---|---|---|
audioobj | Audio | Object of custom audio |
- Source
- Type:
- void
(static) Unlock(what) → {void}
Unlocks the Upgrade
Name | Type | Description |
---|---|---|
what | string | Upgrade name |
- Source
- Type:
- void
(static) UpdateLocale()
Update localization of all registred objects
- Source
(static) UpdateMenu() → {void}
Updates the menu
- Source
- Type:
- void
(static) Updatebakerpocalypse() → {void}
Updates bakerpocalypse
- Deprecated
- Yes
- Source
- Type:
- void
(static) Win(what) → {void}
Unlocks Achievement by name
Name | Type | Description |
---|---|---|
what | string | Achievement name |
- Source
- Type:
- void
(static) WriteSave(exporting) → {string|undefined}
Saves the game
Name | Type | Default | Description |
---|---|---|---|
exporting | boolean | false | Exporting flag. If false - saves gamedata in cookie and not returns. If true - returns the save data |
- Source
- Type:
- string |
undefined
(static) addClass(what) → {void}
Add CSS class to 'game' HTML Element
Name | Type | Description |
---|---|---|
what | string | CSS class |
- Source
- Type:
- void
(static) bakeryNameSet(what)
Sets up name of the bakery
Name | Type | Description |
---|---|---|
what | string |
- Source
(static) checktime(toim, ourtoim) → {boolean}
Checks if time is elapsed
Name | Type | Description |
---|---|---|
toim | any | Target time |
ourtoim | any | Checking time |
- Source
- Type:
- boolean
(static) cupcakeNumberAdd(text) → {void}
Adds rising number with text)
Name | Type | Description |
---|---|---|
text | string | Text of label |
- Source
- Type:
- void
(static) cupcakeNumbersUpdate() → {void}
Update numbers
- Source
- Type:
- void
(static) cupcakeParticleAdd() → {void}
Add particle
- Source
- Type:
- void
(static) cupcakeParticlesUpdate() → {void}
Updates the particles
- Source
- Type:
- void
(static) getNewTicker() → {void}
Sets new news label
- Source
- Type:
- void
(static) mouseCps() → {number}
Gets the Mouse CPS with all buff from achievments
- Source
- Type:
- number
(static) particlesAdd(text, el) → {void}
Adds generic particle
Name | Type | Description |
---|---|---|
text | string | Text of particle |
el | boolean |
- Source
- Type:
- void
(static) particlesUpdate() → {void}
Update generic particles
- Source
- Type:
- void
(static) removeClass(what) → {void}
Removes CSS class to 'game' HTML Element
Name | Type | Description |
---|---|---|
what | string | CSS class |
- Source
- Type:
- void
(static) sayTime(time, detail) → {string}
Beautifies the time
Name | Type | Description |
---|---|---|
time | number | Time number |
detail | number | Detalisation. 2 - Days, 3 - Hours, 4 - Minutes, 5 - Secconds |
- Source
- Type:
- string
(static) updateClasses() → {void}
Updates CSS classes to 'game' HTML Element
- Source
- Type:
- void