{"id":20635813,"url":"https://github.com/orsinium-labs/wasm4go","last_synced_at":"2025-04-15T21:25:50.461Z","repository":{"id":223266737,"uuid":"758039892","full_name":"orsinium-labs/wasm4go","owner":"orsinium-labs","description":"Framework for making WASM-4 games with Go (and TinyGo).","archived":false,"fork":false,"pushed_at":"2024-03-29T16:13:56.000Z","size":46,"stargazers_count":28,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T01:34:14.607Z","etag":null,"topics":["emulator","framework","game-development","game-engine","gamedev","games","go","golang","tinygo","wasm","wasm4","webassembly"],"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/orsinium-labs.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":"2024-02-15T14:03:24.000Z","updated_at":"2025-03-11T12:53:47.000Z","dependencies_parsed_at":"2024-06-21T14:05:59.393Z","dependency_job_id":null,"html_url":"https://github.com/orsinium-labs/wasm4go","commit_stats":null,"previous_names":["orsinium-labs/wasm4go"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fwasm4go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fwasm4go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fwasm4go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fwasm4go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orsinium-labs","download_url":"https://codeload.github.com/orsinium-labs/wasm4go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249155830,"owners_count":21221668,"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":["emulator","framework","game-development","game-engine","gamedev","games","go","golang","tinygo","wasm","wasm4","webassembly"],"created_at":"2024-11-16T15:07:36.944Z","updated_at":"2025-04-15T21:25:50.438Z","avatar_url":"https://github.com/orsinium-labs.png","language":"Go","funding_links":[],"categories":["Gaming"],"sub_categories":["Instrumentation and control with sensors and actuators"],"readme":"# wasm4go\n\nFramework for making [WASM-4](https://wasm4.org/) games with Go (and [TinyGo](https://tinygo.org/)).\n\nUnlike the Go bindings that WASM-4 generates by default, this library is idiomatic Go with type safety, no direct memory manipulation and no byte operations. It provides a friendly API that is easy to read and hard to misuse.\n\nFeatures:\n\n* **Type-safe API** that is easy to use and hard to misuse.\n* **Zero-cost abstraction** in most of the cases, thanks to the crazy optimizations that TinyGo does.\n* **Helpful documentation** with links and examples.\n\n## Installation\n\n```bash\ngo get github.com/orsinium-labs/wasm4go\n```\n\n## Usage\n\n```go\npackage main\n\nimport \"github.com/orsinium-labs/wasm4go/w4\"\n\nfunc init() {\n   w4.Update = update\n}\n\nfunc update() {\n    w4.DrawColors.SetPrimary(w4.Primary)\n    w4.DrawText(\"Hello from TinyGo!\", w4.Point{X: 10, Y: 10})\n    if w4.Gamepad.X() {\n        w4.DrawColors.SetPrimary(w4.Dark)\n    }\n    w4.DrawText(\"Press X to blink\", w4.Point{X: 16, Y: 90})\n}\n```\n\nSee [examples](./_examples) for some real code and [documentation](https://pkg.go.dev/github.com/orsinium-labs/wasm4go/w4) to learn what's inside.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forsinium-labs%2Fwasm4go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forsinium-labs%2Fwasm4go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forsinium-labs%2Fwasm4go/lists"}