https://github.com/aarambhdevhub/pong_game
https://github.com/aarambhdevhub/pong_game
Last synced: about 22 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/aarambhdevhub/pong_game
- Owner: AarambhDevHub
- License: mit
- Created: 2024-08-02T05:16:33.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-07T04:15:59.000Z (about 1 year ago)
- Last Synced: 2025-03-27T03:31:24.629Z (7 months ago)
- Language: Rust
- Size: 28.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pong Game in Rust with ggez
Welcome to the Pong game project! This repository contains the source code for a classic Pong game built using the Rust programming language and the ggez game library.
## Table of Contents
- [Overview](#overview)
- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Controls](#controls)
- [Project Structure](#project-structure)
- [Contributing](#contributing)
- [License](#license)## Overview
This project implements a simple Pong game where you control a paddle to bounce a ball against an AI opponent. The game demonstrates basic 2D game development concepts, including rendering graphics, handling user input, and managing game state.## Features
- Player and AI-controlled paddles
- Ball movement and collision detection
- Scoring system
- Game over and restart functionality
- Adjustable game speed for AI difficulty## Installation
To build and run this project, you'll need to have the Rust programming language installed. You can install Rust using rustup.1. Clone the repository:
```bash
git clone https://github.com/SuryodayDevHub/pong_game.git
cd pong_game2. Install dependencies:
This project uses the ggez library. You can install the required dependencies using Cargo:
```bash
cargo build## Usage
To run the game, use the following command:
```bash
cargo run## Controls
- **Spacebar**: Start or restart the game
- **Up Arrow**: Move the player's paddle up
- **Down Arrow**: Move the player's paddle down## Project Structure
```bash
pong_game/
├── Cargo.toml # Project configuration and dependencies
├── src/
│ └── main.rs # Main game logic
└── README.md # Project documentation# Key Components
- **main.rs**: Contains the implementation of the game, including game state management, rendering, and event handling.
# Contributing
Contributions are welcome! If you have suggestions for improvements or new features, feel free to open an issue or create a pull request.
## Donations
If you find this project useful and would like to support its continued development, you can make a donation via [Buy Me a Coffee](https://buymeacoffee.com/aarambhdevhub
).# License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.