3 ms·
Show HN: A components-based game engine in Swift
- Razengan 8y agoOP here. The engine is far from done and I have yet to finish making a full game with it, it’s at a point where I figured it might be useful to others looking for the same thing: working in an ECS architecture with Swift. Although some people have objected to the defilement of “pure” ECS by keeping logic inside components, I found this way easier to wrap my brain around (it’s more intuitive to have to write just one class for one “unit” of behavior, and I think it probably increases performance a little bit because system classes don’t have to keep calling component property accessors.) Even if Swift/game dev isn’t your thing, I could use any feedback re: the presentation, license, documentation (such as it is) and whether you find this a neat way to write games in.