<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Get Info: #lua</title>
    <description>Posts tagged “lua” — Blog of independent game and app developer Matt Sephton. Featuring vintage Macintosh, game development, digital artwork, Japanese esoterica, video game reviews, hacks and tips, and much more.</description>
    <link>https://blog.gingerbeardman.com/tag/lua/</link>
    <atom:link href="https://blog.gingerbeardman.com/tag/lua/index.xml" rel="self" type="application/rss+xml"/>
    <pubDate>Mon, 29 Jun 2026 11:48:49 +0000</pubDate>
    <lastBuildDate>Mon, 29 Jun 2026 11:48:49 +0000</lastBuildDate>
    <generator>Jekyll v4.4.1</generator>

    
      
        <item>
          <title>Enhanced sfxr for Love2D</title>
          <description>&lt;p&gt;I’ve made a bunch of usability and quality of life changes to the &lt;a href=&quot;https://love2d.org/wiki/sfxr.lua&quot;&gt;sfxr.lua&lt;/a&gt; demo app.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;fix: getDirectoryItems (from a PR)&lt;/li&gt;
  &lt;li&gt;fix: off by one sample length error (from a PR)&lt;/li&gt;
  &lt;li&gt;fix: space bar was not playing the sound&lt;/li&gt;
  &lt;li&gt;fix: selected wave form was being ignored (sounds were always square wave)&lt;/li&gt;
  &lt;li&gt;fix: loaded wave form not updating the interface (but sound was playing correctly)&lt;/li&gt;
  &lt;li&gt;add: clone method added to sfxr.lua&lt;/li&gt;
  &lt;li&gt;add: history form with list of previous sounds, save current, and undo/redo&lt;/li&gt;
  &lt;li&gt;add: “play on changes” so that any time you adjust a sound it plays automatically&lt;/li&gt;
  &lt;li&gt;add: keyboard navigation in file picker (A–Z: jump to files, Enter: choose, Esc: close picker)&lt;/li&gt;
  &lt;li&gt;add: window title reflects the most recent loaded/saved file&lt;/li&gt;
  &lt;li&gt;add: window title and filename reflects last operation&lt;/li&gt;
  &lt;li&gt;add: file selector shows data directory path&lt;/li&gt;
  &lt;li&gt;add: unified save directory across platforms&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can get it at: &lt;a href=&quot;https://gingerbeardman.itch.io/enhanced-sfxr-for-love2d&quot;&gt;gingerbeardman.itch.io/enhanced-sfxr-for-love2d&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;At some point I’ll fork the project on GitHub and file some PRs with my changes, but the repo for it seems very dead so I’ll wait until I hear back from the owner. Source code is at the above link.&lt;/p&gt;

&lt;p class=&quot;tofigure&quot;&gt;&lt;img src=&quot;https://cdn.gingerbeardman.com/images/posts/sfxr-lua.png&quot; alt=&quot;IMG&quot; title=&quot;“Enhance!”&quot; /&gt;&lt;/p&gt;
</description>
          <author>by Matt Sephton</author>
          <pubDate>Tue, 11 Mar 2025 18:23:00 +0000</pubDate>
          <link>https://blog.gingerbeardman.com/2025/03/11/enhanced-sfxr-for-love2d/</link>
          <guid isPermaLink="true">https://blog.gingerbeardman.com/2025/03/11/enhanced-sfxr-for-love2d/</guid>
        </item>
      
    
      
        <item>
          <title>Slugs on a Cube: interactive animation</title>
          <description>&lt;p&gt;Japhy Riddle makes art, music, films, and animations. He’s also a retro technology enthusiast. Naturally, he combines all these skills and interests into wonderful creative output! I follow Japhy on social media and love his high quality videos and animations. &lt;a href=&quot;https://www.youtube.com/channel/UCKeTCCYBg0CFrFHm2nxx_rQ&quot;&gt;Check him out on YouTube&lt;/a&gt;!&lt;/p&gt;

&lt;h2 id=&quot;voxel-slugs-traversing-an-invisible-cubes-edges&quot;&gt;Voxel slugs traversing an invisible cube’s edges&lt;/h2&gt;

&lt;p&gt;A few of days ago a new animation of his popped up: &lt;a href=&quot;https://www.youtube.com/watch?v=0gEHldnSH08&quot;&gt;it shows three coloured slugs moving around the edge of an invisible cube&lt;/a&gt;, positioned and directed so that they never quite touch each other! Japhy created the animation by printing out each frame and combining them onto the final result, leaning into the print offset registration errors that are so lovely.&lt;/p&gt;

&lt;lite-youtube style=&quot;aspect-ratio: 16/9;&quot; videoid=&quot;0gEHldnSH08&quot; params=&quot;start=0&amp;amp;modestbranding=2&quot;&gt;
&lt;/lite-youtube&gt;

&lt;h2 id=&quot;interactive-version&quot;&gt;Interactive version&lt;/h2&gt;

&lt;p&gt;I thought it would be fun to create an interactive version of the animation, and I chose to do it in LÖVE (aka Love2D, though I am doing 3D rendering in software). I stopped short of imitating the print errors, but that would be possible by drawing and compositing in the same way that Japhy did it. Here it is:&lt;/p&gt;

&lt;lite-youtube style=&quot;aspect-ratio: 16/9;&quot; videoid=&quot;1PK0K_CsJPU&quot; params=&quot;start=0&amp;amp;modestbranding=2&quot;&gt;
&lt;/lite-youtube&gt;

&lt;h2 id=&quot;threes-a-crowd&quot;&gt;Three’s a crowd&lt;/h2&gt;

&lt;p&gt;I spoke with Japhy and we discussed how possible it might be to maximise the number of slugs. If they’re six cubes long there could be 4 of them on the cube rather than 3. So, with the aid of my interactive and controllable version of the animation, I figured that out and added it. If the slugs are shorter then more of them can wander around the cube, and similarly if the cube is larger. But those are challenges for another day! I might even make a screen saver of this at some point.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://cdn.gingerbeardman.com/images/posts/voxel-slugs-banner.png&quot; alt=&quot;IMG&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;download&quot;&gt;Download&lt;/h2&gt;

&lt;p&gt;You can download it (as .love, macOS .app, or Windows .exe) and play around with the animation yourself. There are a bunch of hot keys that modify the cube in various ways. Have fun!&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://gingerbeardman.itch.io/voxel-slugs&quot;&gt;gingerbeardman.itch.io/voxel-slugs&lt;/a&gt;&lt;/p&gt;

</description>
          <author>by Matt Sephton</author>
          <pubDate>Thu, 16 Jan 2025 17:43:00 +0000</pubDate>
          <link>https://blog.gingerbeardman.com/2025/01/16/slugs-on-a-cube-interactive-animation/</link>
          <guid isPermaLink="true">https://blog.gingerbeardman.com/2025/01/16/slugs-on-a-cube-interactive-animation/</guid>
        </item>
      
    

  </channel>
</rss>
