{"id":16837886,"url":"https://github.com/m110/moonshot-rts","last_synced_at":"2025-04-11T05:14:40.427Z","repository":{"id":83187480,"uuid":"310080113","full_name":"m110/moonshot-rts","owner":"m110","description":"An RTS game made in Go for Github Game Off 2020","archived":false,"fork":false,"pushed_at":"2025-01-13T15:36:28.000Z","size":357,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T05:14:33.605Z","etag":null,"topics":["ebiten","game","githubgameoff","githubgameoff2020","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m110.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":"2020-11-04T18:04:48.000Z","updated_at":"2025-04-04T00:34:53.000Z","dependencies_parsed_at":"2024-06-20T04:28:10.845Z","dependency_job_id":"29295ba0-e9c7-42f9-813b-bcf89bf41a31","html_url":"https://github.com/m110/moonshot-rts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m110%2Fmoonshot-rts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m110%2Fmoonshot-rts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m110%2Fmoonshot-rts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m110%2Fmoonshot-rts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m110","download_url":"https://codeload.github.com/m110/moonshot-rts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248345268,"owners_count":21088245,"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":["ebiten","game","githubgameoff","githubgameoff2020","golang"],"created_at":"2024-10-13T12:19:21.365Z","updated_at":"2025-04-11T05:14:40.408Z","avatar_url":"https://github.com/m110.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Moonshot RTS\n\nThis is a game in development for [Github Game Off 2020](https://itch.io/jam/game-off-2020). Made in Go with [ebiten](https://github.com/hajimehoshi/ebiten).\n\nhttps://github.com/user-attachments/assets/b4b0df0c-69e5-4fe5-b286-82a1062105a1\n\n## Why Go?\n\nWhile I usually use Unity for game jams, I decided to try writing a game in Go this time.\n\n* It's fun to build a simple engine from scratch, even if it takes longer time.\n* Since it's GitHub's Game Off, I want this game to be fully open source.\n* While Unity is a complete platform, it feels bloated at times and I had a terrible experience using it together with git.\n* I hope the simplicity of Go's syntax can make it easier to understand the project for anyone looking to get into Go or gamedev.\n\n## Theme\n\n* It's a moonshot, because it's my first attempt at an RTS. 😅\n* Building an empire out of a small settlement is a moonshot as well.\n\n## Engine\n\nI use [ebiten](https://github.com/hajimehoshi/ebiten) library for drawing images and basic game loop.\n\nI'm trying to build a practical [Entity-Component-System](https://en.wikipedia.org/wiki/Entity_component_system) pattern.\nWhat I did so far is heavily inspired by [EngoEngine/ecs](https://github.com/EngoEngine/ecs). However, I took a bit\ndifferent approach with interfaces. This is still under heavy development, though. 🙂\n\nThe TL;DR version of ECS is:\n\n* The entire game is built out of **Entities**, **Components**, and **Systems**.\n* An **entity** is a container for **components** with a unique ID.\n* A **component** is a data structure, describing some set of common values.\n* A **system** is where the game logic lives for a particular area.\n\nFor example, there's `DrawingSystem` that draws sprites on the screen.\nIt requires an entity with `Drawable` (a sprite) and `WorldSpace` (a position) components.\n\n## Project structure\n\n* `internal/`\n    * `archetypes`\n    * `assets`\n    * `components`\n    * `engine`\n    * `game`\n    * `systems`\n\n## Game\n\n* Right now, my idea is a mix between Age of Empires style RTS, and Civilzation resource tiles\n* However, I started out focusing on the engine, so I'm not sure where this will go yet. 😀\n\n## Assets\n\nThis will possibly change, but right now:\n\n* [Medieval RTS from Kenney](https://kenney.nl/assets/medieval-rts)\n* [UI Pack: RPG Expansion from Kenney](https://kenney.nl/assets/ui-pack-rpg-expansion)\n* OpenSans font from Google\n\n## Running\n\n```\ngo run ./cmd/rts\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm110%2Fmoonshot-rts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm110%2Fmoonshot-rts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm110%2Fmoonshot-rts/lists"}