{"id":21992141,"url":"https://github.com/sinantech/snake-game-swing","last_synced_at":"2026-04-29T22:03:25.960Z","repository":{"id":243059480,"uuid":"811354678","full_name":"sinantech/snake-game-swing","owner":"sinantech","description":"🐍 Java Snake Game","archived":false,"fork":false,"pushed_at":"2024-06-06T12:43:53.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T03:32:07.970Z","etag":null,"topics":["backend","java","swing"],"latest_commit_sha":null,"homepage":"","language":"Java","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/sinantech.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-06-06T12:41:14.000Z","updated_at":"2024-11-05T08:23:27.000Z","dependencies_parsed_at":"2024-06-06T14:23:47.686Z","dependency_job_id":null,"html_url":"https://github.com/sinantech/snake-game-swing","commit_stats":null,"previous_names":["sinantech/snakegame","sinantech/snake-game-swing"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sinantech/snake-game-swing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinantech%2Fsnake-game-swing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinantech%2Fsnake-game-swing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinantech%2Fsnake-game-swing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinantech%2Fsnake-game-swing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sinantech","download_url":"https://codeload.github.com/sinantech/snake-game-swing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinantech%2Fsnake-game-swing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32445555,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T20:22:27.477Z","status":"ssl_error","status_checked_at":"2026-04-29T20:22:26.507Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["backend","java","swing"],"created_at":"2024-11-29T20:12:54.068Z","updated_at":"2026-04-29T22:03:25.924Z","avatar_url":"https://github.com/sinantech.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Creating a Snake Game with Java Swing\n\nThis guide will walk you through creating a simple Snake game using Java's Swing library.\n\n## Author\n\nSinan Can Özer\n\n## Used Technologies\n\n- Java\n- Swing\n\n## Setup\n\nFirst, ensure you have a Java development environment set up. You will need the Java Development Kit (JDK) and an Integrated Development Environment (IDE) such as IntelliJ IDEA, Eclipse, or NetBeans.\n\n## Project Structure\n\nCreate a new Java project and add the following classes:\n\n1. `GameFrame`\n2. `GamePanel`\n3. `MyKeyAdapter`\n\n## GameFrame Class\n\nThis class will set up the main window for the game.\n\n## GamePanel Class\n\nThis class will contain the game logic, including rendering the game and handling the snake's movement.\n\n## Main Class\n\nFinally, create a main class to run the game.\n\n## Running the Game\n\n1. Compile the project.\n2. Run the `SnakeGame` class.\n3. Use the arrow keys to control the snake.\n\n## Summary\n\nYou've created a basic Snake game using Java Swing. This example demonstrates essential game development concepts such as handling user input, rendering graphics, and game logic. Feel free to enhance and expand the game with additional features like scoring, levels, and sound effects.\n\n## License\n\nMIT License\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinantech%2Fsnake-game-swing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsinantech%2Fsnake-game-swing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinantech%2Fsnake-game-swing/lists"}