{"id":15735248,"url":"https://github.com/codeslinger-alpha/snake-game-using-c","last_synced_at":"2026-07-01T17:31:51.295Z","repository":{"id":256243183,"uuid":"854661160","full_name":"codeslinger-alpha/Snake-Game-using-C","owner":"codeslinger-alpha","description":"A basic snake game, made relying on pointers and 2D array.","archived":false,"fork":false,"pushed_at":"2024-10-03T11:09:55.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T03:47:06.602Z","etag":null,"topics":["c","pointers-and-arrays","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeslinger-alpha.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":"2024-09-09T15:04:42.000Z","updated_at":"2024-10-03T11:09:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"d572f3b9-c350-4c83-86f3-40a938cbac54","html_url":"https://github.com/codeslinger-alpha/Snake-Game-using-C","commit_stats":{"total_commits":24,"total_committers":1,"mean_commits":24.0,"dds":0.0,"last_synced_commit":"5cbe9c0980a77850e0c8f6ff8a4933850bbef082"},"previous_names":["codeslinger-alpha/snake-game-using-c"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeslinger-alpha%2FSnake-Game-using-C","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeslinger-alpha%2FSnake-Game-using-C/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeslinger-alpha%2FSnake-Game-using-C/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeslinger-alpha%2FSnake-Game-using-C/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeslinger-alpha","download_url":"https://codeload.github.com/codeslinger-alpha/Snake-Game-using-C/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246413244,"owners_count":20773053,"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":["c","pointers-and-arrays","snake-game"],"created_at":"2024-10-04T01:11:24.914Z","updated_at":"2026-07-01T17:31:51.263Z","avatar_url":"https://github.com/codeslinger-alpha.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"**Implementation of a basic snake game🐍, using pointers and 2D array.**  \n# Controls  \nKeys are **not case-sensitive**   \n`w`=up  \n`a`=left  \n`s`=down  \n`d`=right  \n`space`=pause/unpause  \n# Features  \n**Border wrapping**\n### In the *source code*  \n```c\n#define bgcolor 1\n#define ROW 15\n#define COL 30\nint wait_time_ms=1000;//This is the maximum value\nint border_wall;\nchar prev = 'd'; // primary direction of movement\nconst char snake_body = '=', point = 'o', OBSTACLE = '#'; // Visuals\n```\n-change `ROW` and `COL` to change the area  \n-set `bgcolor` to 1 or 0 to turn the background colour on or off  \n-change `wait_time_ms` to change frame speed  \n-change `prev` to change the direction in which the snake starts moving  \n-**you can change snake design also**  \n### After running the program  \n-Select level(speed)  \n-You can set boundary walls  \n-Set obstacles randomly  \n-Beep sound will play if you eat a point or when it's game over🎮  \n# Demo  \n## Screenshots \n**Boundary**  \n![image](https://github.com/user-attachments/assets/887853fe-74a2-47b1-8c2a-3c1d0fb2f68b)  \n**Border wrapping**  \n![image](https://github.com/user-attachments/assets/63a1ca6c-6770-4968-a0b5-cce786c88f1d)  \n## Output    \n\u003cp align=\"left\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/23b39816-a0f8-4021-9ad1-39890a3f21b6\" alt=\"gameplay\"\u003e\n\u003c/p\u003e \n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeslinger-alpha%2Fsnake-game-using-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeslinger-alpha%2Fsnake-game-using-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeslinger-alpha%2Fsnake-game-using-c/lists"}