←back to thread

238 points jamesbvaughan | 8 comments | | HN request time: 0.643s | source | bottom
1. jasonjmcghee ◴[] No.44437770[source]
Hey nice - this stuff is so much fun to me. I've worked a number of experiments like this too, especially related to live coding. Love seeing it in the wild.

I built a small project where you can live-code Love2D. The running program updates in real time (no saving needed) and see all values update in real-time, via LSP.

https://github.com/jasonjmcghee/livelove

And also added the same kind of interactivity like a number slider and color picker that replace text inline, like yours (though via vs code extension: https://gist.github.com/jasonjmcghee/17a404bbf15918fda29cf69...)

Here's another experiment where I made it so you could "drag and drop" to choose a position for something by manipulating the editor / replacing a computed position with a static one, on keypress.

https://clj.social/@jason/113550406525463981

There's so much cool stuff you can do here.

replies(4): >>44437819 #>>44437887 #>>44438325 #>>44441131 #
2. madmod ◴[] No.44437819[source]
I love your project. I am making something with LSP and your code was a great example of what is possible.
replies(1): >>44437860 #
3. jasonjmcghee ◴[] No.44437860[source]
Glad it was useful! LSP is definitely under-utilized. It's great for the "malleable software" / small tools for yourself kind of stuff especially.
4. jamesbvaughan ◴[] No.44437887[source]
That's cool! I suspected that someone must have done something like this before.
5. KRAKRISMOTT ◴[] No.44438325[source]
Isn't autocad lisp powered?
replies(1): >>44442273 #
6. phatskat ◴[] No.44441131[source]
I’ve been wanting to get into game programming and was looking at Love2D. I don’t know much Lua outside of what I’ve picked up with NeoVim configs.

This looks like it could be a great way to get my feet wet - I don’t do well with math and physics programming, but I used to make things in Flash back in the day that were similar to the particles demo and being able to quickly change things and see the updates makes it a lot easier for me to grok. Thanks for sharing!

replies(1): >>44445598 #
7. ◴[] No.44442273[source]
8. jasonjmcghee ◴[] No.44445598[source]
Do it! It's a lot of fun.

Highly recommend adding code definitions https://github.com/LuaCATS/love2d

And getting the lua LSP.

It reminds me a lot of processing / p5js. So easy to get something fun up and running quickly.