Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "let's make a game!"
- name:Cake Clicker
- by:AdamE
- desc:im a random 12 yearold who decided to make a game at 2.15AM
- created:17/1/2019
- version:0.1
- //this is gonna be fun
- Settings
- background:.png
- tilting bacrground:.png
- building cost increase:110%
- building cost refund:55%
- spritesheet:icons, 48 by 48, .png
- stylesheet:url
- CSS
- #game
- {
- background: ;
- front-family:"Arial Black", Gadget, sans-serif;
- color:black;
- }
- .thing
- {
- border-radius:8px;
- background:rgba(255,255,255,0.5);
- }
- .thing-icon,.particle
- {
- width:64px;
- height:64px;
- }
- #game.filtersOn .thing.cantAfford.notOwned
- {
- filter:blur(3px);
- }
- .thing
- {
- text-shadow:1px 1px 0 white;
- }
- Layout
- use default
- Buttons
- *CakeButton
- name:Make a cake
- desc:Click this cake to produce more cakes!!
- on click:anim icon wobble
- on click:yield 1 cake
- on click:if (have goldenTouch and chance(1%)) yield 1 goldenCake
- icon: .png
- no text
- class:bigButton hasFlares
- icon class:shadowed
- tooltip origin:bottom
- tooltip class:red
- Resources
- *cake|cakes
- name:cake|cakes
- desc:These cakes belong to you. You can buy things with them.
- icon:icons[0,0]
- class:noBackground
- show earned
- *goldenCake|goldenCakes
- name:Goldencake|Goldencakes
- desc:yum yum yum!!
- icon:icons[0,1]
- class:noBackground
- hidden when 0
- Shinies
- *luckyCake
- on click:log Woop
- movement:onRight moveLeft fade bounce:0.05
- frequency:60
- frequency variation:30
- icon: .png
- class:bigButton
- on click:
- $boost=1
- if (have clover) $boost=4
- if (chance(25%))
- //get at least 8, or between 1 and 3 minutes of our cake production
- $amount=max(8,random(cakes:ps*60*1,cakes:ps*60*3))*$boost
- toast The lucky cake grants you<//><b>[$amount] cakes</b>.
- yield $amount cakes
- else
- $amount=1*$boost
- toast The lucky cake grants you<//><b>[$amount] golden cake[s?$amount]</b>!
- yield $amount goldenCake
- end
- end
- Buildings
- *TEMPLATE
- on click:anim glow
- *fire|fires
- name:Cake fire|Cake fires
- desc:The most basic way of baking a cake.<//><b>Effect:</b><.>Produces 1 cake every 10 seconds
- icon:icons[3,0]
- cost:15 cakes
- on tick:yield 0.1 cake
- unlocked
- Upgrades
- *TEMPLATE
- on click:anim glow
- *butterCream
- name:Butter cream
- desc:A nice addition to a plain cake.<//><b>Effect:</b><.>+1 cake/click
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement