index.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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" content="A browser-based game of mysterious potions and spooky capitalism. A humble witch gathers ingredients and brews speciality potions for her supernatural clientele." />
  14. <meta property="og:image" content="https://eyeofmidas.com/spookonomics/og_image.png" />
  15. <meta property="og:url" content="https://eyeofmidas.com/spookonomics" />
  16. <link rel="preconnect" href="https://fonts.googleapis.com">
  17. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  18. <link href="https://fonts.googleapis.com/css2?family=Alice&family=Quicksand&display=swap" rel="stylesheet">
  19. </head>
  20. <body>
  21. <div id="loading"><div id="loading-inner"><img src="./loading_ghost.gif" />loading...</div></div>
  22. <canvas class="webgl"></canvas>
  23. <script type="module" src="./index.js"></script>
  24. <div id="main-menu-container">
  25. <div id="main-menu-display">
  26. <div id="main-menu-header-container">
  27. <h1 id="main-menu-title">Spookonomics</h1>
  28. <h2 id="main-menu-subtitle">The Witch's Brew</h2>
  29. </div>
  30. <div id="main-menu-button-list">
  31. <div class="button-inner-container primary">
  32. <button id="play-button" class="primary">Play</button>
  33. </div>
  34. <div class="button-inner-container">
  35. <button id="options-button">Options</button>
  36. </div>
  37. <div class="button-inner-container">
  38. <button id="credits-button">Credits</button>
  39. </div>
  40. <div class="button-inner-container">
  41. <button id="reset-save-button">Delete Save</button>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. <div id="room-navigation">
  47. <div id="prev"><svg height="40" width="200"><text
  48. xml:space="preserve"
  49. style="font-size:32px;text-align:start;text-anchor:start;"
  50. x="44.315765"
  51. y="27.265625"
  52. id="text1"><tspan
  53. sodipodi:role="line"
  54. id="prev-text"
  55. style="font-size:32px;text-align:start;text-anchor:start;"
  56. x="44.315765"
  57. y="27.265625">Shop</tspan></text>
  58. <path
  59. d="M 0,16 41.72141,31.318914 19.128231,16 41.72141,0.681086 Z"
  60. id="path1"
  61. sodipodi:nodetypes="ccccc" />
  62. </svg>
  63. </div>
  64. <div id="next"><svg height="40" width="200"><text
  65. xml:space="preserve"
  66. style="font-size:32px;text-align:end;text-anchor:end;"
  67. x="158.06747"
  68. y="26.584539"
  69. id="text2"><tspan
  70. sodipodi:role="line"
  71. id="next-text"
  72. style="font-size:32px;text-align:end;text-anchor:end;"
  73. x="158.06747"
  74. y="26.584539">Market</tspan></text>
  75. <path
  76. d="M 200,16 158.27859,30.637828 180.87177,16 158.27859,0 Z"
  77. id="path3"
  78. sodipodi:nodetypes="ccccc" />
  79. </svg>
  80. </div>
  81. </div>
  82. <div id="game-status-container">
  83. <div id="game-status-panel">
  84. <div id="currency-meter-container">
  85. <div id="currency-meter-icon"><img src="./images/coin.svg" /></div>
  86. <span>0</span>
  87. <progress id="currency-progress" max="1000" value="500" title="500"></progress>
  88. <span>1000</span>
  89. </div>
  90. <div id="current-day-container">
  91. <div id="current-day-icon"><img src="./images/day_icon.svg" /></div>
  92. <div id="current-day-text">day 1</div>
  93. </div>
  94. </div>
  95. </div>
  96. <div id="brew-container">
  97. <div id="brew-right-side">
  98. <div id="brew-header-container">
  99. <h1>Brew</h1>
  100. </div>
  101. <div id="brew-ingredients-container">
  102. <div class="ingredient-container" data-ingredient="pumpkin">
  103. <img src="./images/ingredient_pumpkin.png" />
  104. </div>
  105. <div class="ingredient-container" data-ingredient="tomato">
  106. <img src="./images/ingredient_tomato.png" />
  107. </div>
  108. <div class="ingredient-container" data-ingredient="lettuce">
  109. <img src="./images/ingredient_lettuce.png" />
  110. </div>
  111. <div class="ingredient-container" data-ingredient="mushroom">
  112. <img src="./images/ingredient_mushroom.png" />
  113. </div>
  114. </div>
  115. <div id="brew-selected-container">
  116. <div class="ingredient-selected-container disabled">
  117. <div class="disabled-selected-ingredient">None Selected</div>
  118. <div class="active-selected-ingredient">
  119. <div class="selected-ingredient-image">
  120. <img src="./images/ingredient_unknown.png">
  121. </div>
  122. <div class="selected-ingredient-description">
  123. <h2>Unknown</h2>
  124. <p>None Selected</p>
  125. </div>
  126. </div>
  127. </div>
  128. <div class="ingredient-selected-container disabled">
  129. <div class="disabled-selected-ingredient">None Selected</div>
  130. <div class="active-selected-ingredient">
  131. <div class="selected-ingredient-image">
  132. <img src="./images/ingredient_unknown.png">
  133. </div>
  134. <div class="selected-ingredient-description">
  135. <h2>Unknown</h2>
  136. <p>None Selected</p>
  137. </div>
  138. </div>
  139. </div>
  140. </div>
  141. <div id="brew-potion-summary-container">
  142. <div id="potion-icon-container">
  143. <div id="potion-icon"></div>
  144. <div class="potion-inventory-count">1</div>
  145. </div>
  146. <div id="potion-description">
  147. <h2 id="potion-name">Unknown</h2>
  148. <ul id="potion-properties-list"></ul>
  149. </div>
  150. </div>
  151. <div id="brew-button-container">
  152. <div id="brew-button-inner-container">
  153. <button id="start-brew">Brew</button>
  154. </div>
  155. </div>
  156. </div>
  157. </div>
  158. <div id="shop-container">
  159. <div id="shop-panel">
  160. <div id="shop-header-container">
  161. <h1>Shop</h1>
  162. </div>
  163. <div id="shop-sides">
  164. <div id="shop-left-side">
  165. <div id="shop-potions-container">
  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 class="potion-container"><img src="./images/potion_unknown.png" />
  182. <div class="potion-inventory-count">1</div>
  183. </div>
  184. <div class="potion-container"><img src="./images/potion_unknown.png" />
  185. <div class="potion-inventory-count">1</div>
  186. </div>
  187. <div class="potion-container"><img src="./images/potion_unknown.png" />
  188. <div class="potion-inventory-count">1</div>
  189. </div>
  190. <div class="potion-container"><img src="./images/potion_unknown.png" />
  191. <div class="potion-inventory-count">1</div>
  192. </div>
  193. <div class="potion-container"><img src="./images/potion_unknown.png" />
  194. <div class="potion-inventory-count">1</div>
  195. </div>
  196. <div class="potion-container"><img src="./images/potion_unknown.png" />
  197. <div class="potion-inventory-count">1</div>
  198. </div>
  199. <div class="potion-container"><img src="./images/potion_unknown.png" />
  200. <div class="potion-inventory-count">1</div>
  201. </div>
  202. </div>
  203. </div>
  204. <div id="shop-right-side">
  205. <div id="shop-shelves-container">
  206. <div class="shop-shelf">
  207. <div class="stocked-potion-container"><img src="./images/potion_unknown.png" /></div>
  208. <div class="stocked-potion-container"><img src="./images/potion_unknown.png" /></div>
  209. </div>
  210. <div class="shop-shelf">
  211. <div class="stocked-potion-container"><img src="./images/potion_unknown.png" /></div>
  212. <div class="stocked-potion-container"><img src="./images/potion_unknown.png" /></div>
  213. </div>
  214. <div class="shop-shelf">
  215. <div class="stocked-potion-container"><img src="./images/potion_unknown.png" /></div>
  216. <div class="stocked-potion-container"><img src="./images/potion_unknown.png" /></div>
  217. </div>
  218. </div>
  219. </div>
  220. </div>
  221. <div id="shop-button-container">
  222. <div id="shop-button-inner-container">
  223. <button id="start-selling">Open Shop</button>
  224. </div>
  225. </div>
  226. </div>
  227. </div>
  228. <!-- Google tag (gtag.js) -->
  229. <script async src="https://www.googletagmanager.com/gtag/js?id=G-H4BYTFBKJT"></script>
  230. <script>
  231. window.dataLayer = window.dataLayer || [];
  232. function gtag() { dataLayer.push(arguments); }
  233. gtag('js', new Date());
  234. gtag('config', 'G-H4BYTFBKJT');
  235. </script>
  236. </body>
  237. </html>