{"id":15722495,"url":"https://github.com/insality/shooting_circles","last_synced_at":"2026-03-16T21:02:28.585Z","repository":{"id":248399606,"uuid":"824280581","full_name":"Insality/shooting_circles","owner":"Insality","description":"Defold ECS game example","archived":false,"fork":false,"pushed_at":"2024-11-16T14:52:53.000Z","size":4791,"stargazers_count":35,"open_issues_count":9,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-15T01:07:02.644Z","etag":null,"topics":["defold","defold-game","ecs","example","game","lua"],"latest_commit_sha":null,"homepage":"https://insality.github.io/shooting_circles/","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Insality.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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},"funding":{"github":"insality","ko_fi":"insality","buy_me_a_coffee":"insality"}},"created_at":"2024-07-04T18:55:08.000Z","updated_at":"2025-04-03T02:30:59.000Z","dependencies_parsed_at":"2024-07-14T17:19:41.682Z","dependency_job_id":"1a6d6ac2-82aa-4be6-89b9-b0835800a2c0","html_url":"https://github.com/Insality/shooting_circles","commit_stats":null,"previous_names":["insality/shooting_circles"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Insality%2Fshooting_circles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Insality%2Fshooting_circles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Insality%2Fshooting_circles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Insality%2Fshooting_circles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Insality","download_url":"https://codeload.github.com/Insality/shooting_circles/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248986311,"owners_count":21194025,"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":["defold","defold-game","ecs","example","game","lua"],"created_at":"2024-10-03T22:08:08.966Z","updated_at":"2026-03-16T21:02:28.579Z","avatar_url":"https://github.com/Insality.png","language":"Lua","funding_links":["https://github.com/sponsors/insality","https://ko-fi.com/insality","https://buymeacoffee.com/insality"],"categories":[],"sub_categories":[],"readme":"![](media/logo.png)\n\n# Shooting Circles\n\nThis project was created for the [Explosion Community](https://forum.defold.com/t/community-challenge-explosions/77315) challenge, and it goes a bit beyond the initial scope.\n\nShooting Circles is a simple game example built using only the tiny-ecs library. It's a ECS-kind of implementation, where I have a systems, entities and a world. Systems have a states and external API. Levels are created as a collections and when spawned they will create a new entities.\n\n## Overview\n\n### Game Flow\nThe initial script is `/loader/loader.script`, which initializes all libraries and loads the game.collection.\nThe `/game/game.script` script creates a world, loads systems, and loads a level with level_loader_command.\nAll other logic is handled through the ECS systems, located in the `/systems` folder.\n\n### Systems\n- All systems are placed in the `/systems` folder.\n  - **System**: Filters entities by required components and processes them. It usually returns up to three sub-systems: system, system_command. Contains all system logic and events this system handling (in `postWrap` function).\n  - **System Command**: Describes an external API for the system with the \"system_command\" component. To spawn a command for the system, call `self.world.system_command:method_name()`. Awailable from all systems.\n- Systems can register components in Decore, so usually the registration placed in system files under system component annotation. Example: `transform_system` registers `transform` component with all default values. If they exists here, they will be used as defaults for all new components.\n```lua\ndecore.register_component(\"transform\", {\n\tposition_x = 0,\n\tposition_y = 0,\n\tposition_z = 0,\n\tsize_x = 1,\n\tsize_y = 1,\n\tscale_x = 1,\n\tscale_y = 1,\n\trotation = 0,\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsality%2Fshooting_circles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finsality%2Fshooting_circles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsality%2Fshooting_circles/lists"}