An open API service indexing awesome lists of open source software.

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

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