Live data from Hacker News

Swift and the Cute 2d game framework: Setting up a project with CMake

layer22.com

51–60 of 85 posts

Re: Swift and the Cute 2d game framework: Setting up a project with CMake

#51

Earlier quoted context omitted.

You can use fixed time step. Choice is yours.

What's funny is that searching for "cute framework fixed timestep" in Google points to this Hacker News thread as the first result. What I would have wanted to find is this page: https://randygaul.github.io/cute_framework/#/topics/game_loo...

LOL

Re: Swift and the Cute 2d game framework: Setting up a project with CMake

#52

Earlier quoted context omitted.

You can use fixed time step. Choice is yours.

What's funny is that searching for "cute framework fixed timestep" in Google points to this Hacker News thread as the first result. What I would have wanted to find is this page: https://randygaul.github.io/cute_framework/#/topics/game_loo...

Very sorry about that :D

Re: Swift and the Cute 2d game framework: Setting up a project with CMake

#54
post #32

Earlier quoted context omitted.

I agree. I used chatgpt to write a makefile to compile sokol+Tracy. It's a pretty solid, generic makefile. But "build system complexity" pushed me away from sdl, magnum graphics and bgfx into the arms of sokol. And I'm a 10+ year gamedev. Out of all of c++'s sins, the lack of a solid integrated build system is the one that bites me the most.

My theory is that good C++ devs haven't yet made a simple yet powerful build system because they're too busy making lots and lots of money writing enterprise C++.

Visual Studio + MSBuild is simple if you're okay with IDEs

Re: Swift and the Cute 2d game framework: Setting up a project with CMake

#56
post #29

Earlier quoted context omitted.

As someone who dreams of making a living selling software that I've poured years and years into, that comment makes me very sad.

But why?

Why 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?

Re: Swift and the Cute 2d game framework: Setting up a project with CMake

#57

Earlier quoted context omitted.

Since it uses SDL3, it should be able to do more than 2D, right? Last time I checked SDL3 wraps around a lot of GPU API that you can pretty much do whatever you can do with WebGPU.

Yeah. It's just tailored for 2D gamedev. Cute uses the new SDL3 GPU API internally. Shaders and sprite batching, automatic sprite atlases etc. that Cute provides is just very specific to 2D games.

2d is the ideal for gamedev, always has been. I was so sad when Mario 64 came out and they moved on from Super Mario World's perfection. Fortunately the world is coming back to its senses with games like Animal Well.

Re: Swift and the Cute 2d game framework: Setting up a project with CMake

#58
post #28

Earlier quoted context omitted.

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 ho…

That's what I'm working on, basically love2d but SDL3 and TS/JS (via QuickJS). And no box2d builtin, but easily importable via CDN.

Obviously 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.

Re: Swift and the Cute 2d game framework: Setting up a project with CMake

#60
post #34

Thanks for sharing a simple setup that avoids SwiftPM. It is nice to have more options. Swift has to shed the perception that it only works on apple platforms. I've found the the C++ interop to be pretty good for my computer vision use cases.

What’s the advantage to avoiding SwiftPM? Is it just for simplicity or are there other advantages?
Post reply on HN