3 ms·
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
by jasonjmcghee 1y ago
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 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/17a404bbf15918fda29cf69b8fdfd9af 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 https://clj.social/@jason/113550406525463981
There's so much cool stuff you can do here.
- phatskat 1y agoI’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!
- jasonjmcghee 1y agoDo it! It's a lot of fun. Highly recommend adding code definitions https://github.com/LuaCATS/love2d 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.
- madmod 1y agoI love your project. I am making something with LSP and your code was a great example of what is possible.
- jasonjmcghee 1y agoGlad it was useful! LSP is definitely under-utilized. It's great for the "malleable software" / small tools for yourself kind of stuff especially.
- jamesbvaughan 1y agoThat's cool! I suspected that someone must have done something like this before.
- KRAKRISMOTT 1y agoIsn't autocad lisp powered?
- deleted 1y ago[deleted]