d69b627bb1949b187d6e46ec1e02a1e3bc8a9234
				
			
			
		
	Netpong - A Pong game for the internet era
Netpong is a network-enabled Pong game, written in C++. It enables two players to play against each other, provided an IP address and a port. It also supports a single-player mode.
How it works
The game has only one runtime dependency: The raylib graphics system. In order to write idiomatic C++, I chose to use the raylib-cpp wrapper, which provides an object-oriented interface to the Raylib library. However, this wrapper is bundled with the project, and is thus not required to be installed.
Building
This application uses Meson as a build system. To build the application:
- Install meson from the link above.
- Install raylib from the link above.
- Set up the build directory with the meson setup buildcommand.
- Compile the application with meson compile -C build.
Running
- 
To run in single-player mode: - Run the application with no arguments: build/pong
- Left paddle is controlled with WandSkeys, right paddle is controlled withUpandDownarrow keys.
 
- Run the application with no arguments: 
- 
To run in multi-player mode: - One player runs the application in Server mode, specifying their IP address and a port: build/pong -S <ip_address> <port>
- The other player connects to the first player by running in Client mode, specifying the first player's IP address and port: build/pong -C <ip_address> <port>
 
- One player runs the application in Server mode, specifying their IP address and a port: 
Description
				
								Netpong v0.2
								
	Latest
							
						
					Languages
				
				
								
								
									C
								
								53.6%
							
						
							
								
								
									C++
								
								45.1%
							
						
							
								
								
									Meson
								
								0.5%
							
						
							
								
								
									CMake
								
								0.4%
							
						
							
								
								
									Shell
								
								0.4%