Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Red1C3/go-pong
A Pong clone made from scratch with Go and C using OpenGL 3.3
https://github.com/Red1C3/go-pong
c cgo game golang multiplayer-game opengl
Last synced: about 2 months ago
JSON representation
A Pong clone made from scratch with Go and C using OpenGL 3.3
- Host: GitHub
- URL: https://github.com/Red1C3/go-pong
- Owner: Red1C3
- License: mit
- Created: 2021-10-10T21:38:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-04T22:33:35.000Z (almost 2 years ago)
- Last Synced: 2024-11-20T12:11:55.424Z (2 months ago)
- Topics: c, cgo, game, golang, multiplayer-game, opengl
- Language: Go
- Homepage:
- Size: 287 KB
- Stars: 32
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Go-Pong
A Pong video game clone made with Go lang and OpenGL 3.3 using C.
## Gameplay
![gameplay](snaps/snap-2.gif)Check [dependencies](#Dependencies)
### Offline
Key bindings are 'w' and 's' for the left player and 'up arrow' and 'down arrow' for the right player, score is kept in terminal (for now...)
### Multiplayer
go-pong supports multiplayer by hosting a game and joining it, hosting can be performed by running ```./go-pong -h ``` , and connecting to that host can be performed by running ```./go-pong ``` , control your player with up and down arrows.
## Deployment
if you faced a problem when deploying go-pong server, remove ```import "C"``` and all the generated error from that action, build it, and run it on servers only (since offline and clients mode won't work without the C renderer)
## Building
After installing the required dependencies, run ```go build```, make sure your executable is in the same folder than contains the *Shader* and *Textures* folders.
### Dependencies:
- [cglm](https://github.com/recp/cglm) (Runtime required)
- [glew](http://glew.sourceforge.net/) (Runtime required)
- [glfw](https://glfw.org/) (Runtime required)
- [stb_image](https://github.com/nothings/stb)
## Contributions
Are welcome !
## License
Under MIT, check [License](LICENSE)### Created with fuzzy kittens, with the help of Red1C3