https://github.com/mario-so/zig-pong
Pong game implemented in Zig
https://github.com/mario-so/zig-pong
raylib-zig zig
Last synced: about 1 year ago
JSON representation
Pong game implemented in Zig
- Host: GitHub
- URL: https://github.com/mario-so/zig-pong
- Owner: Mario-SO
- Created: 2025-01-05T10:41:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-27T09:04:08.000Z (about 1 year ago)
- Last Synced: 2025-01-27T10:22:21.730Z (about 1 year ago)
- Topics: raylib-zig, zig
- Language: Zig
- Homepage:
- Size: 184 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🏓 Zig Pong
A modern take on the classic Pong game, built with Zig and Raylib!
## ✨ Features
- 🎮 Smooth player controls (W/S or Up/Down arrows)
- 🤖 Smart AI opponent that tracks the ball
- 🌟 Beautiful glow shader effects
- 📈 Progressive difficulty - ball and paddles speed up as you play
- 🎯 Score tracking system
- 🎨 Clean minimalist visuals with retro feel
## 🎯 Controls
- `W` or `↑` - Move paddle up
- `S` or `↓` - Move paddle down
## 🛠️ Building
Make sure you have Zig and Raylib installed, then:
```bash
zig build run
```
## 🎥 Game Preview
- Glowing particles and effects
- Center line divider
- Real-time score display
- Smooth ball physics
- Dynamic paddle movement
https://github.com/user-attachments/assets/8d09cfeb-f419-471f-854b-2b17c291cc42
## 🔧 Technical Details
- Built with Zig programming language
- Uses Raylib for graphics
- Custom GLSL shader for glow effects
- 60 FPS smooth gameplay