{"id":18019440,"url":"https://github.com/jadogg/blw4","last_synced_at":"2025-03-26T20:31:22.085Z","repository":{"id":63256455,"uuid":"566078749","full_name":"JaDogg/blw4","owner":"JaDogg","description":"WASM4 native runtime ported to 32blit (32blit SDK) ","archived":false,"fork":false,"pushed_at":"2022-11-17T14:42:41.000Z","size":88,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-22T10:35:18.815Z","etag":null,"topics":["32blit","wasm4"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JaDogg.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":"2022-11-14T23:21:41.000Z","updated_at":"2023-05-12T01:51:16.000Z","dependencies_parsed_at":"2022-11-15T23:53:16.529Z","dependency_job_id":null,"html_url":"https://github.com/JaDogg/blw4","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":"32blit/picosystem-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaDogg%2Fblw4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaDogg%2Fblw4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaDogg%2Fblw4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaDogg%2Fblw4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JaDogg","download_url":"https://codeload.github.com/JaDogg/blw4/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245731405,"owners_count":20663175,"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":["32blit","wasm4"],"created_at":"2024-10-30T05:10:34.953Z","updated_at":"2025-03-26T20:31:21.731Z","avatar_url":"https://github.com/JaDogg.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 32-Blit WASM4\r\n\r\n![](https://github.com/JaDogg/blw4/blob/main/screen-1.png?raw=true)\r\n![](https://github.com/JaDogg/blw4/blob/main/screen-2.png?raw=true)\r\n![](https://github.com/JaDogg/blw4/blob/main/screen-3.png?raw=true)\r\n![](https://github.com/JaDogg/blw4/blob/main/screen-4.png?raw=true)\r\n![](https://github.com/JaDogg/blw4/blob/main/screen-5.png?raw=true)\r\n![](https://github.com/JaDogg/blw4/blob/main/screen-6.png?raw=true)\r\n![](https://github.com/JaDogg/blw4/blob/main/screen-7.png?raw=true)\r\n![](https://github.com/JaDogg/blw4/blob/main/screen-8.png?raw=true)\r\n\r\n## What is this?\r\n\r\n* WASM4 fantasy console emulator for 32Blit.\r\n* Repo created using 32blit boilerplate\r\n\r\n## Controls\r\n\r\n| WASM4 Control | 32Blit Control  |\r\n|---------------|-----------------|\r\n| X             | X               |\r\n| Z             | Y               |\r\n| Up            | Up              |\r\n| Down          | Down            |\r\n| Left          | Left            |\r\n| Right         | Right           |\r\n| Mouse Left    | A               |\r\n| Mouse Right   | B               |\r\n| Mouse Middle  | Joystick Button |\r\n| Mouse Move    | Joystick        |\r\n| Select Game   | Reset           |\r\n\r\n\r\n## Possible Problems:\r\n\r\n* Possibly != 60FPS (Do not think this is possible to fix)\r\n* Possibly != 64KB RAM for WASM4 (Need to check in 32blit)\r\n* No net-play (Not sure about this)\r\n* Sound working but not at 60FPS :(\r\n    * Problem: should this be implemented as 40FPS or 60FPS?\r\n* No disk save/load support. (Can attempt to implement this)\r\n* Not part of original wasm4 github repo (At the moment I did not expect this to work at all, so I didn't fork it)\r\n    * Various changes cross files were done.\r\n\r\n## Usage\r\n\r\n* Copy the `blw4.blit` then `*.wasm` file to sd card.\r\n* You can find more carts at https://wasm4.org/play\r\n\r\n----------\r\n\r\n# Notes\r\n\r\n## Setting up SDKs\r\n\r\n### Installing cross-compiler and C library, sdl2\r\n\r\n```bash\r\nsudo pacman -S arm-none-eabi-gcc arm-none-eabi-newlib arm-none-eabi-binutils sdl2 sdl2_image sdl2_net\r\npython3 -m pip install 32blit\r\n```\r\n\r\n### Cloning SDKs\r\n\r\n```bash\r\n# I couldn't get the auto download work. So I cloned it to parent directory of this folder\r\ngit clone --recurse-submodules -j8 git@github.com:raspberrypi/pico-sdk.git\r\ngit clone --recurse-submodules -j8 git@github.com:pimoroni/picosystem.git\r\ngit clone --recurse-submodules -j8 git@github.com:32blit/32blit-sdk\r\ngit clone --recurse-submodules -j8 git@github.com:raspberrypi/pico-extras\r\n```\r\n\r\n### Cloning original WASM4 (You do not need this)\r\n\r\n```bash\r\ngit clone --recurse-submodules -j8 git@github.com:aduros/wasm4.git\r\n```\r\n\r\n---------\r\n\r\n# License\r\n\r\n```\r\nCopyright (c) Bruno Garcia\r\nCopyright (c) 2022 Bhathiya Perera\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted, provided that the above\r\ncopyright notice and this permission notice appear in all copies.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\r\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n```\r\n\r\n# Cart file\r\n\r\nhttps://wasm4.org/play/nyancat\r\nJake Ledoux\r\nhttps://creativecommons.org/licenses/by-nc-sa/4.0/\r\n\r\n# Init file system function\r\n\r\n```\r\nMIT License\r\n\r\nCopyright (c) 2020 Charlie Birks\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the \"Software\"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\nSOFTWARE.\r\n```\r\n\r\n# WASM3\r\n\r\n```\r\nMIT License\r\n\r\nCopyright (c) 2019 Steven Massey, Volodymyr Shymanskyy\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the \"Software\"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\nSOFTWARE.\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjadogg%2Fblw4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjadogg%2Fblw4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjadogg%2Fblw4/lists"}