{"id":17348158,"url":"https://github.com/jperelli/pixel-infection","last_synced_at":"2025-03-27T11:29:30.935Z","repository":{"id":66159695,"uuid":"247574663","full_name":"jperelli/pixel-infection","owner":"jperelli","description":"A game about virus spread and trying to contain it. Hackatoning while covid-19 containment.","archived":false,"fork":false,"pushed_at":"2020-03-21T21:55:53.000Z","size":1743,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T16:12:29.811Z","etag":null,"topics":["coronavirus","covid-19","disease-spread","game","pandemic","simulation","simulation-game"],"latest_commit_sha":null,"homepage":null,"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/jperelli.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":"2020-03-16T00:14:25.000Z","updated_at":"2021-08-08T23:57:33.000Z","dependencies_parsed_at":"2023-06-30T07:46:58.801Z","dependency_job_id":null,"html_url":"https://github.com/jperelli/pixel-infection","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jperelli%2Fpixel-infection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jperelli%2Fpixel-infection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jperelli%2Fpixel-infection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jperelli%2Fpixel-infection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jperelli","download_url":"https://codeload.github.com/jperelli/pixel-infection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245835574,"owners_count":20680221,"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":["coronavirus","covid-19","disease-spread","game","pandemic","simulation","simulation-game"],"created_at":"2024-10-15T16:51:15.806Z","updated_at":"2025-03-27T11:29:30.917Z","avatar_url":"https://github.com/jperelli.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pixel-infection\n\nA game about virus spread and trying to contain it.\n\n![Imgur](https://i.imgur.com/DP0DS0X.gif)\n\nIt tries to resemble a simulation based on some characteristics of CoVid-19.\n\nThis was mostly a challenge to create a game for fun while I am isolated at home for CoVid-19. I tried to do it in less than 12 hours without much web gaming platforms knowledge. The code is pretty bad and the performance is ugly, it just works (tm). Seems like pixi.js worked well out of the box, but I still need to work a lot on performance and UI for this to be something nice.\n\n## Run online\n\nhttp://jperelli.github.io/pixel-infection\n\n## Clone and run locally\n\n```bash\ngit clone git@github.com:jperelli/pixel-infection.git\ncd pixel-infection\nnpm install\nnpm run start\n```\nNavigate to [http://localhost:1234](http://localhost:1234)\n\n## Variables to play with\n\n```javascript\nconst PEOPLE_COUNT = 1000;\nconst FIRST_DATE = new Date(\"2019-11-17\");\nconst MINUTES_TICK = 60;\nconst DAYS_TO_CURE = 14;\n// TODO: const BEDS_PER_THOUSAND = 5;\nconst OFFSET_FACTOR = 10; // 10 to 20 // bigger is less movement\nconst SPEED_FACTOR = 2; // 1 to 5 // biger is people moving faster\nconst CONTAGION_PROBABILITY = 1; // 0.1 to 1\nconst BARRIER_RANGE = 10; // 10\n```\n\n## Credits\n\n - Initial pixi+parcel code https://github.com/llorenspujol/parcel-pixijs-quickstarter.git\n - Dependencies/libraries authors\n - The rest Julian Perelli\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjperelli%2Fpixel-infection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjperelli%2Fpixel-infection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjperelli%2Fpixel-infection/lists"}