Go 2D

Open-source Go projects categorized as 2D

Top 14 Go 2D Projects

  • gg

    Go Graphics - 2D rendering in Go with a simple API.

  • Project mention: I wrote a tool in Go to write Sequence Diagrams in Go | news.ycombinator.com | 2023-04-27

    The author explicitly says:

    > You don't need to download any dependencies such as plantUML or Graphviz, which is what most of the tools out there require and what was also my motivation to start this project. go-uml is using a 2D graphics engine written 100% in Go https://github.com/fogleman/gg

    So no, this is not a solution for these requirements.

  • Oak

    A pure Go game engine (by oakmound)

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • orb

    Types and utilities for working with 2d geometry in Golang

  • Project mention: Create GPS Test Data In Go | dev.to | 2024-04-24

    I've left the following code as a documented single function to make it more readable. And I've used the orb package to hide away a lot of the more common calculations and types (orb).

  • go-geom

    Package geom implements efficient geometry types for geospatial applications.

  • software

    DeepValueNetwork is a peer-to-peer database network managed and hosted by its community. It contains a browser to render 2D/3D content and allow the creation of scripted applications built on top of the p2p database network and managed by its creators, without intermediary platform. (by deepvalue-network)

  • aaaaxy

    A nonlinear 2D puzzle platformer taking place in impossible spaces.

  • Project mention: Making Games in Go for Absolute Beginners | news.ycombinator.com | 2023-11-24

    > Your game looks great, congrats on your progress! I especially enjoyed how the zoom works when you're leaving/arrive planets, and the unique propulsion system (also, the anchor made me giggle!).

    Thank you. Feedbacks are very much appreciated. There is still a long was until an eventual release, but it's very fun to work on it.

    > I tend to not need many, so I'd be curious if you can recall any structure in particular which you couldn't find? No biggie if not.

    I had trouble finding basic structures like sets or linked lists, as much as more specific ones like R-tree, M-tree, KD-tree quad-tree or specific kinds of tries.

    When quickly searching on Google, there are pretty much always some results, but when looking at the details it's not that great. Most of the packages have some kind of flaw that was a deal-breaker for me. Most common ones are:

    - The package is something developed by one guy 4 years ago, and has pretty much no stars and is abandoned

    - The structure is somehow backed by the native `map`, meaning that it has the same randomized iteration order

    - There is some kind of logic to try to handle multi-threading, mixed-up with the data structure's logic. Often with mutexes/locks, thus killing the performance. My game is pretty much only mono-thread, and I just need something simple and that does not care about synchronization.

    - The structure is not generic, but only uses `interface{}`

    - The structure lacks tests or have unreadable code made of 1-letter variables

    > I'm not a game dev, but I've seen some larger games such as https://github.com/divVerent/aaaaxy/tree/main/internal (if you haven't played it before—do it!) which seems to be able to place everything into separate packages without issue, so perhaps there's something to gleam from their architecture?

    Thanks for the reference. After looking at it, is seems to me that they are creating really tiny packages made of one or two files. I don't want my codebase to end-up with thousands of 1-file packages, it does not seem very maintainable. I want to keep having packages with clearly defined purposes and domains.

    > Hash map iteration shouldn't be sorted in _any_ language (here's Rust, for example https://play.rust-lang.org/?version=stable&mode=debug&editio... (Python makes it _appear_ as if dicts are sorted hash maps, but that's only because it doesn't only use a hash table, but a vector as well (same as you'd have to do in Go))), otherwise it would cause both portability and security (https://github.com/golang/go/issues/2630) issues. You should probably be using a b-tree if you aren't willing to sort it yourself.

    I think that you didn't understand my message (or I didn't explain clearly enough). I do not need the items to be sorted, I need the iteration order to be consistent.

    Let's say that I insert A, B and C in a map, then want to iterate on it. I will get an unspecified order, maybe ABC, maybe CBA, maybe BAC, which does not matter to me. However, in any language, this order will be consistent across all future iterations unless the data is changed. This is a natural property of any data structure. So if I got CBA in the first loop, I will also get CBA in the second and third loops.

    In golang this is not the case because they actively inserted a random order. It means that even if the data does not change, I may get CBA in the first iteration, but BAC in the second, then ABC... Which created a ton of issues for me.

    > If you don't care about unloading https://github.com/pkujhd/goloader

  • tile

    Tile is a 2D grid engine, built with data and cache friendly ways, includes pathfinding and observers.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • simplefeatures

    Simple Features is a pure Go Implementation of the OpenGIS Simple Feature Access Specification

  • canvas

    Draw on an HTML 2D canvas in a web browser from a server program using WebSockets. (by fzipp)

  • gridder

    A Grid based 2D Graphics library (by shomali11)

  • go-particles

    Particles simulation built with Go and WebAssembly

  • mirkwood_engine

    2D virtual tabletop prototype

  • Physix-go

    A simple Physics engine in GoLang

  • Project mention: Golang >>> Rust 🔥[Prediction] | dev.to | 2024-04-05

    For 1.5 months i am working on a physics engine in golang (pls star i need support ♥ , link) , and after that , i love golang

  • tech

    Toolkit for the Go programming language. (by qlova)

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Go 2D related posts

Index

What are some of the best open-source 2D projects in Go? This list will help you:

Project Stars
1 gg 4,272
2 Oak 1,507
3 orb 831
4 go-geom 781
5 software 326
6 aaaaxy 203
7 tile 137
8 simplefeatures 117
9 canvas 89
10 gridder 73
11 go-particles 47
12 mirkwood_engine 20
13 Physix-go 15
14 tech 7

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com