{"id":19652870,"url":"https://github.com/xlpmg/zig-turret","last_synced_at":"2025-06-20T12:14:38.919Z","repository":{"id":228440897,"uuid":"774011918","full_name":"xLPMG/zig-turret","owner":"xLPMG","description":"2D turret defense game","archived":false,"fork":false,"pushed_at":"2024-04-29T16:27:53.000Z","size":10938,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-10T00:16:57.397Z","etag":null,"topics":["2d-game","defense-game","game-development","raylib","raylib-zig","shooter","shooter-game","shooter-mini-game","turret","zig","ziglang"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/xLPMG.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2024-03-18T19:40:01.000Z","updated_at":"2024-04-29T16:24:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"d1889927-b14d-4040-b694-4bc5599527ac","html_url":"https://github.com/xLPMG/zig-turret","commit_stats":null,"previous_names":["xlpmg/zig-platformer"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xLPMG%2Fzig-turret","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xLPMG%2Fzig-turret/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xLPMG%2Fzig-turret/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xLPMG%2Fzig-turret/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xLPMG","download_url":"https://codeload.github.com/xLPMG/zig-turret/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240961324,"owners_count":19885307,"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":["2d-game","defense-game","game-development","raylib","raylib-zig","shooter","shooter-game","shooter-mini-game","turret","zig","ziglang"],"created_at":"2024-11-11T15:12:24.388Z","updated_at":"2025-02-27T01:32:06.834Z","avatar_url":"https://github.com/xLPMG.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zig-turret\n\n... is a 2D turret defense game I made in order to learn ``zig``. For the graphics and audio I used raylib.\nThe goal is to shoot all enemies that come flying towards you. Once they manage to come close,\nthey will explode and inflict damage. You must try to survive as long as possible by killing them first.\nEach kill will reward you with cash which you can use to become stronger by upgrading your skills.\n\n\u003cimg width=\"500\" alt=\"gameplay\" src=\"https://github.com/xLPMG/zig-turret/assets/17238289/c1cb81db-d37a-4e41-9f01-7b77a08d6877\"\u003e\n\n# Controls\n\n| Key(s) | Function |\n| ------ | ------------- |\n| ``A``  | rotates your turret counter-clockwise  |\n| ``D``  | rotates your turret clockwise  |\n| ``SPACE`` | shoots projectiles. You may keep it pressed for continuous shooting |\n| ``1`` to ``5`` | can be used to upgrade skills. The GUI will show you which key corresponds to which stat |\n| ``H``  | toggle scope: a red line will appear that predicts the path of your bullet. Use it if you need to practice hitting enemies |\n| ``J``  | toggles color mode |\n| ``K``  | toggles auto-fire |\n\n## Demo\n\nhttps://github.com/xLPMG/zig-turret/assets/17238289/4bafb6d2-18b7-4640-b2e4-f9c16c931da2\n\nMake sure to check out the sound effects as well!\n\n\n## Stats\n\n![stats](https://github.com/xLPMG/zig-turret/assets/17238289/6c7c17b1-53c2-400f-905c-0338055f3394)\n\nYou may have noticed the stats system. Each time you kill an enemy, you will receive cash. \nIf you have enough for an upgrade, the GUI will provide you with the option to upgrade a specific stat \nof your turret by pressing the respective key.\n\n## Deployment\n\nIf you wish to build the binaries yourself, install zig and then run the build script using ``zig build run`` from within the top folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxlpmg%2Fzig-turret","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxlpmg%2Fzig-turret","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxlpmg%2Fzig-turret/lists"}