{"id":16857111,"url":"https://github.com/maxwellito/tetrispad","last_synced_at":"2025-08-23T04:09:40.793Z","repository":{"id":74589389,"uuid":"77348382","full_name":"maxwellito/tetrispad","owner":"maxwellito","description":"Use the Novation Launchpad to play Tetris","archived":false,"fork":false,"pushed_at":"2019-11-26T14:16:36.000Z","size":71,"stargazers_count":30,"open_issues_count":3,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-08T02:43:42.659Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://maxwellito.github.io/tetrispad/","language":"JavaScript","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/maxwellito.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":"2016-12-26T00:41:42.000Z","updated_at":"2024-07-02T01:42:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"c23d58dc-ad79-4f84-a8aa-c2ab66d6e6e1","html_url":"https://github.com/maxwellito/tetrispad","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maxwellito/tetrispad","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxwellito%2Ftetrispad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxwellito%2Ftetrispad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxwellito%2Ftetrispad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxwellito%2Ftetrispad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxwellito","download_url":"https://codeload.github.com/maxwellito/tetrispad/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxwellito%2Ftetrispad/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271740725,"owners_count":24812642,"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-23T02:00:09.327Z","response_time":69,"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":[],"created_at":"2024-10-13T14:06:45.604Z","updated_at":"2025-08-23T04:09:40.762Z","avatar_url":"https://github.com/maxwellito.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TetrisPad\n\nPlug your Novation Launchpad and [PLAY!](http://maxwellito.github.io/tetrispad/)\n\nSingle page app using the WebMIDI API to use the [Novation Launchpad](https://global.novationmusic.com/launch/launchpad-mini) as a screen for a Tetris.\n\n\u003ca href=\"https://twitter.com/mxwllt/status/819245451270615040\"\u003e\n  \u003cimg alt=\"Demo of Tetrispad\" src=\"https://raw.githubusercontent.com/maxwellito/tetrispad/master/assets/live.jpg\" width=\"480\"\u003e\n\u003c/a\u003e\n\n\n\n## Controls\n\n- `←`, `→`, `↓`: Move the current block\n- `a`, `s`: Rotate the current block\n- `spacebar`: Pause the game\n\n## Code structure\n\nThe approach is quite classic, it's OOP.\n\n- `Controller` class simulate the controller. It listens events from the keyboard to format and dispatch events to who needs it.\n- `Launchpad` class wait for the Launchpad to be available on the MIDI API and allow to send/receive messages.\n- `Grid` class is a wrapper to manages the LEDs of the Launchpad. The point of it is to facilitate the LEDs controls and reduce the amount of the messages to send the Launchpad.\n- `Game` class contain the entire Tetris game logic.\n\n\n## Contributors\n\nAny crazy ideas are welcome (as long as your help :)\n\nPlease don't ask to setup a Webpack+Babel+WhatsoEver.. The Midi API is only accessible on modern browsers and these ones should be ES6 ready: feel again this pleasure to work on a repo without build system, it's so niiiice :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxwellito%2Ftetrispad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxwellito%2Ftetrispad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxwellito%2Ftetrispad/lists"}