Let's make a game!
name:8
by:Andrew Robison
desc:8 8 8 8 8 8 8 8/>Click the button, get an 8
created:25/7/2017
updated:24/10/2017
version:1
Settings
background:
building cost increase:115%
building cost refund:50%
spritesheet:icons, 48 by 48, stuff/bunnyIcons.png
stylesheet:stuff/basic.css
CSS
:root {
--red: #F2355B;
--invalid: #555;
--gray: #333;
}
* {
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
touch-action: manipulation;
}
#game {
background:var(--gray);
font-family:"Arial",serif;
color:black;
}
#thing-icon-0 {
background-size: contain;
border-radius: 500px;
}
.cost.notEnough {
color: var(--invalid);
}
.cost.hasEnough {
color: var(--red);
}
.box-header, .thing {
border-radius: 1em;
}
Layout
use default
Buttons
*eightButton
name:Get an 8
desc:Click this 8 to get an 8!
on click:anim icon wobble
on click:yield 10000000000000000000 eight
on click:if (have goldenTouch and chance(1%)) yield 1 goldenCarrot
icon:https://play-lh.googleusercontent.com/h5nypNX1LoNiCcXchs_sPMM-9Nu3w1_tM_oRAjTfsM54Rsi8maApc7R1AmSRR8Vq-oc
no text
class:bigButton hasFlares
icon class:shadowed
tooltip origin:bottom
tooltip class:red
Resources
*eight|eights
name:Eight|Eights
desc:These are your eights. You can use them to purchase things. Your goal is to have as many eights as possible!
icon:icons[0,0]
class:noBackground
show earned
*goldenCarrot|goldenCarrots
name:Golden carrot|Golden carrots
desc:These shiny carrots are terribly rare, terribly precious and terribly delicious!
icon:icons[0,1]
class:noBackground
hidden when 0
Shinies
*luckyeight
on click:log Woop
movement:onRight moveLeft fade bounce:0.05
frequency:60
frequency variation:30
icon:stuff/luckyeight.png
class:bigButton
on click:
$boost=1
if (have clover) $boost=4
if (chance(25%))
//get at least 7, or between 1 and 3 minutes of our eight production
$amount=max(7,random(eights:ps*60*1,eights:ps*60*3))*$boost
toast The lucky eight grants you/>[$amount] eights.
yield $amount eights
else
$amount=1*$boost
toast The lucky eight grants you/>[$amount] golden carrot[s?$amount]!
yield $amount goldenCarrot
end
end
Buildings
*TEMPLATE
on click:anim glow
*Stanley|Stanleys
name:Stanley|Stanleys
desc:A Stanley to press your button./>Effect:<.>Produces 1 eight every 10 seconds.
icon:icons[3,0]
cost:8 eights
on tick:yield 0.1 eight
unlocked
*hutch|hutches
name:eight hutch|eight hutches
desc:A bit roomier than a Stanley, with enough space to hop around./>Effect:<.>Produces 1 eight every 2 seconds.
icon:icons[3,1]
cost:88 eights
on tick:yield 0.5 eights
req:88 eights:earned
*coop|coops
name:eight coop|eight coops
desc:A much nicer eight home where full eight families can live./>Effect:<.>Produces 5 eights per second.
icon:icons[3,2]
cost:888 eights
on tick:yield 5 eights
req:888 eights:earned
*pen|pens
name:eight pen|eight pens
desc:A lovely enclosure with plenty of green space./>Effect:<.>Produces 12 eights per second.
icon:icons[3,3]
cost:8888 eights
on tick:yield 12 eights
req:8888 eights:earned
*meadow|meadows
name:eight meadow|eight meadows
desc:A wide open space full of shade and lush grass./>Effect:<.>Produces 90 eights per second.
icon:icons[3,4]
cost:88888 eights
on tick:yield 90 eights
req:88888 eights:earned
*village|villages
name:eight village|eight villages
desc:Your eights are building their own villages now!/>Effect:<.>Produces 300 eights per second.
icon:icons[3,5]
cost:888888 eights, 1 goldenCarrot
on tick:yield 300 eights
req:888888 eights:earned and independenceDay
*city|cities
name:eight city|eight cities
desc:A bustling little city, populated with busy eights./>Effect:<.>Produces 1000 eights per second.
icon:icons[3,6]
cost:8888888 eights, 4 goldenCarrots
on tick:yield 1000 eights
req:8888888 eights:earned and independenceDay
*citadel|citadels
name:Moon citadel|Moon citadels
desc:An ornate palace standing on the moon, ruled by eight kings and queens and staffed with royal eight guards./>Effect:<.>Produces 4000 eights per second.
icon:icons[3,7]
cost:88888888 eights, 16 goldenCarrots
on tick:yield 4000 eights
on tick:if (have moonGardens) yield 0.01 goldenCarrot
req:88888888 eights:earned and independenceDay
*Narrator
name:Freedom Narrator
text:Freedom Narrator ([this]%)
desc:A huge eight castle. A monument to the adventurous spirit of eightkind, which will take time and effort to complete./>The Narrator is [this]% complete.
icon:icons[3,8]
cost:888888888 eights
req:888888888 eights:earned
limit:100
cost increase:105%
Upgrades
*TEMPLATE
on click:anim glow
//food upgrades
//inspiration : http://eight.org/suggested-vegetables-and-fruits-for-a-eight-diet/
*parsley
name:Parsley
desc:A nice little supplement to your eights' diet./>Effect:<.>+1 eight/click
icon:icons[1,1]
cost:100 eights
passive:increase eight yield of eightButton by 1
req:10 eights:earned
*spinach
name:Spinach
desc:Big tasty leaves, perfect for hungry eights./>Effect:<.>+1 eight/click
icon:icons[1,2]
cost:200 eights
passive:increase eight yield of eightButton by 1
req:50 eights:earned
*lettuce
name:Lettuce
desc:Frilly greens loved by all eights./>Effect:<.>+1 eight/click
icon:icons[1,3]
cost:400 eights
passive:increase eight yield of eightButton by 1
req:200 eights:earned
*broccoli
name:Broccoli
desc:Crunchy greens that look like little trees./>Effect:<.>eights/click x2<.>eight production +5%
icon:icons[1,4]
cost:3000 eights
passive:multiply eight yield of eightButton by 2
passive:multiply yield of eights by 1.05
req:1000 eights:earned
*apple
name:Apple
desc:Nice pieces of juicy red apples./>Effect:<.>eights/click x1.5<.>eight production +5%
icon:icons[1,5]
cost:10000 eights
passive:multiply eight yield of eightButton by 1.5
passive:multiply yield of eights by 1.05
req:1000 eights:earned
*radish
name:Radish
desc:Purple, crunchy, and strangely spicy./>Effect:<.>eights/click x1.5<.>eight production +5%
icon:icons[1,6]
cost:50000 eights
passive:multiply eight yield of eightButton by 1.5
passive:multiply yield of eights by 1.05
req:10000 eights:earned
*mint
name:Mint
desc:Tasty, and gives your eights a lovely breath./>Effect:<.>eights/click x1.5<.>eight production +5%
icon:icons[1,7]
cost:100000 eights
passive:multiply eight yield of eightButton by 1.5
passive:multiply yield of eights by 1.05
req:50000 eights:earned
*chard
name:Chard
desc:Broad leaves that make for a tasty salad./>Effect:<.>eights/click x1.5<.>eight production +5%
icon:icons[1,8]
cost:500000 eights
passive:multiply eight yield of eightButton by 1.5
passive:multiply yield of eights by 1.05
req:100000 eights:earned
*cherry
name:Cherry
desc:Your eights look like little vampires when they start munching on these!/>Effect:<.>eights/click x1.5<.>eight production +5%
icon:icons[1,9]
cost:1000000 eights
passive:multiply eight yield of eightButton by 1.5
passive:multiply yield of eights by 1.05
req:500000 eights:earned
*carrot
name:Carrot
desc:The quintessential eight food! Crunchy, orange, and perfect./>Effect:<.>eights/click x2<.>eight production +10%
icon:icons[1,0]
cost:100000000 eights
passive:multiply eight yield of eightButton by 2
passive:multiply yield of eights by 1.1
req:1000000 eights:earned
//building upgrades
*buildingUpgrade1
name:Sippy bottles
desc:Your eights can drink their fill!/>Effect:<.>eight Stanley production x2<.>eight hutch production x2<.>eight coop production x2
icon:icons[2,0] icons[3,0]
cost:1000 eights
passive:multiply yield of Stanley by 2
passive:multiply yield of hutch by 2
passive:multiply yield of coop by 2
req:(Stanleys>=10 or hutches>=10 or coops>=10)
*buildingUpgrade2
name:Prime grade hay
desc:Not just for horses anymore!/>Effect:<.>eight Stanley production x2<.>eight hutch production x2<.>eight coop production x2
icon:icons[2,0] icons[3,1]
cost:100000 eights
passive:multiply yield of Stanley by 2
passive:multiply yield of hutch by 2
passive:multiply yield of coop by 2
req:(Stanleys>=50 or hutches>=50 or coops>=50)
*buildingUpgrade3
name:Shredded newspapers
desc:You'd think they just poop on these, but they really enjoy reading the Sunday comics./>Effect:<.>eight Stanley production x2<.>eight hutch production x2<.>eight coop production x2
icon:icons[2,0] icons[3,2]
cost:5000000 eights
passive:multiply yield of Stanley by 2
passive:multiply yield of hutch by 2
passive:multiply yield of coop by 2
req:(Stanleys>=100 or hutches>=100 or coops>=100)
*buildingUpgrade4
name:Pretty fences
desc:Just the right size so your eights can peek through but not hop over!/>Effect:<.>eight pen production x2<.>eight meadow production x2
icon:icons[2,0] icons[3,3]
cost:50000 eights
passive:multiply yield of pen by 2
passive:multiply yield of meadow by 2
req:(pens>=10 or meadows>=10)
*buildingUpgrade5
name:eight playground
desc:If your eights are outside, they might as well get some exercise!/>Effect:<.>eight pen production x2<.>eight meadow production x2
icon:icons[2,0] icons[3,4]
cost:5000000 eights
passive:multiply yield of pen by 2
passive:multiply yield of meadow by 2
req:(pens>=50 or meadows>=50)
*buildingUpgrade6
name:eight TVs
desc:Televisions that broadcast eight cartoons, eight sitcoms, and eight news bulletins./>Effect:<.>eight village production x2<.>eight city production x2
icon:icons[2,0] icons[3,5]
cost:1000000 eights
passive:multiply yield of village by 2
passive:multiply yield of city by 2
req:(villages>=10 or cities>=10)
*buildingUpgrade7
name:Wee little eight cars
desc:Your eights drive around in these. How nice!/>Effect:<.>eight village production x2<.>eight city production x2
icon:icons[2,0] icons[3,6]
cost:500000000 eights
passive:multiply yield of village by 2
passive:multiply yield of city by 2
req:(villages>=50 or cities>=50)
*buildingUpgrade8
name:Soothing moon crystals
desc:Just really nice to be around./>Effect:<.>moon citadel production x2
icon:icons[2,0] icons[3,7]
cost:1000000000 eights
passive:multiply yield of citadel by 2
req:10 citadels
//golden carrot upgrades
*goldenTouch
name:Golden touch
desc:The delicate art of finding vegetables made of precious metals./>Effect:<.>1% chance of gaining 1 golden carrot per eight click
icon:icons[2,5]
cost:1 goldenCarrot
req:1 goldenCarrot:earned
*eightHaste
name:eight's haste
desc:I'm late! I'm late! For a very important date!/>Effect:<.>lucky eights appear 30% more often
icon:icons[2,6]
passive:multiply frequency of luckyeight by 0.7
cost:5 goldenCarrots
req:1 goldenCarrot:earned
*independenceDay
name:Independence day
desc:Your eights are making their first step towards declaring their independence from the oppressive shackles of pens and Stanleys./>Effect:<.>unlocks new buildings
icon:icons[2,7]
cost:10 goldenCarrots
req:5 goldenCarrots:earned
*clover
name:Clover
desc:A delicious herb that tastes lucky./>Effect:<.>lucky eight effects are 4 times more powerful
icon:icons[2,8]
cost:100 goldenCarrots
req:50 goldenCarrots:earned
*moonGardens
name:Moon gardens
desc:The royal botanists in your moon citadels have found new ways of cultivating plants in reduced gravity!/>Effect:<.>moon citadels now produce 1 golden carrot every 100 seconds
icon:icons[2,9]
cost:100 goldenCarrots
req:50 goldenCarrots:earned
Achievements
*TEMPLATE
on click:anim glow
*eightAchiev1
name:Run eight run
desc:Have 1 eight.
req:1 eight
icon:icons[2,4] icons[0,2] icons[0,6]
*eightAchiev2
name:eightst home videos
desc:Have 1000 eights.
req:1000 eights
icon:icons[2,4] icons[0,3] icons[0,6]
*eightAchiev3
name:You got buns, hun
desc:Have 1000000 eights.
req:10000000 eights
icon:icons[2,4] icons[0,4] icons[0,6]
*clickAchiev1
name:That tickles
desc:Click the eight 10 times.
req:10 eightButton clicks
icon:icons[2,2] icons[0,2] icons[0,6]
*clickAchiev2
name:Don't squeeze me I'll fart
desc:Click the eight 100 times.
req:100 eightButton clicks
icon:icons[2,2] icons[0,3] icons[0,6]
*clickAchiev3
name:You're cruising for a bruising, dude
desc:Click the eight 2000 times.
req:2000 eightButton clicks
icon:icons[2,2] icons[0,4] icons[0,6]
*eightPsAchiev1
name:Be vewy vewy quiet
desc:Produce 10 eights per second.
req:10 eights per second
icon:icons[2,3] icons[0,2] icons[0,6]
*eightPsAchiev2
name:Hop and a skip
desc:Produce 1000 eights per second.
req:1000 eights per second
icon:icons[2,3] icons[0,3] icons[0,6]
*eightPsAchiev3
name:Go forth and multiply
desc:Produce 100000 eights per second.
req:100000 eights per second
icon:icons[2,3] icons[0,4] icons[0,6]
*carrotAchiev1
name:Isn't it neat
desc:Have 1 golden carrot.
req:1 goldenCarrot
icon:icons[0,1] icons[0,2]
*carrotAchiev2
name:All that glitters
desc:Have 100 golden carrots.
req:100 goldenCarrot
icon:icons[0,1] icons[0,3]
*carrotAchiev3
name:Zero nutritional value
desc:Have 1000 golden carrots.
req:1000 goldenCarrot
icon:icons[0,1] icons[0,4]
*NarratorAchiev
name:Freedom!
desc:Complete building the freedom Narrator./>This is it. You beat the game!
req:100 Narrator
icon:icons[3,8] icons[0,4]