{"id":16186955,"url":"https://github.com/robloach/tic80-js","last_synced_at":"2026-02-25T16:03:36.010Z","repository":{"id":66036583,"uuid":"191087033","full_name":"RobLoach/tic80-js","owner":"RobLoach","description":"Bundle your TIC-80 JavaScript ES6 Games","archived":false,"fork":false,"pushed_at":"2020-11-15T17:14:45.000Z","size":24,"stargazers_count":5,"open_issues_count":6,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T18:02:08.478Z","etag":null,"topics":["tic-80"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RobLoach.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-06-10T03:03:26.000Z","updated_at":"2022-03-16T17:28:32.000Z","dependencies_parsed_at":"2023-02-21T21:16:03.839Z","dependency_job_id":null,"html_url":"https://github.com/RobLoach/tic80-js","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/RobLoach/tic80-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2Ftic80-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2Ftic80-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2Ftic80-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2Ftic80-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobLoach","download_url":"https://codeload.github.com/RobLoach/tic80-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2Ftic80-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29829410,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T15:41:19.027Z","status":"ssl_error","status_checked_at":"2026-02-25T15:40:47.150Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["tic-80"],"created_at":"2024-10-10T07:19:55.684Z","updated_at":"2026-02-25T16:03:35.995Z","avatar_url":"https://github.com/RobLoach.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TIC-80 JS\n\nBundle and run your [TIC-80](https://tic.computer) ES6 JavaScript carts.\n\n## Installation\n\n``` sh\nnpm i tic80-js --save-dev\n```\n\n## Usage\n\n1. Create a JavaScript TIC-80 *index.js* with ES6:\n\t``` js\n\t// title:  TIC-80 JS Simple Test\n\t// author: Rob Loach\n\t// desc:   Small example of using tic80-js\n\t// script: js\n\tlet t = 0\n\tlet x = 96\n\tlet y = 24\n\tlet world = 'WORLD!'\n\texport function TIC() {\n\t\tif (btn(0)) y--\n\t\tif (btn(1)) y++\n\t\tif (btn(2)) x--\n\t\tif (btn(3)) x++\n\t\tcls(13)\n\t\tspr(1 + ( (t % 60) / 30 | 0) * 2, x, y, 14, 3, 0, 0, 2, 2)\n\t\tprint(`HELLO ${world}`, 84, 84)\n\t\tt++\n\t}\n\t```\n\n2. Create a [*sprites.gif*](tests/simple/sprites.gif) in the same directory that would be used for the game.\n\n3. Build and run the game through TIC-80 JS:\n    ```\n    npx tic80-js index.js\n    ```\n\n4. To export the *cart.tic*, press escape to load the console, and use `save`.\n\n## Examples\n\nThere are some [examples](examples) that are available that give some sense of how TIC-80 JS could be used.\n\n## Other Solutions\n\nThere are a few alternatives to tic80-js:\n\n- [tic-bundle](https://github.com/chronoDave/tic-bundle)\n- [scriptpacker](https://github.com/robloach/scriptpacker)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobloach%2Ftic80-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobloach%2Ftic80-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobloach%2Ftic80-js/lists"}