21 Followers
27 Following
52 Posts
@spiralganglion I said that too soon - started testing more after making it public and a lot was broken. Things are better now... and I added more examples. hopefully they are helpful.

(🔊) Made a little harness to livecode vscode extensions.

Here I change the extension (local to the project) to treat notes in parens as a chord.

No more compile, close, re-open workflow. And that's assuming you've created the extension to begin with. I often make one-off short-lived things and having to manage an extension is annoying.

Now I can just have a .vscode-sandbox.js in each project and make useful little one-off things.

@akkartik oh no! It's supposed to be fun. You can always just play on the main menu or find a game more aligned with what you're into.

I made a game for GMTK with the goal of making a game that I would spend longer playing than building it. Here's my first 1M point run. (you'll notice there are still visual bugs to fix!)

You can play it here: https://sqrz.app

Sound on! 🔊

Ruffle - Flash Emulator

Ruffle is a Flash Player emulator written in Rust. Ruffle targets both desktop and the web using WebAssembly.

@capital you can also do better than the smooth version here using a "lazy brush"

Something like:

```
dist = distance(newPoint, currentPoint)
dir = {
x = (newPoint.x - currentPoint.x) / dist,
y = (newPoint.y - currentPoint.y) / dist,
};
len = max(dist - sqrt(RADIUS), 0);
ease = 1 - pow(FRICTION, 1 / 60 * 10);
currentPoint = {
x = currentPoint.x + dir.x * len * ease,
y = currentPoint.y + dir.y * len * ease
};
```

This is a simplification of https://lazybrush.dulnan.net/

lazy-brush - smooth drawing with mouse

Draw smooth curves and straight lines with your mouse, finger or any pointing device.

lazy-brush
@capital Same style you did, but with erase, using SDF shader (27 lines): https://gist.github.com/jasonjmcghee/c3eaebf70cb1fdaeff821b7a38a3c057 and a smooth drawing experience using SDF lines (no repeated circles, but 86 lines) https://gist.github.com/jasonjmcghee/6469805157a6d61caa5680dab3c26895
Simplest draw + erase with sdf

Simplest draw + erase with sdf. GitHub Gist: instantly share code, notes, and snippets.

Gist

@capital you can do this quite easily with a shader using SDF instead and it's a similar amount of code. The canvas api is pretty nice. And erasing is just outputting an alpha of 0.

I wrote about it here (though it's webgl, but easy to port to love style glsl) https://jason.today/gi#a-drawable-surface

Building Real-Time Global Illumination: Part 1

Building Real-Time Global Illumination: Part 1

@twilliability @davepagurek this is really true. I've had projects that I put out there that had healthy organic growth but kind of fizzled because I haven't learned how to build / maintain open source community