Live data from Hacker News

Show HN: I made a 2D shoot 'em up game with Go, using Entity Component System

github.com

11–20 of 28 posts

Re: Show HN: I made a 2D shoot 'em up game with Go, using Entity Component System

#11
post #7

Beautiful game, thanks for sharing. Koblas's comment caught my eye and I will definitely be poking around the github actions code to learn how to compile Golang to WASM.

Thank you! Go makes it ridiculously easy: GOOS=js GOARCH=wasm go build -o web/game.wasm

This is true but the rendering engine has done the heavy lifting to map calls to the gpu correctly.

More build info here: https://ebitengine.org/en/documents/webassembly.html

Re: Show HN: I made a 2D shoot 'em up game with Go, using Entity Component System

#17
IMO you chose wrong tech for the job. It is very simple 2D game yet it starts 5s on my desktop and 20s on my phone. If I would to make a simple game and even simplest program starts 20s I would stop right there and choose different technology.

You probably did it to try Go, wasm and ECS and I understand that, but if you to make a game seriously, you should have stopped much earlier. In the early stage of the game development you should made 5-10 prototypes using different tech/frameworks and use the best one. I seriously don't see Go+wasm+ESC being the best one for this kind of game.

How can you not go insane if you have to wait 20s for every page refresh.

Re: Show HN: I made a 2D shoot 'em up game with Go, using Entity Component System

#18
post #17

IMO you chose wrong tech for the job. It is very simple 2D game yet it starts 5s on my desktop and 20s on my phone. If I would to make a simple game and even simplest program starts 20s I would stop right there and choose different technology. You probably did it to try Go, wasm and ECS and I understand that, but if you to make a game seriously, you should have stopped much earlier. In the early stage of the game dev…

You refresh rarely.

A lot of native games take longer than that to load.

Re: Show HN: I made a 2D shoot 'em up game with Go, using Entity Component System

#19
post #17

IMO you chose wrong tech for the job. It is very simple 2D game yet it starts 5s on my desktop and 20s on my phone. If I would to make a simple game and even simplest program starts 20s I would stop right there and choose different technology. You probably did it to try Go, wasm and ECS and I understand that, but if you to make a game seriously, you should have stopped much earlier. In the early stage of the game dev…

It's not a "serious" project. I chose Go specifically because I like the language (and Ebitengine is super fun to work with) and I like the idea behind ECS. I made games with Unity before, which you could consider a "serious" engine, but the fun of development is nowhere near what I experienced here.

Thinking about what would be the most efficient engine for the game would kill all the fun for me and the project wouldn't exist. :)

Post reply on HN