{"id":26658790,"url":"https://github.com/blitz-krieg-cmd/zs2","last_synced_at":"2025-07-15T05:34:47.451Z","repository":{"id":284093757,"uuid":"952355808","full_name":"blitz-krieg-cmd/zs2","owner":"blitz-krieg-cmd","description":"Application Framework for the PS2 written in Zig.","archived":false,"fork":false,"pushed_at":"2025-03-24T06:07:07.000Z","size":40,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T06:24:18.220Z","etag":null,"topics":["framework","gamedev","playstation","ps2","psx","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blitz-krieg-cmd.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":"2025-03-21T06:31:20.000Z","updated_at":"2025-03-24T06:07:11.000Z","dependencies_parsed_at":"2025-03-24T06:34:24.390Z","dependency_job_id":null,"html_url":"https://github.com/blitz-krieg-cmd/zs2","commit_stats":null,"previous_names":["blitz-krieg-cmd/zs2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blitz-krieg-cmd%2Fzs2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blitz-krieg-cmd%2Fzs2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blitz-krieg-cmd%2Fzs2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blitz-krieg-cmd%2Fzs2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blitz-krieg-cmd","download_url":"https://codeload.github.com/blitz-krieg-cmd/zs2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245440577,"owners_count":20615633,"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":["framework","gamedev","playstation","ps2","psx","zig","ziglang"],"created_at":"2025-03-25T10:16:44.277Z","updated_at":"2025-03-25T10:16:44.766Z","avatar_url":"https://github.com/blitz-krieg-cmd.png","language":"Zig","readme":"# ZS2 - Completely Work In Progress\nAn application framework for the PlayStation 2 written in Zig.\n\n## How to start?\n\n1. Add *ZS2* as your project's dependency\n\n   Add zs dependency to your build.zig.zon, with following command:\n    ```bash\n    zig fetch --save=zs git+https://github.com/blitz-krieg-cmd/zs2.git\n    ```\n\n2. Use *ZS2*'s build script to add build step\n\n    In your `build.zig`, add:\n    ```zig\n    const std = @import(\"std\");\n    const zs2 = @import(\"zs2\");\n\n    pub fn build(b: *std.Build) void {\n        const exe = zs2.createApplication(\n            b,\n            \"mygame\",\n            \"src/main.zig\",\n            .Development,\n        );\n\n        const install_cmd = b.addInstallArtifact(exe, .{});\n        b.getInstallStep().dependOn(\u0026install_cmd.step);\n    }\n    ```\n\n\n3. Write some code!\n\n    You may import and use zs2 now, here is a skeleton for your `src/main.zig`:\n    ```zig\n    const std = @import(\"std\");\n    const zs2 = @import(\"zs2\");\n\n    pub fn init(ctx: zs2.Context) !void {\n        // your init code\n    }\n\n    pub fn event(ctx: zs2.Context, e: zs2.Event) !void {\n        // your event processing code\n    }\n\n    pub fn update(ctx: zs2.Context) !void {\n        // your game state updating code\n    }\n\n    pub fn draw(ctx: zs2.Context) !void {\n        // your drawing code\n    }\n\n    pub fn quit(ctx: zs2.Context) void {\n        // your deinit code\n    }\n    ```\n\n## Influences and Reference Projects\n* [jok](https://github.com/Jack-Ji/jok) (MIT License)\n* [ps2sdk](https://github.com/ps2dev/ps2sdk) (Academic Free License 2.0)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblitz-krieg-cmd%2Fzs2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblitz-krieg-cmd%2Fzs2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblitz-krieg-cmd%2Fzs2/lists"}