{"id":16222931,"url":"https://github.com/villy-p/ascii-snake","last_synced_at":"2025-08-30T05:07:37.687Z","repository":{"id":237572883,"uuid":"794351339","full_name":"Villy-P/ASCII-Snake","owner":"Villy-P","description":"An ASCII implementation of Snake within C. All within your very own console!","archived":false,"fork":false,"pushed_at":"2024-09-09T21:16:53.000Z","size":145,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-11T12:15:57.959Z","etag":null,"topics":["ansii","ascii","c","console","console-game","game","snake","snake-game"],"latest_commit_sha":null,"homepage":"","language":"C","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/Villy-P.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":"2024-05-01T00:38:20.000Z","updated_at":"2024-09-09T21:16:57.000Z","dependencies_parsed_at":"2024-05-02T16:40:30.064Z","dependency_job_id":"d2c4f72e-03db-4c4b-87b7-1ae7473bfbba","html_url":"https://github.com/Villy-P/ASCII-Snake","commit_stats":null,"previous_names":["villy-p/ascii-snake"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Villy-P%2FASCII-Snake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Villy-P%2FASCII-Snake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Villy-P%2FASCII-Snake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Villy-P%2FASCII-Snake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Villy-P","download_url":"https://codeload.github.com/Villy-P/ASCII-Snake/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221726986,"owners_count":16870713,"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":["ansii","ascii","c","console","console-game","game","snake","snake-game"],"created_at":"2024-10-10T12:16:01.143Z","updated_at":"2024-10-27T20:01:25.150Z","avatar_url":"https://github.com/Villy-P.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ASCII-Snake\n\nAn ASCII implementation of Snake within C. All within your very own console!\nThis project uses `\u003cwindows.h\u003e`, so it is only compatible with Windows OS.\n\n![Image](./assets/animation.gif)\n\n## How it works\n\nA simple while loop with a `sleep` statment at the end of the logic moves the screen,\nwhile ANSII escape codes handle \"refreshing\" the screen.\n\nThe program uses the Windows function `GetAsyncKeyState` to get keypresses that occured while the program was still refreshing.\n\n## Running the program\n\nMake sure you have `ninja`, `cmake`, and a `C compiler`.\n\nThen run these commands:\n\n``` txt\nmake reset\nmake run\n```\n\nASCII-Snake uses classic `WASD` controls.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvilly-p%2Fascii-snake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvilly-p%2Fascii-snake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvilly-p%2Fascii-snake/lists"}