-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
25 lines (23 loc) · 693 Bytes
/
Copy pathmain.cpp
File metadata and controls
25 lines (23 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Pong Clone with SDL3 on macOS
// Enhanced Pong clone using modern C++17 and SDL3/SDL3_ttf
//
// Controls:
// - Left paddle: W/S or Up/Down arrow keys
// - Difficulty: Press 1 (Easy), 2 (Medium), 3 (Hard)
// - ESC quits
//
// Features:
// - Smooth ball physics with subpixel movement
// - AI-controlled right paddle with predictive trajectory tracking
// - Adjustable difficulty levels
// - On-screen scoring with SDL3_ttf
#include "src/Game.h"
int main(int argc, char* argv[]) {
Game pongGame(800, 600);
if (!pongGame.Init()) {
return 1; // Initialization failed (error already logged)
}
pongGame.Run();
// Game destructor will handle cleanup
return 0;
}