{"id":16005994,"url":"https://github.com/thibaudcolas/js1k-2015","last_synced_at":"2025-09-06T01:36:56.531Z","repository":{"id":26656257,"uuid":"30112527","full_name":"thibaudcolas/js1k-2015","owner":"thibaudcolas","description":"My attempts and tools for JS1K 2015.","archived":false,"fork":false,"pushed_at":"2016-09-11T19:52:22.000Z","size":137,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-31T06:31:51.594Z","etag":null,"topics":["canvas","code-golf","javascript","js1k"],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thibaudcolas.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":"2015-01-31T13:10:11.000Z","updated_at":"2016-09-11T19:52:23.000Z","dependencies_parsed_at":"2022-06-30T03:02:36.296Z","dependency_job_id":null,"html_url":"https://github.com/thibaudcolas/js1k-2015","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/thibaudcolas/js1k-2015","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibaudcolas%2Fjs1k-2015","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibaudcolas%2Fjs1k-2015/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibaudcolas%2Fjs1k-2015/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibaudcolas%2Fjs1k-2015/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thibaudcolas","download_url":"https://codeload.github.com/thibaudcolas/js1k-2015/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibaudcolas%2Fjs1k-2015/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273847116,"owners_count":25178631,"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-09-05T02:00:09.113Z","response_time":402,"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":["canvas","code-golf","javascript","js1k"],"created_at":"2024-10-08T11:22:46.158Z","updated_at":"2025-09-06T01:36:56.503Z","avatar_url":"https://github.com/thibaudcolas.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"[The Trolley Problem](http://js1k.com/2015-hypetrain/demo/2323)\n=========\n\n\u003eMy attempts and tools for JS1K 2015, Hype Train edition. — [Try it online!](https://rawgit.com/thibaudcolas/js1k-2015/master/src/traindemo.html)\n\n[![Screenshot of the game](thetrolleyproblem-screenshot.png)](https://rawgit.com/thibaudcolas/js1k-2015/master/src/traindemo.html)\n\n~~~\n    Will you kill those people, or try to spare them?\n    The train is running, the choice is yours to make.\n    --\n    Press a key, click or touch to switch tracks. Your first action (kill or spare) will determine if you score points by killing, or by sparing people. Do you believe in heaven?\n~~~\n\n## Theme\n\n\u003e The JS1k Hype Train is Real!\n\u003e The yearly competition is back. This year it's all about hype. And trains. And hype trains! Better hurry, this train is leaving soon.\n\n## Tooling\n\nContains both UglifyJS \u0026 Closure Compiler. Uglify is faster than Closure, but Closure's output is slightly smaller.\n\nFirst, install everything and set up a fast feedback loop:\n\n~~~\nnpm install\nbower install\nnpm run start\n~~~\n\nThen, start counting bytes and ship it:\n\n~~~\nnpm run build\nnpm run test\nnpm run base64\n~~\n\n## TODO\n\n- Wind effect with white transparent lines coming across the screen (towards player?)\n- Trees (as awesome as http://js1k.com/2011-trail/demo/994)\n- Color palette like Furbee's with hsla http://www.romancortes.com/blog/furbee-my-js1k-spring-13-entry/ `‘hsla(’+[(j\u002615)*8-x,(j\u002615)*6+x+’%',(j\u003c17)*60+(j\u002615)*7+’%',1]+’)’``\n- Different game over screen depending on scoring method\n- Shock effect: screen / train shake\n- Rail changer model\n- More points for more morale choice\n\n## Naming / marketing\n\n- Trolley Problem\n- Tramway dilemma\n- Hype train\n- No Brakes\n- Railroad\n- Moral Brakes ?\n- Body count\n- Carmageddon\n- Karma\n\n### Names\n\n- Karmageddon\n- The trolley problem\n- Trolleyarmmageddon\n\n## Ideas\n\n- http://knowyourmeme.com/memes/hype-train\n- http://www.dorkly.com/post/68989/the-problem-with-the-videogame-hype-train\n\n- Line Rider clone\n- Cookie generator\n- Transport Tycoon!\n- Rainbows!\n- A train with a rainbow chimney?\n- Platform 9 3/4\n\n### Train\n\n- \"There are no brakes on the hype train!\"\n    +  Jeu en auto scrolling qui accélère où tu dois faire une action au bon moment pour que le train change de voie\n- \"Catch up with the hype train\"\n    + Auto-scrolling aussi, il faut rattraper un train en mouvement\n- \"People on the railroad\"\n    + https://en.wikipedia.org/wiki/Trolley_problem\n    + https://fr.wikipedia.org/wiki/Dilemme_du_tramway\n    + Démo avec choix + morale\n    + http://youtu.be/YLpn71dxoFY\n    + Train carmageddon\n    + pour gagner des points, soit écraser le plus de gens possibles soit ne pas en écraser du tout\n- \"All aboard the hype train!\"\n- Tu contrôles un train qui est en bas de l'écran et qui a 4 ou 5 wagons \n    + Tu peux juste le faire bouger latéralement \n    + Chaque wagon a un symbole dessus\n    + Et des objets de ces symboles tombent du haut de l'écran \n    + Il faut les récupérer dans les wagons correspondants\n- Plusieurs trains qui arrivent de différents côtés de l'écran et que tu dois empêcher de rentrer en collision\n\n### Hype\n\n- Jeu de composition de journal pour avoir le plus de hype possible\n- Propaganda\n    + http://dukope.com/play.php?g=trt\n- https://en.wikipedia.org/wiki/Media_circus\n\n### Hype Train\n\n- \"maintenir dans un état d'excitation\"\n    + Ces objets doivent constamment être maintenus en mouvement\n    + Aléatoirement ils s'arrêtent \n    + oh comme les chats ?\n    + Il faut cliquer ou passer la souris dessus pour les refaire bouger\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthibaudcolas%2Fjs1k-2015","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthibaudcolas%2Fjs1k-2015","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthibaudcolas%2Fjs1k-2015/lists"}