123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="stylesheet" type="text/css" href="./css/index.css" />
- <link rel="stylesheet" type="text/css" media="screen" href="./css/game.css" />
- <link rel="stylesheet" type="text/css" media="screen and (max-width: 1023px)" href="./css/game-mobile.css" />
- <link rel="stylesheet" type="text/css" href="./index.css" />
- <link rel="icon" type="image/icon" href="./favicon.ico">
- <title>Spookonomics: The Witch's Brew</title>
- <meta property="og:title" content="Spookonomics: The Witch's Brew - Halloween 2024" />
- <meta property="og:description"
- content="A browser-based game of mysterious potions and spooky capitalism. A humble witch gathers ingredients and brews speciality potions for her supernatural clientele." />
- <meta property="og:image" content="https://eyeofmidas.com/spookonomics/og_image.png" />
- <meta property="og:url" content="https://eyeofmidas.com/spookonomics" />
- <link rel="preconnect" href="https://fonts.googleapis.com">
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
- <link href="https://fonts.googleapis.com/css2?family=Alice&family=Quicksand&display=swap" rel="stylesheet">
- </head>
- <body>
- <div id="loading">
- <div id="loading-inner"><img src="./loading_ghost.gif" />loading...</div>
- </div>
- <canvas class="webgl"></canvas>
- <script type="module" src="./index.js"></script>
- <div id="main-menu-container">
- <div id="main-menu-display">
- <div id="main-menu-header-container">
- <h1 id="main-menu-title">Spookonomics</h1>
- <h2 id="main-menu-subtitle">The Witch's Brew</h2>
- </div>
- <div id="main-menu-button-list">
- <div class="button-inner-container primary">
- <button id="play-button" class="primary">Play</button>
- </div>
- <div class="button-inner-container">
- <button id="options-button">Options</button>
- </div>
- <div class="button-inner-container">
- <button id="credits-button">Credits</button>
- </div>
- <div class="button-inner-container">
- <button id="reset-save-button">Delete Save</button>
- </div>
- </div>
- </div>
- </div>
- <div id="options-container">
- <div id="options-panel">
- <div id="options-back-button">«</div>
- <div id="options-header-container">
- <h1>Options</h1>
- </div>
- <div id="options-list-container">
- <div class="option-container">
- <div><label for="master-volume">Master Volume</label></div>
- <div><input type="range" min="0" max="100" id="master-volume" /></div>
- </div>
- <div class="option-container">
- <div><label for="music-volume">Music Volume</label></div>
- <div><input type="range" min="0" max="100" id="music-volume" /></div>
- </div>
- </div>
- </div>
- </div>
- <div id="credits-container">
- <div id="credits-panel">
- <div id="credits-back-button">«</div>
- <div id="credits-text">
- <div class="credits-section">
- <h1>Spookonomics</h1>
- <h2>The Witch's Brew</h2>
- <p><a href="https://threejs-journey.com/challenges/014-halloween-2" target="_blank">A Threejs Journey Student Challenge</a></p>
- </div>
- <div class="credits-section">
- <h3>Created By</h3>
- <p><a href="https://mastodon.gamedev.place/@eyeofmidas" target="_blank">Justin Gilman</a></p>
- <p><a href="https://mastodon.design/@danusha" target="_blank">Danielle Gilman</a></p>
- </div>
- <div class="credits-section">
- <h3>Libraries</h3>
- <p><a href="https://threejs.org/" target="_blank">threejs</a></p>
- <p><a href="https://gsap.com/" target="_blank">GSAP</a></p>
- <p><a href="https://howlerjs.com/" target="_blank">howlerjs</a></p>
- <p><a href="https://vite.dev/" target="_blank">vite</a></p>
- </div>
- <div class="credits-section">
- <h3>3D Models</h3>
- <p><a href="https://kaylousberg.itch.io/" target="_blank">Kay Lousberg</a></p>
- <p><a href="https://assetquest.itch.io/" target="_blank">AssetQuest</a></p>
- </div>
- <div class="credits-section">
- <h3>2D Assets</h3>
- <p><a href="https://kenney.itch.io/" target="_blank">Kenney</a></p>
- <p><a href="https://polyhaven.com/a/kloppenheim_02_puresky" target="_blank">Greg Zaal & Jarod Guest</a></p>
- <p><a href="https://fonts.google.com" target="_blank">Google Fonts</a></p>
-
- </div>
- <div class="credits-section">
- <h3>Audio & Music</h3>
- <p><a href="https://kenney.itch.io/" target="_blank">Kenney</a></p>
- <p><a href="https://www.gamesfxpacks.com" target="_blank">Cyberwave Orchestra</a></p>
- <p><a href="https://pixabay.com/sound-effects/" target="_blank">Pixabay</a></p>
- </div>
- <div class="credits-section">
- <h3>Special Thanks</h3>
- <p><a href="https://bruno-simon.com/" target="_blank">Bruno Simon</a></p>
- <p><a href="https://www.youtube.com/@simondev758" target="_blank">SimonDev</a></p>
- <p><a href="https://www.udemy.com/user/nicholas-lever-3/" target="_blank">Nik Lever</a></p>
- </div>
- </div>
- </div>
- </div>
- <div id="room-navigation">
- <div id="prev"><svg height="40" width="200"><text xml:space="preserve"
- style="font-size:32px;text-align:start;text-anchor:start;" x="44.315765" y="27.265625" id="text1"><tspan sodipodi:role="line" id="prev-text"
- style="font-size:32px;text-align:start;text-anchor:start;" x="44.315765" y="27.265625">Shop</tspan></text><path d="M 0,16 41.72141,31.318914 19.128231,16 41.72141,0.681086 Z" id="path1"
- sodipodi:nodetypes="ccccc" /></svg>
- </div>
- <div id="next"><svg height="40" width="200"><text xml:space="preserve"
- style="font-size:32px;text-align:end;text-anchor:end;" x="158.06747" y="26.584539" id="text2"><tspan sodipodi:role="line" id="next-text" style="font-size:32px;text-align:end;text-anchor:end;"
- x="158.06747" y="26.584539">Market</tspan></text><path d="M 200,16 158.27859,30.637828 180.87177,16 158.27859,0 Z" id="path3"
- sodipodi:nodetypes="ccccc" /></svg>
- </div>
- </div>
- <div id="game-status-container">
- <div id="game-status-panel">
- <div id="currency-meter-container">
- <div id="currency-meter-icon"><img src="./images/coin.svg" /></div>
- <div class="meter-start">0</div>
- <div id="currency-progress"><div id="currency-progress-amount"><span id="currency-amount">100</span></div></div>
- <div class="meter-end">1000</div>
- </div>
- <div id="current-day-container">
- <div id="current-day-icon"><img src="./images/day_icon.svg" /></div>
- <div id="current-day-text">day 1</div>
- </div>
- </div>
- </div>
- <div id="brew-container">
- <div id="brew-right-side">
- <div id="brew-header-container">
- <h1>Brew</h1>
- </div>
- <div id="brew-ingredients-container">
- <div class="ingredient-container" data-ingredient="pumpkin">
- <img src="./images/ingredient_pumpkin.png" />
- </div>
- <div class="ingredient-container" data-ingredient="tomato">
- <img src="./images/ingredient_tomato.png" />
- </div>
- <div class="ingredient-container" data-ingredient="lettuce">
- <img src="./images/ingredient_lettuce.png" />
- </div>
- <div class="ingredient-container" data-ingredient="mushroom">
- <img src="./images/ingredient_mushroom.png" />
- </div>
- </div>
- <div id="brew-selected-container">
- <div class="ingredient-selected-container disabled">
- <div class="disabled-selected-ingredient">None Selected</div>
- <div class="active-selected-ingredient">
- <div class="selected-ingredient-image">
- <img src="./images/ingredient_unknown.png">
- </div>
- <div class="selected-ingredient-description">
- <h2>Unknown</h2>
- <p>None Selected</p>
- </div>
- </div>
- </div>
- <div class="ingredient-selected-container disabled">
- <div class="disabled-selected-ingredient">None Selected</div>
- <div class="active-selected-ingredient">
- <div class="selected-ingredient-image">
- <img src="./images/ingredient_unknown.png">
- </div>
- <div class="selected-ingredient-description">
- <h2>Unknown</h2>
- <p>None Selected</p>
- </div>
- </div>
- </div>
- </div>
- <div id="brew-potion-summary-container">
- <div id="potion-icon-container">
- <div id="potion-icon"></div>
- <div class="potion-inventory-count">1</div>
- </div>
- <div id="potion-description">
- <h2 id="potion-name">Unknown</h2>
- <ul id="potion-properties-list"></ul>
- </div>
- </div>
- <div id="brew-button-container">
- <div id="brew-button-inner-container">
- <button id="start-brew">Brew</button>
- </div>
- </div>
- </div>
- </div>
- <div id="shop-container">
- <div id="shop-panel">
- <div id="shop-header-container">
- <h1>Shop</h1>
- </div>
- <div id="shop-sides">
- <div id="shop-left-side">
- <div id="shop-potions-container">
- <div class="potion-container"><img src="./images/potion_unknown.png" />
- <div class="potion-inventory-count">1</div>
- </div>
- <div class="potion-container"><img src="./images/potion_unknown.png" />
- <div class="potion-inventory-count">1</div>
- </div>
- <div class="potion-container"><img src="./images/potion_unknown.png" />
- <div class="potion-inventory-count">1</div>
- </div>
- <div class="potion-container"><img src="./images/potion_unknown.png" />
- <div class="potion-inventory-count">1</div>
- </div>
- <div class="potion-container"><img src="./images/potion_unknown.png" />
- <div class="potion-inventory-count">1</div>
- </div>
- <div class="potion-container"><img src="./images/potion_unknown.png" />
- <div class="potion-inventory-count">1</div>
- </div>
- <div class="potion-container"><img src="./images/potion_unknown.png" />
- <div class="potion-inventory-count">1</div>
- </div>
- <div class="potion-container"><img src="./images/potion_unknown.png" />
- <div class="potion-inventory-count">1</div>
- </div>
- <div class="potion-container"><img src="./images/potion_unknown.png" />
- <div class="potion-inventory-count">1</div>
- </div>
- <div class="potion-container"><img src="./images/potion_unknown.png" />
- <div class="potion-inventory-count">1</div>
- </div>
- <div class="potion-container"><img src="./images/potion_unknown.png" />
- <div class="potion-inventory-count">1</div>
- </div>
- <div class="potion-container"><img src="./images/potion_unknown.png" />
- <div class="potion-inventory-count">1</div>
- </div>
- </div>
- </div>
- <div id="shop-right-side">
- <div id="shop-shelves-container">
- <div class="shop-shelf">
- <div class="stocked-potion-container"><img src="./images/potion_unknown.png" /></div>
- <div class="stocked-potion-container"><img src="./images/potion_unknown.png" /></div>
- </div>
- <div class="shop-shelf">
- <div class="stocked-potion-container"><img src="./images/potion_unknown.png" /></div>
- <div class="stocked-potion-container"><img src="./images/potion_unknown.png" /></div>
- </div>
- <div class="shop-shelf">
- <div class="stocked-potion-container"><img src="./images/potion_unknown.png" /></div>
- <div class="stocked-potion-container"><img src="./images/potion_unknown.png" /></div>
- </div>
- </div>
- </div>
- </div>
- <div id="shop-button-container">
- <div id="shop-button-inner-container">
- <button id="start-selling">Open Shop</button>
- </div>
- </div>
- </div>
- </div>
- <div id="market-container">
- <div id="market-panel">
- <div id="market-header-container">
- <h1>Ingredients</h1>
- </div>
- <div id="ingredients-list">
- <div class="ingredient-sell-container" data-ingredient="pumpkin">
- <div class="ingredient-icon-container">
- <img src="./images/ingredient_pumpkin.png" />
- <div class="ingredient-inventory-count">5</div>
- </div>
- <div class="ingredient-description">
- <h2>Pumpkin</h2>
- <div class="ingredient-price">
- <img src="./images/coin.svg" />
- <div class="ingredient-price-value">10</div>
- </div>
- <div class="call-to-action">Click to add to order</div>
- </div>
- <button class="add-ingredient-button">+</button>
- <div class="ingredient-in-cart-container">
- <div class="ingredient-in-cart-amount">24</div>
- </div>
- <button class="remove-ingredient-button">-</button>
- </div>
- </div>
- <div id="total-container">
- <div id="total-title">Total</div>
- <div id="total-amount">
- <div id="total-icon-container">
- <img src="./images/coin.svg" />
- </div>
- <div id="total-amount-value">57</div>
- </div>
- </div>
- <div id="market-button-container">
- <div id="market-button-inner-container">
- <button id="buy-ingredients">Purchase</button>
- </div>
- </div>
- </div>
- </div>
- <div id="game-over-container">
- <div id="game-over-blackout">
- <div id="game-over-panel">
- <h1>You Win!</h1>
- <p>You made 1000 gold in:</p>
- <h2>8 days</h2>
- <div id="play-again-button-container">
- <div id="play-again-button-inner-container">
- <button id="play-again">Play Again?</button>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- Google tag (gtag.js) -->
- <script async src="https://www.googletagmanager.com/gtag/js?id=G-H4BYTFBKJT"></script>
- <script>
- window.dataLayer = window.dataLayer || [];
- function gtag() { dataLayer.push(arguments); }
- gtag('js', new Date());
- gtag('config', 'G-H4BYTFBKJT');
- </script>
- </body>
- </html>
|