{"id":13817102,"url":"https://github.com/ttulka/2d-videogame-in-assemblyscript","last_synced_at":"2025-08-25T07:18:33.855Z","repository":{"id":43943444,"uuid":"380795199","full_name":"ttulka/2d-videogame-in-assemblyscript","owner":"ttulka","description":"Demo 2D videogame in AssemblyScript 🚀","archived":false,"fork":false,"pushed_at":"2021-09-21T19:04:01.000Z","size":943,"stargazers_count":18,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-06T18:06:18.944Z","etag":null,"topics":["2d","2d-game","assemblyscript","video-game","webassembly"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/ttulka.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}},"created_at":"2021-06-27T17:04:07.000Z","updated_at":"2024-01-12T10:15:05.000Z","dependencies_parsed_at":"2022-09-09T22:21:07.308Z","dependency_job_id":null,"html_url":"https://github.com/ttulka/2d-videogame-in-assemblyscript","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ttulka/2d-videogame-in-assemblyscript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttulka%2F2d-videogame-in-assemblyscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttulka%2F2d-videogame-in-assemblyscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttulka%2F2d-videogame-in-assemblyscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttulka%2F2d-videogame-in-assemblyscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ttulka","download_url":"https://codeload.github.com/ttulka/2d-videogame-in-assemblyscript/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttulka%2F2d-videogame-in-assemblyscript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272022515,"owners_count":24860207,"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","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","2d-game","assemblyscript","video-game","webassembly"],"created_at":"2024-08-04T06:00:33.689Z","updated_at":"2025-08-25T07:18:33.819Z","avatar_url":"https://github.com/ttulka.png","language":"TypeScript","funding_links":[],"categories":["Projects"],"sub_categories":["Games"],"readme":"# 2D Video Game in AssemblyScript\n\nA small demo 2D video game running in a web browser powered by WebAssembly.\n\n![Breadcrumb Lost](breadcrumb-lost_preview.gif)\n\n*Disclaimer*: This was never intented to be a real game. The purpose is to demonstrate programming games from scratch in AssemblyScript. \n\n**📖 Read the whole [tutorial on my blog](https://blog.ttulka.com/2d-video-game-in-assemblyscript-tutorial).**\n\nCheck out alternative technical approaches:\n\n- [Control of the game rendering loop within Wasm](https://github.com/ttulka/2d-videogame-in-assemblyscript/tree/requestAnimationFrame) ([blog post](https://blog.ttulka.com/animation-in-canvas-with-webassembly))\n- [Automatic inlining of image assets](https://github.com/ttulka/2d-videogame-in-assemblyscript/tree/inliner)\n- [Rendering and game controls in a text terminal](https://github.com/ttulka/2d-videogame-in-assemblyscript/tree/terminal-rendering)\n\n## Build\n\n### Install package\n\n```sh\nnpm install\n```\n\n### Compile to WebAssembly\n\n```sh\nnpm run asbuild:optimized -- --memoryBase 40000\n```\n\n## Run\n```sh\nnpx ws -p 1234\n```\n\nOpen `http://127.0.0.1:1234` in a web browser.\n\n## Play\n\nPlay online at https://ttulka.github.io/breadcrumblost/\n\nDesktop only.\n\n### Breadcrumb Lost\n\nIt is easy for children to follow breadcrumbs to get back home. But what about the poor breadcrumbs?!\n\nHelp a lost breadcrumb find its way home without getting wet or eaten.\n\n#### Controls\n\n- **UP** jump\n- **RIGHT** go right\n- **LEFT** go left\n\n## Develop\n\n### Convert images to AssemblyScript byte arrays\n\n```sh\nnode image2array.js assets/image.png \u003e assembly/assets/image.ts\n```\n\n## Copyright\n\nAssets taken from https://kenney.nl/assets/pixel-platformer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttulka%2F2d-videogame-in-assemblyscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fttulka%2F2d-videogame-in-assemblyscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttulka%2F2d-videogame-in-assemblyscript/lists"}