A 2D puzzle game in Go using Fyne
Last month I wrote Minesweeper written in Go using Fyne. It was a port of the Ebiten game engine implementation to desktop using the Fyne GUI library. During the implementation I ran into 3 problems that I eventually solved. In this post I’ll explain what they were and how I solved them. Source code: https://github.com/mevdschee/fyne-mines 1: MinSize of container without layout Fyne can use a (JWT-like) borderlayout, but you can also freely place your controls (or “widgets” as Fyne calls them) using a container without a layout. To set the size of this container you can put this container in a a stack container together with an image of a certain (minimum) size. ...