{"by":"cookiengineer","descendants":16,"id":46436128,"kids":[46437328,46437687,46437057,46453896,46437138],"score":36,"text":"I used the time over Christmas and in between the years to redesign my website.<p>This time I decided to make it in the theme of an evil Sith Lord that commands the Galactic Cookie Empire, because I found my previous cookie consent game a bit boring after a while.<p>Here&#x27;s the website&#x27;s welcome page and the cookie consent game: <a href=\"https:&#x2F;&#x2F;cookie.engineer&#x2F;index.html\" rel=\"nofollow\">https:&#x2F;&#x2F;cookie.engineer&#x2F;index.html</a><p>(the cookie consent game isn&#x27;t started on any other page of my website, only on the welcome page)<p>I also made a &quot;making of&quot; weblog article series, in case you&#x27;re interested in the development process and how I implemented it and what kind of troubles I went through already:<p>- Making of the Game: <a href=\"https:&#x2F;&#x2F;cookie.engineer&#x2F;weblog&#x2F;articles&#x2F;making-of-my-website-part-1.html\" rel=\"nofollow\">https:&#x2F;&#x2F;cookie.engineer&#x2F;weblog&#x2F;articles&#x2F;making-of-my-website...</a><p>- Making of the Avatar: <a href=\"https:&#x2F;&#x2F;cookie.engineer&#x2F;weblog&#x2F;articles&#x2F;making-of-my-website-part-2.html\" rel=\"nofollow\">https:&#x2F;&#x2F;cookie.engineer&#x2F;weblog&#x2F;articles&#x2F;making-of-my-website...</a><p>- Debuggers to toy around with: <a href=\"https:&#x2F;&#x2F;cookie.engineer&#x2F;design&#x2F;consent&#x2F;index.html\" rel=\"nofollow\">https:&#x2F;&#x2F;cookie.engineer&#x2F;design&#x2F;consent&#x2F;index.html</a><p>It &quot;should&quot; work on modern browsers. I tested it on Firefox on Linuxes, Chrome&#x2F;Chromium on Linuxes, and Safari on Macbook. Don&#x27;t have an iPhone so I can&#x27;t test that, but my two old Android phones were also working fine with the meta viewport hack (I can&#x27;t believe this is still the &quot;modern&quot; way to do things after 15 years. Wtf).<p>Best experience is of course with a bigger display. On smaller screen sizes, the game will use a camera to zoom around the game world and follow the player&#x27;s spaceship. Minimum window width is 1280 pixels for no camera, and I think 800 pixels to be playable (otherwise the avatar gets in the way too much in the boss fights).<p>Oh, there&#x27;s also a secret boss fight that you can unlock when you toy around with the Dev Tools :)<p>What&#x27;s left to do on the avatar animation side:<p>- I have to backport CMUdict to JavaScript &#x2F; ECMAScript. That&#x27;s what I&#x27;m working on right now, as I&#x27;m not yet satisfied with the timings of the phonemes. Existing tools and pipelines that do this in python aren&#x27;t realtime, which leads to my next point.<p>- I want to switch to using the &quot;waveform energy detection&quot; and a zero cross rate detector to time phonemes more correctly. I believe that changes in waveforms and their structures can detect differences in phonemes, but it&#x27;s a gut feeling and not a scientific fact. Existing phoneme animation papers were kind of shit and broken (see my making of article 2). The phoneme boundary detector is highly experimental though and is gonna need a couple weeks more time until it&#x27;s finished.<p>That&#x27;s it for now, hope you gonna enjoy your stay on my website and I hope you gonna have fun playing the Cookie Consent Game :)<p>Oh, also, because it might not be obvious: No LLMs were used in the making of this website. Pretty much everything is hand-coded, and unbundled and unminified on purpose so visitors can learn from the code if they want to.<p>~Cookie","time":1767118117,"title":"Show HN: I remade my website in the Sith Lord Theme and I hope it's fun","type":"story","url":"https://cookie.engineer/index.html"}