index.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <link rel="stylesheet" type="text/css" href="./css/index.css" />
  7. <link rel="stylesheet" type="text/css" media="screen" href="./css/game.css" />
  8. <link rel="stylesheet" type="text/css" media="screen and (max-width: 1023px)" href="./css/game-mobile.css" />
  9. <link rel="stylesheet" type="text/css" href="./index.css" />
  10. <link rel="icon" type="image/icon" href="./favicon.ico">
  11. <title>Spookonomics: The Witch's Brew</title>
  12. <meta property="og:title" content="Spookonomics: The Witch's Brew - Halloween 2024" />
  13. <meta property="og:description"
  14. content="A browser-based game of mysterious potions and spooky capitalism. A humble witch gathers ingredients and brews speciality potions for her supernatural clientele." />
  15. <meta property="og:image" content="https://eyeofmidas.com/spookonomics/og_image.png" />
  16. <meta property="og:url" content="https://eyeofmidas.com/spookonomics" />
  17. <link rel="preconnect" href="https://fonts.googleapis.com">
  18. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  19. <link href="https://fonts.googleapis.com/css2?family=Alice&family=Quicksand&display=swap" rel="stylesheet">
  20. </head>
  21. <body>
  22. <div id="loading">
  23. <div id="loading-inner"><img src="./loading_ghost.gif" />loading...</div>
  24. </div>
  25. <canvas class="webgl"></canvas>
  26. <script type="module" src="./index.js"></script>
  27. <div id="main-menu-container">
  28. <div id="main-menu-display">
  29. <div id="main-menu-header-container">
  30. <h1 id="main-menu-title">Spookonomics</h1>
  31. <h2 id="main-menu-subtitle">The Witch's Brew</h2>
  32. </div>
  33. <div id="main-menu-button-list">
  34. <div class="button-inner-container primary">
  35. <button id="play-button" class="primary">Play</button>
  36. </div>
  37. <div class="button-inner-container">
  38. <button id="options-button">Options</button>
  39. </div>
  40. <div class="button-inner-container">
  41. <button id="credits-button">Credits</button>
  42. </div>
  43. <div class="button-inner-container">
  44. <button id="reset-save-button">Delete Save</button>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. <div id="room-navigation">
  50. <div id="prev"><svg height="40" width="200"><text xml:space="preserve"
  51. 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"
  52. 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"
  53. sodipodi:nodetypes="ccccc" /></svg>
  54. </div>
  55. <div id="next"><svg height="40" width="200"><text xml:space="preserve"
  56. 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;"
  57. 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"
  58. sodipodi:nodetypes="ccccc" /></svg>
  59. </div>
  60. </div>
  61. <div id="game-status-container">
  62. <div id="game-status-panel">
  63. <div id="currency-meter-container">
  64. <div id="currency-meter-icon"><img src="./images/coin.svg" /></div>
  65. <span>0</span>
  66. <progress id="currency-progress" max="1000" value="500" title="500"></progress>
  67. <span>1000</span>
  68. </div>
  69. <div id="current-day-container">
  70. <div id="current-day-icon"><img src="./images/day_icon.svg" /></div>
  71. <div id="current-day-text">day 1</div>
  72. </div>
  73. </div>
  74. </div>
  75. <div id="brew-container">
  76. <div id="brew-right-side">
  77. <div id="brew-header-container">
  78. <h1>Brew</h1>
  79. </div>
  80. <div id="brew-ingredients-container">
  81. <div class="ingredient-container" data-ingredient="pumpkin">
  82. <img src="./images/ingredient_pumpkin.png" />
  83. </div>
  84. <div class="ingredient-container" data-ingredient="tomato">
  85. <img src="./images/ingredient_tomato.png" />
  86. </div>
  87. <div class="ingredient-container" data-ingredient="lettuce">
  88. <img src="./images/ingredient_lettuce.png" />
  89. </div>
  90. <div class="ingredient-container" data-ingredient="mushroom">
  91. <img src="./images/ingredient_mushroom.png" />
  92. </div>
  93. </div>
  94. <div id="brew-selected-container">
  95. <div class="ingredient-selected-container disabled">
  96. <div class="disabled-selected-ingredient">None Selected</div>
  97. <div class="active-selected-ingredient">
  98. <div class="selected-ingredient-image">
  99. <img src="./images/ingredient_unknown.png">
  100. </div>
  101. <div class="selected-ingredient-description">
  102. <h2>Unknown</h2>
  103. <p>None Selected</p>
  104. </div>
  105. </div>
  106. </div>
  107. <div class="ingredient-selected-container disabled">
  108. <div class="disabled-selected-ingredient">None Selected</div>
  109. <div class="active-selected-ingredient">
  110. <div class="selected-ingredient-image">
  111. <img src="./images/ingredient_unknown.png">
  112. </div>
  113. <div class="selected-ingredient-description">
  114. <h2>Unknown</h2>
  115. <p>None Selected</p>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. <div id="brew-potion-summary-container">
  121. <div id="potion-icon-container">
  122. <div id="potion-icon"></div>
  123. <div class="potion-inventory-count">1</div>
  124. </div>
  125. <div id="potion-description">
  126. <h2 id="potion-name">Unknown</h2>
  127. <ul id="potion-properties-list"></ul>
  128. </div>
  129. </div>
  130. <div id="brew-button-container">
  131. <div id="brew-button-inner-container">
  132. <button id="start-brew">Brew</button>
  133. </div>
  134. </div>
  135. </div>
  136. </div>
  137. <div id="shop-container">
  138. <div id="shop-panel">
  139. <div id="shop-header-container">
  140. <h1>Shop</h1>
  141. </div>
  142. <div id="shop-sides">
  143. <div id="shop-left-side">
  144. <div id="shop-potions-container">
  145. <div class="potion-container"><img src="./images/potion_unknown.png" />
  146. <div class="potion-inventory-count">1</div>
  147. </div>
  148. <div class="potion-container"><img src="./images/potion_unknown.png" />
  149. <div class="potion-inventory-count">1</div>
  150. </div>
  151. <div class="potion-container"><img src="./images/potion_unknown.png" />
  152. <div class="potion-inventory-count">1</div>
  153. </div>
  154. <div class="potion-container"><img src="./images/potion_unknown.png" />
  155. <div class="potion-inventory-count">1</div>
  156. </div>
  157. <div class="potion-container"><img src="./images/potion_unknown.png" />
  158. <div class="potion-inventory-count">1</div>
  159. </div>
  160. <div class="potion-container"><img src="./images/potion_unknown.png" />
  161. <div class="potion-inventory-count">1</div>
  162. </div>
  163. <div class="potion-container"><img src="./images/potion_unknown.png" />
  164. <div class="potion-inventory-count">1</div>
  165. </div>
  166. <div class="potion-container"><img src="./images/potion_unknown.png" />
  167. <div class="potion-inventory-count">1</div>
  168. </div>
  169. <div class="potion-container"><img src="./images/potion_unknown.png" />
  170. <div class="potion-inventory-count">1</div>
  171. </div>
  172. <div class="potion-container"><img src="./images/potion_unknown.png" />
  173. <div class="potion-inventory-count">1</div>
  174. </div>
  175. <div class="potion-container"><img src="./images/potion_unknown.png" />
  176. <div class="potion-inventory-count">1</div>
  177. </div>
  178. <div class="potion-container"><img src="./images/potion_unknown.png" />
  179. <div class="potion-inventory-count">1</div>
  180. </div>
  181. </div>
  182. </div>
  183. <div id="shop-right-side">
  184. <div id="shop-shelves-container">
  185. <div class="shop-shelf">
  186. <div class="stocked-potion-container"><img src="./images/potion_unknown.png" /></div>
  187. <div class="stocked-potion-container"><img src="./images/potion_unknown.png" /></div>
  188. </div>
  189. <div class="shop-shelf">
  190. <div class="stocked-potion-container"><img src="./images/potion_unknown.png" /></div>
  191. <div class="stocked-potion-container"><img src="./images/potion_unknown.png" /></div>
  192. </div>
  193. <div class="shop-shelf">
  194. <div class="stocked-potion-container"><img src="./images/potion_unknown.png" /></div>
  195. <div class="stocked-potion-container"><img src="./images/potion_unknown.png" /></div>
  196. </div>
  197. </div>
  198. </div>
  199. </div>
  200. <div id="shop-button-container">
  201. <div id="shop-button-inner-container">
  202. <button id="start-selling">Open Shop</button>
  203. </div>
  204. </div>
  205. </div>
  206. </div>
  207. <div id="market-container">
  208. <div id="market-panel">
  209. <div id="market-header-container">
  210. <h1>Ingredients</h1>
  211. </div>
  212. <div id="ingredients-list">
  213. <div class="ingredient-sell-container" data-ingredient="pumpkin">
  214. <div class="ingredient-icon-container">
  215. <img src="./images/ingredient_pumpkin.png" />
  216. <div class="ingredient-inventory-count">5</div>
  217. </div>
  218. <div class="ingredient-description">
  219. <h2>Pumpkin</h2>
  220. <div class="ingredient-price">
  221. <img src="./images/coin.svg" />
  222. <div class="ingredient-price-value">10</div>
  223. </div>
  224. <div class="call-to-action">Click to add to order</div>
  225. </div>
  226. <div class="ingredient-in-cart-container">
  227. <div class="ingredient-in-cart-amount">24</div>
  228. </div>
  229. </div>
  230. </div>
  231. <div id="total-container">
  232. <div id="total-title">Total</div>
  233. <div id="total-amount">
  234. <div id="total-icon-container">
  235. <img src="./images/coin.svg" />
  236. </div>
  237. <div id="total-amount-value">57</div>
  238. </div>
  239. </div>
  240. <div id="market-button-container">
  241. <div id="market-button-inner-container">
  242. <button id="buy-ingredients">Purchase</button>
  243. </div>
  244. </div>
  245. </div>
  246. </div>
  247. <div id="game-over-container">
  248. <div id="game-over-blackout">
  249. <div id="game-over-panel">
  250. <h1>You Win!</h1>
  251. <p>You made 1000 gold in:</p>
  252. <h2>8 days</h2>
  253. <div id="play-again-button-container">
  254. <div id="play-again-button-inner-container">
  255. <button id="play-again">Play Again?</button>
  256. </div>
  257. </div>
  258. </div>
  259. </div>
  260. </div>
  261. <!-- Google tag (gtag.js) -->
  262. <script async src="https://www.googletagmanager.com/gtag/js?id=G-H4BYTFBKJT"></script>
  263. <script>
  264. window.dataLayer = window.dataLayer || [];
  265. function gtag() { dataLayer.push(arguments); }
  266. gtag('js', new Date());
  267. gtag('config', 'G-H4BYTFBKJT');
  268. </script>
  269. </body>
  270. </html>