Dec 14, 2023
Yesterday I turned a couple of my unused kids apps into just scripts you could run on Lua Carousel.
sum-grid.love
spell-cards.love (exercising my phone's microphone for the first time)
Both qualified successes. I didn't uncover any bugs, but the programs were 250 and 350 lines long, which starts to feel too long for my implementation of scrollbars.
permalink
* *
Dec 12, 2023
Huh, I just realized I've been doing
#DecemberAdventure all along and just hadn't thought about it like that.
Day 2
Day 4
Day 7
Day 9
Day 10
Day 11
Video showing a very simple game with just 4 objects running within Lua Carousel (day 9). When the code editor is visible interactions go to it, when the code editor is hidden, interactions go to the game.
permalink
* *
Dec 6, 2023
So Mu was on the advent of Qemu calendar yesterday, and I totally missed it.
Qemu Advent Calendar, day 4
permalink
* *
Dec 3, 2023
This bug I foisted on myself today was a real "things are not as they appear" puzzle.
bugfix: only check for settings menu when open
permalink
* *
Dec 2, 2023
I fixed several embarrassing bugs in Lua Carousel in the past week, including:
Buttons now flash to give you feedback that, e.g. the file was actually saved like you asked and you didn't fat-finger the wrong button.
Tapping didn't always move the cursor.
If you selected some text and hit 'clear', the app would crash.
Dragging on empty space above the settings menu selected text beneath.
Lots of jitteriness.
Please give it a try.
permalink
* *
Nov 27, 2023
I'd somehow never drawn a Hilbert curve before. Finally rectified this omission.
I released the hopefully final feature last night for my mobile-friendly REPL: file loading and saving.
Video showing a program running within Lua Carousel on a multitouch phone in portrait mode (slightly cropped to get around Mastodon restrictions)" title="Video showing a program running within Lua Carousel on a multitouch phone in portrait mode (slightly cropped to get around Mastodon restrictions)
From here on out I only want to work on UI polish and accessibility. Let's see how long it can stay running without incompatibilities that require upgrades.
permalink
* *
Nov 26, 2023
Achievement unlocked: I've built an app large enough that it crashes my programming environment that puts all the code on a spatial surface.
Or spread out enough, rather. It's not really about lines of code, just how much area the code occupies.
The problem: I do this snazzy initial animation (see video) that takes in the whole thing before zooming back in somewhere.
That animation works by drawing the whole surface to an in-memory canvas before transforming it. Turns out drawing to a canvas still uses the video card, and I don't have enough video RAM for a virtual "monitor" of this resolution.
permalink
* *
Nov 23, 2023
Lua Carousel: A lightweight programming environment for desktop and mobile devices
I just published this thing on itch.io.
source code
30-second video of my tool showing a code editor sharing the screen with the programs inside it. I demonstrate a few different programs with 2-3 dozen lines of code each:
A colorful pattern in a circle that moves where you tap, demonstrating interactivity
Pacman animating across the screen eating pellets.
I bounce between these programs to demonstrate that they start and pause as I do so.
permalink
* *
Nov 22, 2023
This responsive layout for my toolbar is the Sultan of Jank.
Lots of progress today. Remaining issues:
That question of how many colors to permit customizing.
UI for loading/saving files.
Video of me slowly resizing my app window to simulate different mobile device sizes. The full button toolbar requires around 800px to comfortably lay out. Buttons are flat black text on green, with just a black border to distinguish buttons from other copy. When the window is narrower than 800px, a new '>>' button for overflow items shows up to the left of the 'settings' button (which is always on the top right corner). Clicking on the overflow button drops down a jagged vertical 'menu', just an array of the remaining buttons. The menu remains open until a mouse click. As I slowly resize the window outward, more buttons move out of the overflow menu and into the main toolbar, until they all find room and the overflow button disappears. Finally, quickly shrinking the window shows that there are extremely narrow widths where the responsive layout breaks down. This is highly custom code for each button, and the code is a mess.
permalink
* *
Nov 21, 2023
Video of a settings menu containing a rudimentary font size slider (just a 1px line in black) As the mouse drags the slider around the font across the whole window increases/decreases.
Remaining issues with the toolbar:
Actually persisting settings across restart.
Still not responsive. But I have a plan for this.
Every color I use in the editor needs more sliders to customize :grimace: Right now there are 3 other colors: comments, scrollbars and those borders around the editor. Maybe I need a dropdown :grimace: Or just punt.
permalink
* *