Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Let's make a game!
- name:CGU Idle
- by:Estrumbilo
- desc:A game about making Cookies go up! Inspired (and copied) from Cookie Clicker and NGU Idle.</>Hover your mouse above the cookie resource for a tutorial.<//>----<//><b>v0.1</b><.>Added 10 buildings.<.>Added prestige system.<//><b>v0.2</b><.>Added 2 buildings.<.>Added Gold system and Augment System (incomplete).
- created:14/04/2020
- version:0.1
- Settings
- stylesheet:https://pastebin.com/68BPwLSr
- background:http://orteil.dashnet.org/cookieclicker/img/bgBlue.jpg
- spritesheet:icons, 48 by 48, http://orteil.dashnet.org/cookieclicker/img/icons.png
- building cost increase:100%
- Layout
- *main
- contains:res, buttons
- *res
- contains:Resources
- class:fullWidth
- *buttons
- contains:Buttons
- *store
- contains:buildings, upgrades
- *buildings
- contains:Buildings
- header:Buildings
- tooltip origin:left
- *upgrades
- contains:Upgrades, tag:expUps, tag:rebirthStuff, tag:mineStuff, tag:mineStuffb, tag:augmentStuff
- header:Menu
- costs:hide
- names:hide
- Resources
- *cookie|cookies
- name:Cookies
- desc:<//>Welcome to CGU Idle (Cookies Going Up Idle), a game inspired (and copied) from Cookie Clicker and NGU Idle.<//>In this game your goal is to make as much cookies as possible. You probably already know the basics of a idle/clicker game, you click and buy stuff and the cookies go BRRRRRRR.<//>--- <b>Buildings</b> ---<//>Buildings produce cookies. When you buy a building, it gains 1 Exp, a building level ups once it reaches 10 Exp. Each level increases the production of that building by 1%. The later buildings are less cost efficient, and their price increase is BIG (cursor -> 110% | grandma -> 120% | farm -> 130% | ... ).<//><b>Warning!</b> - Don't use bulk buy or sell any building, it may BREAK the game, don't do it.
- class:noBackground
- icon:icons[10,0]
- *gold
- name:Gold
- on click:yield (cookies*10) cookies
- class:noBackground
- icon:icons[25,11]
- //req:20 mines
- *TEMPLATE
- hidden
- //Building Stuff
- *cursorP
- start with:0.2
- *cursorT
- *grandmaP
- start with:1
- *grandmaT
- *farmP
- start with:4
- *farmT
- *mineP
- start with:10
- *mineT
- *factoryP
- start with:20
- *factoryT
- *bankP
- start with:50
- *bankT
- *templeP
- start with:200
- *templeT
- *wtowerP
- start with:720
- *wtowerT
- *shipP
- start with:2650
- *shipT
- *labP
- start with:14000
- *labT
- *portalP
- start with:83000
- *portalT
- *tmachineP
- start with:470000
- *tmachineT
- //Building Level
- *cursorEXP
- *grandmaEXP
- *farmEXP
- *mineEXP
- *factoryEXP
- *bankEXP
- *templeEXP
- *wtowerEXP
- *shipEXP
- *labEXP
- *portalEXP
- *tmachineEXP
- *cursorLVL
- *grandmaLVL
- *farmLVL
- *mineLVL
- *factoryLVL
- *bankLVL
- *templeLVL
- *wtowerLVL
- *shipLVL
- *labLVL
- *portalLVL
- *tmachineLVL
- //Building Multipliers
- *globalBoost
- *cursorBoostA
- *grandmaBoostA
- *farmBoostA
- *mineBoostA
- *factoryBoostA
- *bankBoostA
- *templeBoostA
- *wtowerBoostA
- *shipBoostA
- *labBoostA
- *portalBoostA
- *tmachineBoostA
- //Misc
- *heavenlyChips
- start with:1
- *timeTotal
- *timeCurrent
- *timeBonus
- *buildingBonus
- *cookieBonus
- Buttons
- *cookieButton
- on click:yield (1 * (cursorBoostA) * (globalBoost + 1) * heavenlyChips) cookie
- on tick:yield 1 timeTotal
- on tick:yield 1 timeCurrent
- on tick:
- cursorP is (0.2 * (1 + globalBoost) * cursorBoostA * ((cursorLVL / 100) + 1 ) * heavenlyChips)
- grandmaP is (1 * (1 + globalBoost) * (1 + grandmaBoostA) * ((grandmaLVL / 100) + 1 ) * heavenlyChips)
- farmP is (4 * (1 + globalBoost) * (1 + farmBoostA) * ((farmLVL / 100) + 1 ) * heavenlyChips)
- mineP is (10 * (1 + globalBoost) * (1 + mineBoostA) * ((mineLVL / 100) + 1 ) * heavenlyChips)
- factoryP is (20 * (1 + globalBoost) * (1 + factoryBoostA) * ((factoryLVL / 100) + 1 ) * heavenlyChips)
- bankP is (50 * (1 + globalBoost) * (1 + bankBoostA) * ((bankLVL / 100) + 1 ) * heavenlyChips)
- templeP is (200 * (1 + globalBoost) * (1 + templeBoostA) * ((templeLVL / 100) + 1 ) * heavenlyChips)
- wtowerP is (720 * (1 + globalBoost) * (1 + wtowerBoostA) * ((wtowerLVL / 100) + 1 ) * heavenlyChips)
- shipP is (2650 * (1 + globalBoost) * (1 + shipBoostA) * ((shipLVL / 100) + 1 ) * heavenlyChips)
- labP is (14000 * (1 + globalBoost) * (1 + labBoostA) * ((labLVL / 100) + 1 ) * heavenlyChips)
- portalP is (83000 * (1 + globalBoost) * (1 + portalBoostA) * ((portalLVL / 100) + 1 ) * heavenlyChips)
- tmachineP is (470000 * (1 + globalBoost) * (1 + tmachineBoostA) * ((tmachineLVL / 100) + 1 ) * heavenlyChips)
- end
- on load:toast Hello! If this is your first time playing, hover your mouse above the cookie resource for a tutorial.
- no tooltip
- no text
- class:bigButton hasFlares
- icon:https://i.imgur.com/MMuzLA7.png
- Buildings
- *cursor|cursors
- name:Cursor
- desc:Autoclicks every 5 seconds.<//><b>Info:</b><.>Each cursor produces <b>[cursorP]</b> cookies per second.<.>[cursors] cursors producing <b>[cursorT:ps]</b> cookies per second.<.>Building Level: <b>[cursorLVL]</b> ([cursorEXP] / 10 Exp)
- on tick:yield (0.2 * (cursorBoostA) * (globalBoost + 1) * ((cursorLVL / 100) + 1 ) * heavenlyChips) cookies
- on tick:yield (0.2 * (cursorBoostA) * (globalBoost + 1) * ((cursorLVL / 100) + 1 ) * heavenlyChips) cursorT
- on earn:yield (1/this) cursorEXP
- on earn:
- if (cursorEXP >= 10)
- yield (cursorEXP / 10 / this) cursorLVL
- lose (cursorEXP / 10) cursorEXP
- end
- end
- cost:15 cookies
- cost increase:110%
- icon:icons[0,0]
- *grandma|grandmas
- name:Grandma
- desc:A nice grandma to bake more cookies.<//><b>Info:</b><.>Each grandmas produces <b>[grandmaP]</b> cookies per second.<.>[grandma] grandmas producing <b>[grandmaT:ps]</b> cookies per second.<.>Building Level: <b>[grandmaLVL]</b> ([grandmaEXP] / 10 Exp)
- on tick:yield (1 * (grandmaBoostA + 1) * (globalBoost + 1) * ((grandmaLVL / 100) + 1 ) * heavenlyChips) cookies
- on tick:yield (1 * (grandmaBoostA + 1) * (globalBoost + 1) * ((grandmaLVL / 100) + 1 ) * heavenlyChips) grandmaT
- on earn:yield (1/this) grandmaEXP
- on earn:
- if (grandmaEXP >= 10)
- yield (grandmaEXP / 10 / this) grandmaLVL
- lose (grandmaEXP / 10) grandmaEXP
- end
- end
- cost:100 cookies
- cost increase:120%
- icon:icons[1,0]
- req:1 cursor
- *farm|farms
- name:Farm
- desc:Grows cookie plants from cookie seeds.<//><b>Info:</b><.>Each farm produces <b>[farmP]</b> cookies per second.<.>[farm] farms producing <b>[farmT:ps]</b> cookies per second.<.>Building Level: <b>[farmLVL]</b> ([farmEXP] / 10 Exp)
- on tick:yield (4 * (farmBoostA + 1) * (globalBoost + 1) * ((farmLVL / 100) + 1 ) * heavenlyChips) cookies
- on tick:yield (4 * (farmBoostA + 1) * (globalBoost + 1) * ((farmLVL / 100) + 1 ) * heavenlyChips) farmT
- on earn:yield (1/this) farmEXP
- on earn:
- if (farmEXP >= 10)
- yield (farmEXP / 10 / this) farmLVL
- lose (farmEXP / 10) farmEXP
- end
- end
- cost:600 cookies
- cost increase:130%
- icon:icons[2,0]
- req:1 grandma
- *mine|mines
- name:Mine
- desc:Mines out cookie dough and chocolate chips.<//><b>Info:</b><.>Each mine produces <b>[mineP]</b> cookies per second.<.>[mine] mimes producing <b>[mineT:ps]</b> cookies per second.<.>Building Level: <b>[mineLVL]</b> ([mineEXP] / 10 Exp)
- on tick:yield (10 * (mineBoostA + 1) * (globalBoost + 1) * ((mineLVL / 100) + 1 ) * heavenlyChips) cookies
- on tick:yield (10 * (mineBoostA + 1) * (globalBoost + 1) * ((mineLVL / 100) + 1 ) * heavenlyChips) mineT
- on earn:yield (1/this) mineEXP
- on earn:
- if (mineEXP >= 10)
- yield (mineEXP / 10 / this) mineLVL
- lose (mineEXP / 10) mineEXP
- end
- end
- cost:2500 cookies
- cost increase:140%
- icon:icons[3,0]
- req:1 farm
- *factory|factories
- name:Factory
- desc:Produces large quantities of cookies.<//><b>Info:</b><.>Each factory produces <b>[factoryP]</b> cookies per second.<.>[factory] factories producing <b>[factoryT:ps]</b> cookies per second.<.>Building Level: <b>[factoryLVL]</b> ([factoryEXP] / 10 Exp)
- on tick:yield (20 * (factoryBoostA + 1) * (globalBoost + 1) * ((factoryLVL / 100) + 1 ) * heavenlyChips) cookies
- on tick:yield (20 * (factoryBoostA + 1) * (globalBoost + 1) * ((factoryLVL / 100) + 1 ) * heavenlyChips) factoryT
- on earn:yield (1/this) factoryEXP
- on earn:
- if (factoryEXP >= 10)
- yield (factoryEXP / 10 / this) factoryLVL
- lose (factoryEXP / 10) factoryEXP
- end
- end
- cost:8000 cookies
- cost increase:150%
- icon:icons[4,0]
- req:1 mine
- *bank|banks
- name:Bank
- desc:Generates cookies from interest.<//><b>Info:</b><.>Each alchemy bank produces <b>[bankP]</b> cookies per second.<.>[bank] alchemy banks producing <b>[bankT:ps]</b> cookies per second.<.>Building Level: <b>[bankLVL]</b> ([bankEXP] / 10 Exp)
- on tick:yield (50 * (bankBoostA + 1) * (globalBoost + 1) * ((bankLVL / 100) + 1 ) * heavenlyChips) cookies
- on tick:yield (50 * (bankBoostA + 1) * (globalBoost + 1) * ((bankLVL / 100) + 1 ) * heavenlyChips) bankT
- on earn:yield (1/this) bankEXP
- on earn:
- if (bankEXP >= 10)
- yield (bankEXP / 10 / this) bankLVL
- lose (bankEXP / 10) bankEXP
- end
- end
- cost:30000 cookies
- cost increase:160%
- icon:icons[15,0]
- req:1 factory
- *temple|temples
- name:Temple
- desc:Full of precious, ancient chocolate.<//><b>Info:</b><.>Each temple produces <b>[templeP]</b> cookies per second.<.>[temple] temples producing <b>[templeT:ps]</b> cookies per second.<.>Building Level: <b>[templeLVL]</b> ([templeEXP] / 10 Exp)
- on tick:yield (200 * (templeBoostA + 1) * (globalBoost + 1) * ((templeLVL / 100) + 1 ) * heavenlyChips) cookies
- on tick:yield (200 * (templeBoostA + 1) * (globalBoost + 1) * ((templeLVL / 100) + 1 ) * heavenlyChips) templeT
- on earn:yield (1/this) templeEXP
- on earn:
- if (templeEXP >= 10)
- yield (templeEXP / 10 / this) templeLVL
- lose (templeEXP / 10) templeEXP
- end
- end
- cost:180000 cookies
- cost increase:170%
- icon:icons[16,0]
- req:1 bank
- *wtower|wtowers
- name:Wizard Tower
- desc:Summons cookies with magic spells.<//><b>Info:</b><.>Each wizard tower produces <b>[wtowerP]</b> cookies per second.<.>[wtower] wizard towers producing <b>[wtowerT:ps]</b> cookies per second.<.>Building Level: <b>[wtowerLVL]</b> ([wtowerEXP] / 10 Exp)
- on tick:yield (720 * (wtowerBoostA + 1) * (globalBoost + 1) * ((wtowerLVL / 100) + 1 ) * heavenlyChips) cookies
- on tick:yield (720 * (wtowerBoostA + 1) * (globalBoost + 1) * ((wtowerLVL / 100) + 1 ) * heavenlyChips) wtowerT
- on earn:yield (1/this) wtowerEXP
- on earn:
- if (wtowerEXP >= 10)
- yield (wtowerEXP / 10 / this) wtowerLVL
- lose (wtowerEXP / 10) wtowerEXP
- end
- end
- cost:900000 cookies
- cost increase:180%
- icon:icons[17,0]
- req:1 temple
- *ship|ships
- name:Shipment
- desc:Brings in fresh cookies from the cookie planet.<//><b>Info:</b><.>Each shipment produces <b>[shipP]</b> cookies per second.<.>[ship] shipments producing <b>[shipT:ps]</b> cookies per second.<.>Building Level: <b>[shipLVL]</b> ([shipEXP] / 10 Exp)
- on tick:yield (2650 * (shipBoostA + 1) * (globalBoost + 1) * ((shipLVL / 100) + 1 ) * heavenlyChips) cookies
- on tick:yield (2650 * (shipBoostA + 1) * (globalBoost + 1) * ((shipLVL / 100) + 1 ) * heavenlyChips) shipT
- on earn:yield (1/this) shipEXP
- on earn:
- if (shipEXP >= 10)
- yield (shipEXP / 10 / this) shipLVL
- lose (shipEXP / 10) shipEXP
- end
- end
- cost:5300000 cookies
- cost increase:190%
- icon:icons[5,0]
- req:1 wtower
- *lab|labs
- name:Alchemy Lab
- desc:Turns gold into cookies!<//><b>Info:</b><.>Each lab produces <b>[labP]</b> cookies per second.<.>[lab] labs producing <b>[labT:ps]</b> cookies per second.<.>Building Level: <b>[labLVL]</b> ([labEXP] / 10 Exp)
- on tick:yield (14000 * (labBoostA + 1) * (globalBoost + 1) * ((labLVL / 100) + 1 ) * heavenlyChips) cookies
- on tick:yield (14000 * (labBoostA + 1) * (globalBoost + 1) * ((labLVL / 100) + 1 ) * heavenlyChips) labT
- on earn:yield (1/this) labEXP
- on earn:
- if (labEXP >= 10)
- yield (labEXP / 10 / this) labLVL
- lose (labEXP / 10) labEXP
- end
- end
- cost:42000000 cookies
- cost increase:200%
- icon:icons[6,0]
- req:1 ship
- *portal|portals
- name:Portal
- desc:Opens a door to the cookieverse.<//><b>Info:</b><.>Each portal produces <b>[portalP]</b> cookies per second.<.>[portal] portals producing <b>[portalT:ps]</b> cookies per second.<.>Building Level: <b>[portalLVL]</b> ([portalEXP] / 10 Exp)
- on tick:yield (83000 * (portalBoostA + 1) * (globalBoost + 1) * ((portalLVL / 100) + 1 ) * heavenlyChips) cookies
- on tick:yield (83000 * (portalBoostA + 1) * (globalBoost + 1) * ((portalLVL / 100) + 1 ) * heavenlyChips) portalT
- on earn:yield (1/this) portalEXP
- on earn:
- if (portalEXP >= 10)
- yield (portalEXP / 10 / this) portalLVL
- lose (portalEXP / 10) portalEXP
- end
- end
- cost:335000000 cookies
- cost increase:210%
- icon:icons[7,0]
- req:1 lab
- *tmachine|tmachines
- name:Time Machine
- desc:Opens a door to the cookieverse.<//><b>Info:</b><.>Each time machine produces <b>[tmachineP]</b> cookies per second.<.>[tmachine] time machines producing <b>[tmachineT:ps]</b> cookies per second.<.>Building Level: <b>[tmachineLVL]</b> ([tmachineEXP] / 10 Exp)
- on tick:yield (470000 * (tmachineBoostA + 1) * (globalBoost + 1) * ((tmachineLVL / 100) + 1 ) * heavenlyChips) cookies
- on tick:yield (470000 * (tmachineBoostA + 1) * (globalBoost + 1) * ((tmachineLVL / 100) + 1 ) * heavenlyChips) tmachineT
- on earn:yield (1/this) tmachineEXP
- on earn:
- if (tmachineEXP >= 10)
- yield (tmachineEXP / 10 / this) tmachineLVL
- lose (tmachineEXP / 10) tmachineEXP
- end
- end
- cost:2600000000 cookies
- cost increase:220%
- icon:icons[8,0]
- req:1 portal
- *TEMPLATE
- *pickUpgrade
- name:Better Pickaxes
- text:Better Pickaxes | Level [this]
- desc:Get your miners better pickaxes.<//><b>Info:</b><.> Upgrades bought: <b>[this]</b><.>GPS Multiplier: <b>[((pickUpgrade + 1) * 100)]%</b>
- cost:10000000 cookies
- cost increase:200%
- tag:mineStuffb
- tooltip origin:bottom
- req:15 mines
- *TEMPLATE
- tag:augmentStuff
- *cursorAugment
- text:Extra Fingers | Level [this]
- name:Extra Fingers
- desc:[this] extra fingers boosting your cursors's production by <b>[((pow(2,this)) * 100)]%</b>.<//><b>Info:</b><.> Augment level: <b>[this]</b><.>Base Multiplier: <b>[((pow(2,this)) * 100)]%</b>.
- on tick:cursorBoostA is (pow(2,this))
- cost:20 gold
- cost increase:500%
- req:15 factories and 1 cursor
- Upgrades
- *goback
- name:Go back
- no tooltip
- on click:hide tag:rebirthStuff
- on click:hide tag:mineStuff
- on click:hide tag:mineStuffb
- on click:hide tag:augmentStuff
- on click:hide this
- on click:show tag:menu
- hidden
- start with
- class:menu goback
- *TEMPLATE
- tag:menu
- class:menu
- no tooltip
- no buy
- *rebirthMenu
- name:Rebirth Menu
- on click:show tag:rebirthStuff
- on click:hide tag:menu
- on click:show goback
- req:1000 cookies:earned
- *mineMenu
- name:Gold Mine
- on click:show tag:mineStuff
- on click:show tag:mineStuffb
- on click:hide tag:menu
- on click:show goback
- req:20 mines
- *augmentMenu
- name:Augment Factory
- on click:show tag:augmentStuff
- on click:hide tag:menu
- on click:show goback
- req:20 factories
- *TEMPLATE
- start with
- tag:rebirthStuff
- class:menu
- hidden
- *rebirthButton
- name:Rebirth
- desc:You played in this run for <b>[timeCurrent]s</b><//>You have <b>[heavenlyChips]</b> Heavenly Chips.<//>On rebirth you will have <b>[(1 * cookieBonus * buildingBonus * (timeBonus))]</b> Heavenly Chips.<//><b>Factors:</b><.>Cookie Bonus: <b>[cookieBonus]</b><.>Building Bonus: <b>[buildingBonus]</b><.>Time Bonus: <b>[(timeBonus)]</b>
- on tick:
- cookieBonus is (pow(cookies,(1/3)))
- buildingBonus is (pow((cursors + (grandmas * 1.1) + (farms * 1.2) + (mines * 1.3) + (factories * 1.4) + (banks * 1.5) + (temples * 1.6) + (wtowers * 1.7) + (ship * 1.8) + (lab * 1.9)),0.5))
- if (timeCurrent < 180)
- timeBonus is ((timeCurrent / 60) / 971520)
- end
- if (timeCurrent >= 180 and timeCurrent < 240)
- timeBonus is ((timeCurrent / 60) / 122880)
- end
- if (timeCurrent >= 240 and timeCurrent < 300)
- timeBonus is ((timeCurrent / 60) / 30720)
- end
- if (timeCurrent >= 300 and timeCurrent < 420)
- timeBonus is ((timeCurrent / 60) / 7680)
- end
- if (timeCurrent >= 420 and timeCurrent < 600)
- timeBonus is ((timeCurrent / 60) / 1920)
- end
- if (timeCurrent >= 600 and timeCurrent < 720)
- timeBonus is ((timeCurrent / 60) / 480)
- end
- if (timeCurrent >= 720 and timeCurrent < 900)
- timeBonus is ((timeCurrent / 60) / 240)
- end
- if (timeCurrent >= 900 and timeCurrent < 1800)
- timeBonus is ((timeCurrent / 60) / 120)
- end
- if (timeCurrent >= 1800 and timeCurrent < 3600)
- timeBonus is ((timeCurrent / 60) / 60)
- end
- if (timeCurrent >= 3600)
- timeBonus is (1 + 0,5 * ((timeCurrent / 3600) / 24))
- end
- end
- on click:
- if (timeCurrent >= 180 and (1 * cookieBonus * buildingBonus * (timeBonus)) >= 1)
- heavenlyChips is (1 * cookieBonus * buildingBonus * (timeBonus))
- cookies is 0
- cursors is 0
- grandmas is 0
- farms is 0
- mines is 0
- factories is 0
- banks is 0
- temples is 0
- wtowers is 0
- ship is 0
- lab is 0
- cookieBonus is 0
- buildingBonus is 0
- timeBonus is 0
- timeCurrent is 0
- gold is 0
- pickUpgrade is 0
- cursorAugment is 0
- cursorBoostA is 1
- else
- toast You can only rebirth if you played for 3 minutes in this run and your Heavenly Chips on rebirth are bigger than 0.
- end
- end
- *TEMPLATE
- start with
- class:menu
- tag:mineStuff
- hidden
- *gps
- text:GPS: [gold:ps]/s
- name:Gold Production
- desc:Your making <b>[gold:ps]</b> gold per second. Each mine produces <b>0.1</b> gold per second.<//><b>Info:</b><.>Base production: <b>[gold:ps]/s</b><.>Total production: <b>[((mines/10) * (pickUpgrade + 1))]/s</b><.>Better Pickaxes Bonus: <b>[((pickUpgrade + 1) * 100)]%</b>
- on tick:
- if (mines >= 20)
- yield ((mines / 10) * (pickUpgrade + 1)) gold
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement