{"id":24541270,"url":"https://github.com/plyght/PongJS","last_synced_at":"2025-10-03T17:30:44.652Z","repository":{"id":194885597,"uuid":"692084747","full_name":"plyght/PongJS","owner":"plyght","description":"This is a game of pong made with javascript you can run in your browser or in localhost:3000!","archived":false,"fork":false,"pushed_at":"2023-09-27T18:27:31.000Z","size":35,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T18:16:48.458Z","etag":null,"topics":["bun","bunsh","html","javascript","pong-game","pong-js"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/plyght.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}},"created_at":"2023-09-15T14:21:25.000Z","updated_at":"2023-09-30T11:27:02.000Z","dependencies_parsed_at":"2023-09-15T15:33:14.825Z","dependency_job_id":null,"html_url":"https://github.com/plyght/PongJS","commit_stats":null,"previous_names":["plyght/pongjs"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plyght%2FPongJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plyght%2FPongJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plyght%2FPongJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plyght%2FPongJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plyght","download_url":"https://codeload.github.com/plyght/PongJS/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235161515,"owners_count":18945538,"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":["bun","bunsh","html","javascript","pong-game","pong-js"],"created_at":"2025-01-22T18:17:27.451Z","updated_at":"2025-10-03T17:30:39.071Z","avatar_url":"https://github.com/plyght.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"Pong Game\n\nThis repository contains a simple implementation of the classic Pong game using JavaScript and HTML5 Canvas. The game includes a player-controlled paddle and an AI-controlled paddle. The player can control the speed of the game and toggle a dark mode for the game interface.\n\n\nFiles:\n\n- pong.html: This is the main HTML file that contains the structure of the game interface. It includes a start menu with a start button, a dark mode toggle button, and a speed changer dropdown. The game is displayed on a canvas element.\n\n- pong.js: This is the main JavaScript file that contains the game logic. It includes functions for drawing and moving game elements, handling user input, and managing game state.\n\n- server.js: This is a simple Express server that serves the game files.\nGame Elements\n\n- Paddles: There are two paddles, one controlled by the player (using mouse movement) and the other controlled by a simple AI that follows the ball.\n\n- Ball: The ball moves across the screen and bounces off the paddles and the top and bottom edges of the screen.\n\n- Scores: The scores of the player and the AI are displayed on the screen.\n\n\nGame Features:\n\n- Dark Mode: The player can toggle a dark mode for the game interface.\n\n- Speed Changer: The player can change the speed of the game using a dropdown menu.\n\n- Start/Reset Game: The player can start a new game using the start button. The game can be reset by pressing the Escape key.\nRunning the Game\n\nTo run the game, start the Bun server using the command \"bun server.js\" and open your browser to http://localhost:3000.\n\n\nContributing:\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n\nLicense:\n\nMIT License\n\nCopyright (c) 2023 plyght\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplyght%2FPongJS","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplyght%2FPongJS","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplyght%2FPongJS/lists"}