Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Let's make a game!
- name:Mining Madness
- by:Ytterfragl
- desc:It's mining time! Gather resources, and make the biggest tunnels ever!
- created:02/25/2018
- updated:yettobedetermined
- version:0.0.1
- Settings
- background:yettobedetermined
- building cost increase:110%
- building cost refund:35%
- //ADD SPRITES HERE IF NESSECARY
- no bulk particles
- CSS
- #game
- {
- background:brown;
- font-family:"Terminal";
- color:black;
- }
- CSS
- #game.thing.cantAfford.notOwned
- {
- filter:text-color:red;
- }
- CSS
- #game.thing.cantAfford.notOwned
- {
- color: black;
- }
- CSS
- #game.filters On
- {
- text-shadow: 3px 3px 0 black;
- }
- //I should probably experiment more with these
- Layout
- *shop
- contains:upgrades, buildings
- header:Buy things here to gain more resources!
- footer:More will be added soon!
- *statistics
- header:These are the overall statistics of your mining, including achievements.
- *resources
- contains:resources
- header:These are the things you get from mining, and you use these to buy things.
- *upgrades
- contains:upgrades
- in:shop
- header: These will boost the effect of your buildings, mining and more!
- *buildings
- contains:buildings
- in:shop
- header:These buildings will give you resources over time.
- *achievements
- contains:achievements
- in:statistics
- header:These are the achievements that you've earned in-game.
- *yachievements
- contains:tag:Yachievement
- in:achievements
- header:These achievements are incredibly difficult to obtain. There is a <b>secret<b> prize for the player who collects them all!
- Buttons
- *pickaxe
- name:Pickaxe
- desc:Use the pickaxe to mine the ground!
- on click:
- if (chance(20%)) yield (1 + shovels) clay
- if (have pickaxeupgrade1) yield (1 + drills) stone
- if (have pickaxeupgrade1 and chance(20%)) yield (1 + drills) copper
- if (have pickaxeupgrade1 and chance(10%)) yield 1 tin
- yield (1 + shovels) dirt
- $cps=$cps+1
- end
- on tick:$cps=0
- *dirttomoney
- name:Dirt Exchange
- desc:Sell your dirt for money!
- on click:
- if (dirt >= 10)
- lose 10 dirt
- yield 1 money
- end
- end
- *claytomoney
- name:Clay Exchange
- desc:Sell your clay for money!
- on click:
- if (clay >= 10)
- lose 10 clay
- yield 5 money
- end
- end
- *stonetomoney
- name:Stone Exchange
- desc:Sell your stone for money!
- on click:
- if (stone >= 10)
- lose 10 stone
- yield 10 money
- end
- end
- *coppertomoney
- name:Copper Exchange
- desc:Sell your copper for money!
- on click:
- if (copper >= 10)
- lose 10 copper
- yield 20 money
- end
- end
- *tintomoney
- name: Tin Exchange
- desc:Sell your tin for money!
- on click:
- if (tin >= 10)
- lose 10 tin
- yield 15 money
- end
- end
- *bronzemaker
- name:Bronze Maker
- desc:Combine your copper and tin to make bronze!
- on click:
- if (copper >= 8 and tin >= 2)
- lose 8 copper
- lose 2 tin
- yield 10 bronze
- end
- end
- Resources
- *money
- name:Money
- desc:The stuff that makes the world go round!
- start with: 50
- *dirt
- name:Dirt
- desc:Extremely abundant. Not very useful.
- *clay
- name:Clay
- desc:More useful than dirt, and can be made into many things.
- *stone
- name:Stone
- desc:A very sturdy material, many opportunities available.
- hidden
- req:have pickaxeupgrade1
- *copper
- name:Copper
- desc:Conductive, and quite common.
- hidden
- req:have pickaxeupgrade1
- *tin
- name:Tin
- desc:Used to make a variety of alloys, including bronze.
- hidden
- req:have pickaxeupgrade1
- *bronze
- name:Bronze
- desc:An alloy made from copper and tin.
- hidden when 0
- *coal
- name:Coal
- desc:A material made from carbon, commonly used as a fuel source.
- *iron
- name:Iron
- desc:A sturdy metal. Used for making steel.
- *ytterbium
- name:Ytterbium
- desc:Ytterfragl is proud of you!
- hidden when 0
- Buildings
- *shovel|shovels
- name:Makeshift Shovel
- desc:A very weak shovel, but it still sorta works.</>Increases dirt and clay production by 1.
- tag:tool
- cost:10 dirt, 2 clay
- shown
- *digger|diggers
- name:Digger
- desc:This kind digger will shovel the ground for you.</>Produces 1 dirt or clay every 4 seconds.
- tag:worker
- cost:10 money
- hidden
- req:50 dirt, 10 clay
- on tick:
- $diggerdirtorclay=random(1,5)
- if ($diggerdirtorclay=5) yield 0.25 clay
- if ($diggerdirtorclay<5) yield 0.25 dirt
- end
- *miner|miners
- name: Miner
- desc:A miner that gathers stone for you!</>Gains 1 stone per second.
- tag:worker
- cost:35 money
- hidden
- req:10 stone
- on tick:yield 1 stone
- *drill|drills
- name:Jackhammer
- desc:A giant drill used for digging holes.</>Increases stone, copper and tin production by 1.
- tag:tool
- cost:20 stone, 5 copper
- hidden
- req:10 stone, 1 copper
- *mine|mines
- name:Mineshaft
- desc:An entire area dedicated to mining!</>Collects stone and some metals.
- tag:building
- cost:50 stone, 100 money
- hidden
- req:100 money, 75 stone, 25 copper, 10 tin
- on tick:
- $mineresource=random(1,100)
- if ($mineresource>=30) yield 1 copper
- else if ($mineresource>=50) yield 1 tin
- else if ($mineresource>=60) yield 1 coal
- else if ($mineresource>=65) yield 1 iron
- else yield 1 stone
- end
- Upgrades
- *pickaxeupgrade1
- name:Pickaxe Upgrade I
- desc:This will make your pickaxe stronger.</>Enables more resources to be gathered.
- cost:25 clay, 100 money
- hidden
- req:20 clay, 80 money
- passive:multiply yield of pickaxe by 2
- *shovelboost1
- name:Sturdy Reinforcement
- desc:Now those shovels will be more useful!</>Doubles effect of all shovels.
- cost:20 stone
- hidden
- req:10 shovels, 15 stone
- Achievements
- *1dirt
- name:First Dirt
- desc:Mine 1 dirt.
- req:1 dirt
- *1kdirt
- name:Dirty Business
- desc:Mine 1,000 dirt.
- req:dirt:earned>=1000
- *1mdirt
- name:Roll in the Dirt
- desc:Mine 1 million dirt.
- req:dirt:earned>=1000000
- *1clay
- name:At Least it's Useful
- desc:Mine 1 clay.
- req:1 clay
- *1kclay
- name:Pile of Bricks
- desc:Mine 1,000 clay.
- req:clay:earned>=1000
- *1mclay
- name:Brick Wall
- desc:Mine 1 million clay.
- req:clay:earned>=1000000
- *1stone
- name:Rock Solid
- desc:Mine 1 stone
- req:1 stone
- *1kstone
- name:Found it Under a Rock
- desc:Mine 1,000 stone.<q>Wait a minute, it <b>is<b> the rock!<q>
- req:stone:earned>=1000
- *1mstone
- name:Rock Concert
- desc:Mine 1 million stone.
- req:stone:earned>=1000000
- *1copper
- name:It's not bronze!
- desc:Mine 1 copper.
- req:1 copper
- *1kcopper
- name:Copper Wire
- desc:Mine 1000 copper.
- req:copper:earned>=1000
- *1mcopper
- name:Just add Tin
- desc:Mine 1 million copper.
- req:copper:earned>=1000000
- *1tin
- name:Tin Can
- desc:Mine 1 tin.
- req:1 tin
- *1ktin
- name:Protective Coating
- desc:Mine 1000 tin.
- req:tin:earned>=1000
- *1mtin
- name:Just add Copper
- desc:Mine 1 million tin.
- req:tin:earned>=1000000
- *1bronze
- name:Tin and Copper
- desc:Make 1 bronze.
- req:1 bronze
- *1kbronze
- name:Copper and Tin
- desc:Make 1,000 bronze.
- req:bronze:earned>=1000
- *1mbronze
- name:Bronze Medal
- desc:Make 1 million bronze.<q>At least you made the top 3!<q>
- *1click
- name:Time to Mine
- desc:Click the pickaxe once.<q>That's the way!<q>
- req:1 pickaxe:clicks
- *1kclicks
- name:Mine a Bit
- desc:Click the pickaxe 1,000 times.<q>Remember to take breaks!<q>
- req:1000 pickaxe:clicks
- *100kclicks
- name:Mine a Lot
- desc:Click the pickaxe 100,000 times.<q>Haven't you had enough already?<q>
- req:100000 pickaxe:clicks
- *1mclicks
- name:Frantic Miner
- desc:Click the pickaxe 1 million times.<q>You've been playing all this time, <i>right?<i><q>
- req:1000000 pickaxe:clicks
- *10mclicks
- name:Dedicated Miner
- desc:Click 10 million times.<q>You've been playing for a <b>really<b> long time now.<q>
- tag:Yachievement
- req:10000000 pickaxe:clicks
- on earn:toast You have received a Y-achievement!!
- hidden when 0
- *8cps
- name:Hyper-Clicker
- desc:Click quite fast.<q>Not bad, but could you do a little better?<q>
- req:$cps>=8
- *12cps
- name:Extreme Clicker
- desc:Click <i>very<i> fast.<q>You're pretty good!<q>
- req:$cps>=12
- *16cps
- name:Insane Clicker
- desc:Click your way into insanity.<q><b><i>WOW,<i><b> you know how to click!<q>
- tag:Yachievement
- req:$cps>=16
- on earn:toast You have received a Y-achievement!!
- hidden when 0
- Shinies
- *mouse
- name:Mouse Pickaxe
- frequency:10
- duration:10
- no click
- movement:onMouse followMouse
- //add an icon for this
- *ruby
- name:Ruby
- frequency:300
- frequency variation:300
- duration:15
- movement:anywhere spinCW moveRandom fade
- on click:
- $moneyfromruby=max(100,money:earned/100)
- //toast You have earned [$moneyfromruby] money!
- yield $moneyfromruby money
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement