{"id":22934146,"url":"https://github.com/greenthepear/anaxim","last_synced_at":"2025-08-12T17:32:13.297Z","repository":{"id":203509611,"uuid":"709753126","full_name":"greenthepear/Anaxim","owner":"greenthepear","description":"Cell-based civilization simulator made in Go","archived":false,"fork":false,"pushed_at":"2024-09-16T16:24:34.000Z","size":1153,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-16T21:42:16.428Z","etag":null,"topics":["cellular","giu","simulation","simulator"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/greenthepear.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-25T10:30:25.000Z","updated_at":"2024-09-16T16:24:37.000Z","dependencies_parsed_at":"2023-11-15T21:26:46.282Z","dependency_job_id":"7b3bb719-c847-404f-a76a-b59c6bc5b1ca","html_url":"https://github.com/greenthepear/Anaxim","commit_stats":null,"previous_names":["greenthepear/anaxi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenthepear%2FAnaxim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenthepear%2FAnaxim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenthepear%2FAnaxim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenthepear%2FAnaxim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/greenthepear","download_url":"https://codeload.github.com/greenthepear/Anaxim/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229699934,"owners_count":18109851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cellular","giu","simulation","simulator"],"created_at":"2024-12-14T11:38:40.009Z","updated_at":"2025-08-12T17:32:13.284Z","avatar_url":"https://github.com/greenthepear.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Report Card](https://goreportcard.com/badge/github.com/greenthepear/Anaxim)](https://goreportcard.com/report/github.com/greenthepear/Anaxim)\n![logo](./img/logo.png)\n**Anaxim** *(pronounced *a-NAK-sim*, named after the ancient Greek philosopher and cartographer Anaximander)* is a civilization simulator made in ~~Ebitengine~~ ~~Fyne~~ [giu](https://github.com/AllenDang/giu), with the main goal of making a visually appealing and interactive timeline of the world using a cell-based simulation.\n\n# State\nCurrently the \"game\" only features a basic migration simulation on a map where you can see global statistics, inspect information of any cell by clicking and control the speed.\n\n# Building\nTo build you need Go (1.22.0), a GCC compiler (for cgo) and depending on platform, some dependencies. Info below is mostly from the [giu readme](https://github.com/AllenDang/giu#install), which you'll need if you want to build on different platforms than Windows and Linux and **please refer to it if you have issues**.\n\n**Warning! `go build` will seem to hang for a while the first time you try to compile as it needs to build the graphics drivers using GCC. Also a compilation warning might pop up from a demo file of github.com/AllenDang/imgui-go for some reason, just ignore it.** *\"So much for fast Go compile times!\" well, technically it's not Go. Feel free to fork giu to work without cgo.*\n\n## Linux\n\n1. Install [Go](https://go.dev/doc/install)\n2. Install gcc\n3. Install graphics library header files \n    - Debian / Ubuntu: `sudo apt install libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libglx-dev libgl1-mesa-dev libxxf86vm-dev`\n    - Red Hat based: `sudo dnf install libX11-devel libXcursor-devel libXrandr-devel libXinerama-devel libXi-devel libGL-devel libXxf86vm-devel`\n4. Compile! (See warning above)\n\n        go build\n\n## Windows\n\n1. Install [Go](https://go.dev/doc/install)\n2. Install gcc\n    - Save yourself the trouble and get [TDM-GCC](https://jmeubank.github.io/tdm-gcc/download/). You want the 64+32-bit MinGW-w64 edition.\n4. Compile! (See warning above)\n\n        go build\n          \n\n# Running\n\nYou need to have the `Maps` directory in the same folder as the executable, at least with oldworld.png, as `./Maps/oldworld.png` is the default path to the map.\n\n    .\n    ├── Anaxim\n    └── Maps\n        └── oldworld.png\n\nTo change this run the program with a different `mappath` flag. This is explained below.\n\n## Flags\n\nOptionally, you can set flags from the command-line when launching Anaxim. They can be checked `./Anaxim -h`. For example:\n\n    -mappath string\n        Path to the map PNG file. (default \"./Maps/oldworld.png\")\n    -prerun int\n        Generations to simulate before launching, min 50\n\nSo `./Anaxim -mappath=./Maps/bigisland.png -prerun=20000` will prerun the simulation for 20,000 generations on a map generated from bigisland.png.\n\n## Map file\n\nThe PNG map file is converted to a map grid like this:\n- All pixels with RGB = [0,0,255] become water cells.\n- All other pixel become land cells.\n- Their habitability level is determined by (255-R)/255, so more red is less habitable.\n\n# Planned features\n- ~~Underlying world map~~\n- Tribes and countries\n- Wars and diplomacy\n- ~~Speed/pause controls~~\n- GPU acceleration with OpenCL? (scary!)\n- Interactivity\n- Stats and graphs!\n- ~~Custom maps~~ (and random maps?)\n- Map modes\n\n# License\nGPL-3.0 - have fun!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreenthepear%2Fanaxim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreenthepear%2Fanaxim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreenthepear%2Fanaxim/lists"}