{"id":15099928,"url":"https://github.com/adia-dev/sdl2-zig-demo","last_synced_at":"2026-01-06T19:04:42.683Z","repository":{"id":234742186,"uuid":"652272217","full_name":"adia-dev/sdl2-zig-demo","owner":"adia-dev","description":"Showcase of Zig and SDL2","archived":false,"fork":false,"pushed_at":"2023-06-11T16:20:39.000Z","size":1300,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T23:45:21.162Z","etag":null,"topics":["sdl2","zig","zig-lang"],"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/adia-dev.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}},"created_at":"2023-06-11T16:20:37.000Z","updated_at":"2023-06-11T16:23:26.000Z","dependencies_parsed_at":"2024-04-20T17:04:04.950Z","dependency_job_id":null,"html_url":"https://github.com/adia-dev/sdl2-zig-demo","commit_stats":null,"previous_names":["adia-dev/sdl2-zig-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adia-dev%2Fsdl2-zig-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adia-dev%2Fsdl2-zig-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adia-dev%2Fsdl2-zig-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adia-dev%2Fsdl2-zig-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adia-dev","download_url":"https://codeload.github.com/adia-dev/sdl2-zig-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245858878,"owners_count":20684057,"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":["sdl2","zig","zig-lang"],"created_at":"2024-09-25T17:41:18.101Z","updated_at":"2026-01-06T19:04:37.649Z","avatar_url":"https://github.com/adia-dev.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SDL2 Zig Demo\n\nThis repository contains an updated version of the SDL2 Zig Demo created by @andrewrk. The original repository can be found [here](https://github.com/andrewrk/sdl-zig-demo).\n\n## Demo\n\nCheck out the demo of the SDL2 Zig Demo in action:\n\n![demo](assets/demo.gif)\n\nThe demo showcases a simple application window created using SDL2 in Zig. The window allows user interaction and displays a red square that can be moved using arrow keys. Additionally, it renders text on the window to display information such as the position and speed of the square.\n\n## How to Build and Run\n\nTo build and run the SDL2 Zig Demo, follow these steps:\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/adia-dev/sdl2-zig-demo.git\n```\n\n\n2. Change into the project directory:\n\n```bash\ncd sdl2-zig-demo\n```\n\n3. Build the project:\n\n```bash\nzig build run\n```\n\nThis will compile the code and execute the resulting binary, launching the SDL2 Zig Demo window.\n\n## Prerequisites\n\nBefore running the SDL2 Zig Demo, make sure you have the following dependencies installed:\n\n- Zig compiler (version 0.11 or later (the one the project was built with: `0.11.0-dev.3384+00ff65357`))\n- SDL2 development libraries\n\nEnsure that you have the necessary dependencies installed before attempting to build and run the demo.\n\n## Contributing\n\nContributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadia-dev%2Fsdl2-zig-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadia-dev%2Fsdl2-zig-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadia-dev%2Fsdl2-zig-demo/lists"}