22.xhtml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * <https://y.st./>
  4. * Copyright © 2015 Alex Yst <mailto:copyright@y.st>
  5. *
  6. * This program is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <https://www.gnu.org./licenses/>.
  18. **/
  19. $xhtml = array(
  20. 'title' => 'Moving the spawn point in Minetyst',
  21. 'body' => <<<END
  22. <p>
  23. I pestered Cricket Support again today, but the representative I spoke with still had no information on why my order was canceled.
  24. The only thing she could tell me was that the website has &quot;limitations&quot;.
  25. I&apos;ve decided that I&apos;m going to pester Cricket support every day that I have time.
  26. They are going to figure out why they canceled my order or they are going to get tired of hearing from me.
  27. </p>
  28. <p>
  29. I started building a dynamic spawn point module for Minetyst that mimics the default spawn code in the engine, but allow me to move the epicenter of the random spawning locations.
  30. I thought it would be easy at first, but it seems the spawn code in the engine doesn&apos;t strictly rely on the state the map is in.
  31. Rather, it finds the ground level as it had been at map generation time.
  32. The only way I will be able to properly mimic the functionality of the default spawning mechanism is to decipher and port the C++ code to run it in Lua.
  33. The C++ code isn&apos;t obfuscated or anything, but I don&apos;t understand how most of the engine works, and I don&apos;t know how perlin noise works at all.
  34. </p>
  35. <p>
  36. My <a href="/a/canary.txt">canary</a> still sings the tune of freedom and transparency.
  37. </p>
  38. END
  39. );