hen [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=46611 Fix for the NaN years ago Safari date bug on the BBS <p>Hey there!</p> <p>This has been bothering me for a while so I decided to try and figure out how to fix it. This is the same bug as these other posts:</p> <ul> <li><a href="https://www.lexaloffle.com/bbs/?tid=33266">https://www.lexaloffle.com/bbs/?tid=33266</a></li> <li><a href="https://www.lexaloffle.com/bbs/?tid=34698">https://www.lexaloffle.com/bbs/?tid=34698</a></li> </ul> <p>It looks like this:</p> <img style="margin-bottom:16px" border=0 src="/media/46611/BAD0BC15-DA12-4377-B1DA-7B1B02BC14EA.jpeg" alt="" /> <p>Safari doesn&rsquo;t accept strings like &ldquo;2021-01-24 11:43:00&rdquo; as parameters to the date constructor. But if that space in the middle is a &ldquo;T&rdquo; instead then it&rsquo;s fine. So I put together a gist showing a potential code change to fix the BBS post dates on Safari:</p> <p><a href="https://gist.github.com/hendotcat/a50d71b114a145f5dd95587ad2dad78b">https://gist.github.com/hendotcat/a50d71b114a145f5dd95587ad2dad78b</a></p> <p>Here&rsquo;s the effect of the replace() call in Safari. You can see how addding the &ldquo;T&rdquo; in the middle fixes it so that it no longer fails to parse.</p> <img style="margin-bottom:16px" border=0 src="/media/46611/F11CA3BF-FEAE-4C2B-A130-003C45689830.png" alt="" /> <p>And here&rsquo;s the same two lines of code in Chrome, showing that adding the replace() call doesn&rsquo;t affect the currently working date parsing there.</p> <img style="margin-bottom:16px" border=0 src="/media/46611/6961093B-1C45-45FC-8596-9BD4F616A9C8.png" alt="" /> <p>Would be really really nice to get this working, cos it&rsquo;s surprisingly disorienting having all the posts dated as &ldquo;NaN years ago&rdquo; every time you come to the BBS! Hope this helps get it fixed! 😇</p> https://www.lexaloffle.com/bbs/?tid=41269 https://www.lexaloffle.com/bbs/?tid=41269 Sun, 24 Jan 2021 11:00:16 UTC tailbone <p> <table><tr><td> <a href="/bbs/?pid=81116#p"> <img src="/bbs/thumbs/pico8_tailbone-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=81116#p"> tailbone</a><br><br> by <a href="/bbs/?uid=46611"> hen</a> <br><br><br> <a href="/bbs/?pid=81116#p"> [Click to Play]</a> </td></tr></table> </p> <h2>How to play</h2> <h3>Press x to jump</h3> <img style="margin-bottom:16px" border=0 src="/media/46611/tailbone_1.gif" alt="" /> <h3>Press x again to slam</h3> <img style="margin-bottom:16px" border=0 src="/media/46611/tailbone_2.gif" alt="" /> <h3>Hold x for more hangtime before a slam</h3> <img style="margin-bottom:16px" border=0 src="/media/46611/tailbone_7.gif" alt="" /> <h3>Chain slams to max out the combo bar</h3> <img style="margin-bottom:16px" border=0 src="/media/46611/tailbone_6.gif" alt="" /> <h2>About</h2> <p>This is inspired by the no internet dinosaur runner game in the Chrome browser, with a slight Tony Hawk's Pro Skater twist. Instead of avoiding the cactuses, the goal is to skate and destroy. So you keep your combo alive by staying off the ground, and every time you max out the combo bar you get a score bonus and the difficulty ratchets up. Things become quite frantic in the higher levels with the amount of meteors and lava you have to dodge.</p> <p>From time to time you'll see a meteor vanish prematurely due to some bug I just never found time to fix. There's also a lovely &quot;good&quot; bug in the jump code which means you can sneak in an extra jump+slam cycle after grinding on the power cables if you get the X input sequence just right. I kept this in because it feels right, like the electricity has charged your board up with an extra bit of double jump juice.</p> <p>I actually finished this more than two years ago and have been lurking around here on the forums ever since. Quite fun looking over the code just now, which at this point looks to me like it was written by a stranger. The game would really have benefited from some tooltips or something to teach the gameplay mechanics but you know how it is with that token limit! 😇</p> https://www.lexaloffle.com/bbs/?tid=39335 https://www.lexaloffle.com/bbs/?tid=39335 Mon, 24 Aug 2020 18:02:02 UTC