←back to thread

238 points jamesbvaughan | 2 comments | | HN request time: 0.471s | source
Show context
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 #
1. 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 #
2. 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.