{"id":19131287,"url":"https://github.com/pjsalter/rat-invaders","last_synced_at":"2026-04-13T14:33:11.461Z","repository":{"id":107090179,"uuid":"596319907","full_name":"PJSalter/Rat-Invaders","owner":"PJSalter","description":"A game of cat and rats where the player must use their feline skills to outwit the cheesy rodents and protect their precious furball from being pelted with dairy projectiles!","archived":false,"fork":false,"pushed_at":"2023-04-06T17:18:29.000Z","size":5493,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-22T17:35:46.992Z","etag":null,"topics":["css3","html5","ts-node","typescript","webpack","yarn"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/PJSalter.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":"2023-02-01T23:26:15.000Z","updated_at":"2023-04-01T23:41:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"dd1d1844-ca28-420a-89ae-80e39aacb86e","html_url":"https://github.com/PJSalter/Rat-Invaders","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PJSalter/Rat-Invaders","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PJSalter%2FRat-Invaders","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PJSalter%2FRat-Invaders/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PJSalter%2FRat-Invaders/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PJSalter%2FRat-Invaders/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PJSalter","download_url":"https://codeload.github.com/PJSalter/Rat-Invaders/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PJSalter%2FRat-Invaders/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284227494,"owners_count":26968592,"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-11-13T02:00:06.582Z","response_time":61,"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":["css3","html5","ts-node","typescript","webpack","yarn"],"created_at":"2024-11-09T06:14:42.768Z","updated_at":"2025-11-13T14:01:52.173Z","avatar_url":"https://github.com/PJSalter.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐀 Rat-Invaders 🐭\n\n## 😸 Game controls:\n\n- Use the `arrow keys` (`LEFT`, `RIGHT`) to move the 🐈 cat and dodge the cheese. 🧀\n- (moving rigt to the far end of the board from the `left` and `right` side may cause the cat to get stuck) - Just to advise I still need to fix this bug.\n- Use the `spacebar` to `shoot balls of wool yarn 🧶` at the `🐀 rats` before they hit you with `cheese! 🧀`\n\n## About\n\n##### The code defines constants and variables to store the state of the game, including the positions of the Cat and the Rats, whether the player is moving or shooting the cotton wall, and various cooldown times.\n\n##### There are also functions to create and update the player's Cat, the Rats, and the Cotton wall that the player throws.\n\n##### The player's Cat and the Rat's are represented by images. The player's Cat can be moved left or right using the arrow keys, and can shoot a cotton wall using the space key.\n\n##### The Rat's move around randomly and shoot cheese at the player's Cat. The player's goal is to destroy all of the Rat's before they destroy the player's Cat.\n\n##### The game has a collision detection system that checks if the player's Cotton Wall or the Rat's cheese has hit the player's Cat or one of the Rat's.\n\n## Getting started:\n\n- Install `node \u003e= 16.20.0`\n- Install `nvm` (https://github.com/nvm-sh/nvm#installing-and-updating) to easily switch between your node versions.\n- Install `yarn` (https://classic.yarnpkg.com/en/docs/install) v1.22.19\n\n## Development:\n\n- Run `yarn` to `install dependencies`\n- Run `yarn start` for `webpack` to compile successfully\n- In the `scr folder`, locate the `index.html` file and open with `live server` to play the game in your `browser`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpjsalter%2Frat-invaders","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpjsalter%2Frat-invaders","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpjsalter%2Frat-invaders/lists"}