Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Sorry for the late reply! I was under the impression that I had to actually have a M1 Mac to build for it, and that if an app can't run through Rosetta because of missing ARM code, then it wouldn't be possible to build otherwise. If that's not the case and I can just build for ARM Macs from an Intel Mac, and that would work for M1 Macs, then that's definitely doable. I'll look into it - thanks for the tip!

this might help with universal compilation https://dev.to/thewraven/universal-macos-binaries-with-go-1-16-3mm3

Any luck?

Hello, unfortunately not, actually.
I've tried building for ARCH64, but didn't get a good result on Github Actions with Mac OS 10.15 - I'll see if I can try with newer versions of MacOS, but fundamentally, it might be a matter of waiting for Github to support M1 Mac Runners (that's how I build MacOS applications).

Well darn. I think you're on the right path for newer versions as 10.15 is deprecated, maybe use `macos-latest` ? https://docs.github.com/en/actions/using-github-hosted-runners/about-github-host...

OK, I tried building using macOS 12 - can someone here try it on an M1 Mac and let me know if it works through Rosetta? Here's the link to the demo version.

unfortunately it’s a pure intel binary and Rosetta isn’t triggering for it

I forked your code repository and got it working on my M1. I had to edit some things in the veandco library as well as yours:

  • Used `brew install` to get all the sdl2_ libraries.
  • Used the 0.5.0 alpha of the veandco/go-sd2l library: `go get github.com/veandco/go-sdl2@v0.5.0-alpha.1`
  • Removing HINT_JOYSTICK_HIDAPI_CORRELATE_XINPUT from veandco/sdl/hints.go
  • Line 85 in veandco/sdl/sdl_ttf.go: use SDL_bool rather than int
  • Changing color assign in events and textrenderer from the sdl.Color8888 to color.Color
(1 edit)

Does this method still work? I tried it ish but even from command line I can't compile this thing.

How do I change the color thing btw? Haven't figured that one out yet.

(1 edit)

Heya Vox. So a lot of this has been fixed by SolarLune already. The one thing left that I have to for the code to compile is to change the version of go-sdl2 to the alpha version. The deprecated warnings can be ignored for now

(github.com/veandco/go-sdl2 v0.5.0-alpha.1)

Omg thank you!! I can now run it and try it out <3 It looked so attractive to me when I saw it on Steam. Would you know how one can make the resolution for it higher though? The window size seems to be too low as well as the resolution hmmm... Zooming out via the in-app controls hence doesn't do much for it.