$money = 0 $sinks = { 'basic': {'name': 'Basic Sink', 'description': 'A simple porcelain sink', 'owned': 0}, 'gold': {'name': 'Gold Sink', 'description': 'A fancy sink made of gold!', 'owned': 0}, 'diamond': {'name': 'Diamond Sink', 'description': 'The ultimate sink, studded with diamonds', 'owned': 0} } $shop_sinks = { 'gold': {'price': 200}, 'diamond': {'price': 500} } $total_happiness = 1Welcome to "Let That Sink In" Simulator! In this delightful game, you can collect various sinks and let them into your home. Because sometimes, you just need to let that sink in. Money: ${money} if money > 10: You're on your way to success! else: Time to get money from the sinks. if money > 50: Big money guy if money > 100: You're doing a lot of money [[View My Sink Collection|Collection]] [[Visit Sink Shop|Shop]]This is an example project made in <a href="https://pycube.org/" target="_blank">PyCube</a> & <a href="https://twinery.org/" target="_blank">Twine</a> <a href="https://github.com/BwendyGames/pycube-example" target="_blank">Source Code</a>By Brendon Sutherlandif sinks['basic']['owned'] > 0: Basic Sink (Owned: {sinks['basic']['owned']}) {sinks['basic']['description']} <button onclick="go('WashBasic')">Wash hands with Basic Sink</button> if sinks['gold']['owned'] > 0: Gold Sink (Owned: {sinks['gold']['owned']}) {sinks['gold']['description']} <button onclick="go('WashGold')">Wash hands with Gold Sink</button> if sinks['diamond']['owned'] > 0: Diamond Sink (Owned: {sinks['diamond']['owned']}) {sinks['diamond']['description']} <button onclick="go('WashDiamond')">Wash hands with Diamond Sink</button> [[Back to Main Menu|Start]]Welcome to the Sink Emporium! Your money: ${money} Basic Sink - FREE! {sinks['basic']['description']} [[Get Another Basic Sink|BuyBasic]] if money >= shop_sinks['gold']['price']: Gold Sink - ${shop_sinks['gold']['price']} {sinks['gold']['description']} [[Buy Gold Sink|BuyGold]] else: Gold Sink - ${shop_sinks['gold']['price']} (You need more money!) if money >= shop_sinks['diamond']['price']: Diamond Sink - ${shop_sinks['diamond']['price']} {sinks['diamond']['description']} [[Buy Diamond Sink|BuyDiamond]] else: Diamond Sink - ${shop_sinks['diamond']['price']} (You need more money!) [[Back to Main Menu|Start]]$sinks['basic']['owned'] += 1 You got a new Basic Sink! Let that sink in... [[Back to Shop|Shop]] [[View Collection|Collection]]$money -= shop_sinks['gold']['price'] $sinks['gold']['owned'] += 1 You got a shiny new Gold Sink! Let that sink in... [[Back to Shop|Shop]] [[View Collection|Collection]]$money -= shop_sinks['diamond']['price'] $sinks['diamond']['owned'] += 1 You got an amazing Diamond Sink! Let that sink in... [[Back to Shop|Shop]] [[View Collection|Collection]]$money += sinks["basic"]["owned"] * 10 You wash your hands in the Basic Sink. It works fine. <p style="color:green">Profit??<br> + ${sinks["basic"]["owned"] * 10}</p> <button onclick="go('Start')">Back</button>$money += sinks["gold"]["owned"] * 25 You wash your hands in the Gold Sink. Luxurious and shiny. <p style="color:green">Profit??<br> + ${sinks["gold"]["owned"] * 25}</p> <button onclick="go('Start')">Back</button>$money += sinks["diamond"]["owned"] * 100 You wash your hands in the Diamond Sink. It practically mints money. <p style="color:green">Profit??<br> + ${sinks["diamond"]["owned"] * 100}</p> <button onclick="go('Start')">Back</button>
Save/Load Slots