{"id":25498334,"url":"https://github.com/natuworkguy/nnos-arcade","last_synced_at":"2025-07-23T16:03:55.551Z","repository":{"id":261307319,"uuid":"883903661","full_name":"Natuworkguy/nnos-arcade","owner":"Natuworkguy","description":"A MakeCode project","archived":false,"fork":false,"pushed_at":"2025-01-24T20:00:12.000Z","size":3038,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-24T20:28:53.044Z","etag":null,"topics":["github-pages","github-pages-website","javascript","makecode","makecode-arcade","pages","phone"],"latest_commit_sha":null,"homepage":"https://natuworkguy.github.io/nnos-arcade/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Natuworkguy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-05T19:25:37.000Z","updated_at":"2025-01-24T20:00:15.000Z","dependencies_parsed_at":"2024-11-05T21:17:15.160Z","dependency_job_id":"dc226a48-1dd1-448e-8b07-280ff144b84a","html_url":"https://github.com/Natuworkguy/nnos-arcade","commit_stats":null,"previous_names":["natuworkguy/nnos-arcade"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Natuworkguy%2Fnnos-arcade","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Natuworkguy%2Fnnos-arcade/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Natuworkguy%2Fnnos-arcade/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Natuworkguy%2Fnnos-arcade/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Natuworkguy","download_url":"https://codeload.github.com/Natuworkguy/nnos-arcade/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239587246,"owners_count":19663892,"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":["github-pages","github-pages-website","javascript","makecode","makecode-arcade","pages","phone"],"created_at":"2025-02-19T02:42:38.157Z","updated_at":"2025-02-19T02:42:38.765Z","avatar_url":"https://github.com/Natuworkguy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":" \n\n\n# NNOS Arcade\n\nThis is a simple device interface using MakeCode JavaScript, featuring a lock screen, an unlock mechanism, and Apps. The main features include interactive buttons, sound effects, and lock/unlock behavior.\n\n## Features\n\n- **Device Lock and Unlock**: The device can be locked and unlocked with specific button combinations.The default is a+b \n- **Toons App Simulation**: Clicking the \"Toons\" button will play ambient computer noise.\n- **Custom Sprites and Icons**: Lock and app buttons are created as sprites, and the pointer can interact with them.\n  \n## Controls\n\n- **`A + B`**: Unlocks the device.\n- **Pointer**: Controlled with the directional pad to select icons.\n- **`A` Button**: Selects the currently highlighted icon (e.g., locking the device or opening the Toons app).\n\n## Code Breakdown\n\n### Sprite Kinds\n- **Pointer_Kind**: The sprite that the user controls to interact with on-screen elements.\n- **LockBtn_Kind**: The sprite for the lock button, which locks the device.\n- **toonsBtn_Kind**: The sprite for the Toons app button.\n- **nonInteractiveIcon**: Placeholder for future non-interactive icons.\n\n### Core Functions\n- **`lockDevice()`**: Locks the device, hides the icons, and changes the background to the lock screen.\n- **`unlockDevice()`**: Unlocks the device, creates the pointer, lock button, and Toons app button, and restores the background.\n- **`incomingCall()`**: Plays a ringtone to simulate an incoming call and allows the user to dismiss it by locking the device.\n- **`openToonsApp()`**: Plays continuous ambient computer noises to simulate an app running.\n- **`destroyIcons()`**: Removes the lock and Toons app buttons from the screen.\n\n### Event Handlers\n- **`onOverlap`**: Detects when the pointer overlaps with interactive elements (e.g., Lock button, Toons button) and triggers respective actions when the `A` button is pressed.\n\n## Setup Instructions\n\n1. Import the provided code into your MakeCode Arcade editor.\n2. Test the different button combinations to interact with the simulated device.\n\n## Use as Extension\n\nThis repository can be added as an **extension** in MakeCode.\n\n* open [https://arcade.makecode.com/](https://arcade.makecode.com/)\n* click on **New Project**\n* click on **Extensions** under the gearwheel menu\n* search for **https://github.com/natuworkguy/nnos-arcade** and import\n\n## To edit this project:\n\nTo edit this repository in MakeCode.\n\n* open [https://arcade.makecode.com/](https://arcade.makecode.com/)\n* click on **Import** then click on **Import URL**\n* paste **https://github.com/natuworkguy/nnos-arcade** and click import\n\n## Future Enhancements\n\n- Add more apps.\n- Expand the UI with non-interactive icons for aesthetics.\n\n## To get a demonstration of the software:\n\n- Go to https://natuworkguy.github.io/nnos-arcade/\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatuworkguy%2Fnnos-arcade","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatuworkguy%2Fnnos-arcade","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatuworkguy%2Fnnos-arcade/lists"}