Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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