4 ms·
I wonder if there is a SDL3 wrapper that comes with a scripting language[0], hot reload and build scripts for every major platform. Love2D seems close to that,
by raincole 1y ago
I wonder if there is a SDL3 wrapper that comes with a scripting language[0], hot reload and build scripts for every major platform.
Love2D seems close to that, but afaik it doesn't support SDL3 features like the new GPU API.
[0]: It's not like I'm allergic to C++, but I firmly believe when developing something that is mostly interactive, such as complex GUI or games, a language that is garbage collected and can be hot reloaded would be much more apt.
- pusewicz 1y agoTry https://dragonruby.org/ https://dragonruby.org/. It's great! Still on SDL2, but will migrate to SDL3 eventually. Code reload (because it uses MRuby) is just :chef-kiss:
- raincole 1y agoIt looks like Love2D, except you pay $50 to use Ruby instead of Lua (admittedly I think Ruby is a better language.) I haven't used DragonRuby though, so if my above snarky comment is off please point me out.
- pusewicz 1y agoVery often you can snatch free copies. Join the Discord. Just ask :)
- 90s_dev 1y agoAs someone who dreams of making a living selling software that I've poured years and years into, that comment makes me very sad.
- pusewicz 1y agoBut why?
- 90s_dev 1y agoWhy do I want to make money from my hard work? Or why am I sad when someone offers a way to bypass paying money for hard work to get something for free?
- fatihpense 1y agoI assumed the original developers might give free copies in the official discord
- pusewicz 1y agoThis.
- pusewicz 1y agoI meant that the author of DragonRuby is generous. And depending on your use case he might be willing to give you a free copy. Additionally, whenever there is a gamejam related to DragonRuby, he usually gives away free copies to anyone who wants to participate. For you to keep. Nobody said anything about bypassing paying money. Not sure what you were thinking.
- 90s_dev 1y agoTo be honest I was just not giving the benefit of the doubt to the comment I was replying to. I should practice that.
- python-b5 1y agoDragonRuby seems interesting, but being a paid product immediately rules it out for me. I've been working on my own similar, smaller framework, which is more work, but I believe it's valuable not to depend on a for-profit company for your work, if at all possible. Also, the attitude much of the wiki / promotional pages are written in for that framework runs me the wrong way for some reason. "Unity and GameMaker rot your brain"... are you kidding me? No they don't. You're still writing real code and solving real problems. They just have more systems in place you have to work within. I don't like the self-righteous attitude. It's fair to not want to go open source if that's your preference, but don't act like people who don't want to use closed-source software where possible are being unreasonable. I also don't see how what is effectively a Ruby wrapper for SDL3 is such an immensely complicated piece of engineering that it needs to cost as much as they're charging for it.
- pusewicz 1y agoIt’s not just a wrapper. There’s more to it than you might think. It’s easy to say „just” without spending time understanding what a tool does.
- 90s_dev 1y agoThat's what I'm working on, basically love2d but SDL3 and TS/JS (via QuickJS). And no box2d builtin, but easily importable via CDN.
- 90s_dev 1y ago... at least if I can get the simplest Visual Studio + CMake + vcpkg hello world working. Which I can't. This always happens every few years. It takes me about a week to get a C++ program compiling and running, and by the end of it, I've lost all motivation, forget how any of it works, and delete it all and move back to TypeScript/web stuff. At least that I know despite all its warts. [edit] figured it out Hello me from the future, googling this in a few years. It's actually really simple: just follow the same steps on that page you were on[1] except you HAVE TO run the `vcpkg new --application` and `vcpkg add port fmt` commands in the dev cmd prompt, you can't just add the file manually for some reason, even though that's all it seems like it's doing. [1] https://learn.microsoft.com/en-us/vcpkg/get_started/get-started-vs?pivots=shell-powershell https://learn.microsoft.com/en-us/vcpkg/get_started/get-star...
- 90s_dev 1y agoI can't do it. I can't work in Visual Studio. It's so unintuitive. I have to do this in VS Code.
- raincole 1y agoThat's my idea stack as well (I tried to build something like SDL2 + V8 at some point but ended up giving up...) If you have a repo/website set up please leave a link for me to follow :)
- 90s_dev 1y agoYeah sure https://github.com/sdegutis/minigamemaker https://github.com/sdegutis/minigamemaker placeholder.
- CJefferson 1y agoObviously you can do what you like, but I'd advise making sure box2d (or similar) is super easy. Bonus points if there is also a built in function for drawing box2d objects. I've often taught beginning game dev in a day, and with box2d in love2d you can very quickly make a wide selection of cool games, and while it's not perfect it makes it easy to get started making platforms, doing collisions, all sorts of things.
- krapp 1y agoYou can build a project linking SDL3 with Lua and have access to all of the features of SDL3, with the obvious caveat that you'll have to code the rest of the owl yourself, but it isn't difficult. I have a basic CMake script that I use for projects and it works fine. (also, obviously you can just run the Lua code locally and skip the build process altogether when developing.) I use LuaJIT though, and the FFI generator here[0]. [0]https://github.com/sonoro1234/LuaJIT-SDL3 https://github.com/sonoro1234/LuaJIT-SDL3