Live data from Hacker News

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

layer22.com

81–85 of 85 posts

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

#81
post #80
post #11

Last night I tried for maybe about 6 hours so many combinations of efforts to compile a C++, SDL3 and Lua program on Windows, with different IDEs, build systems, compilers, package managers etc. Finally I'm just giving up and using VS with CMake and vcpkg. The main problem is that there's way too many words on all those documentation pages. It would have taken 3 or 4 days to read them all, and maybe only 2 hours wort…

- VS full install - vcpgkg manifest file - done The problem is people pretending Windows is UNIX. And UNIX community got lucky Apple decided to go with NeXTSTEP and not BeOS, otherwise those shiny fruit laptops would also be their own thing.

Then how would you install quickjs? conan? download and copy the files manually?

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

#82
post #81
post #80

Earlier quoted context omitted.

- VS full install - vcpgkg manifest file - done The problem is people pretending Windows is UNIX. And UNIX community got lucky Apple decided to go with NeXTSTEP and not BeOS, otherwise those shiny fruit laptops would also be their own thing.

Then how would you install quickjs? conan? download and copy the files manually?

Why bother with conan, when vcpkg is already available and zero Python dependencies?

As for quickjs, it wasn't part of the comment, rather SDL3 and Lua.

> ...combinations of efforts to compile a C++, SDL3 and Lua program on Windows...

As such,

https://vcpkg.io/en/package/sdl3

https://vcpkg.io/en/package/lua

https://vcpkg.io/en/package/luajit

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

#84
post #61

Earlier quoted context omitted.

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.

Fair enough, maybe I'll include it after all. Unless I get hung up on the question of which physics engine to include. Endless possibilities make decisions difficult.

A good way to think about it is in my opinion, you making a choice saves all your future users having to make that choice — imagine the decision making time they will all save.

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

#85
post #82
post #81

Earlier quoted context omitted.

Then how would you install quickjs? conan? download and copy the files manually?

Why bother with conan, when vcpkg is already available and zero Python dependencies? As for quickjs, it wasn't part of the comment, rather SDL3 and Lua. > ...combinations of efforts to compile a C++, SDL3 and Lua program on Windows... As such, https://vcpkg.io/en/package/sdl3 https://vcpkg.io/en/package/lua https://vcpkg.io/en/package/luajit

Because I was using Lua as a hello world test to get it all working. Ultimately I wanted to use typescript though.
Post reply on HN