AlphaTechnolog / pong

Pong made with my own sdl2-based framework for C!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pong

A simple implementation of a pong game using my own sdl2-based "game dev framework" using the c programming language

Local deployment

You'll need a fewer requirements first.

  • gcc
  • make
  • sdl2
  • sdl2 mixer
  • sdl2 ttf
  • sdl2 image
  • cjson
  • git

Now you can continue by executing the next commands in your shell:

mkdir -pv ~/repo
cd ~/repo
git clone https://github.com/alphatechnolog/pong.git --depth=1 && cd pong

Now to build the source code:

make -j$(nproc)

And then the binary will be at ./bin/pong, but you can use make to execute it anyways.

make run

Hint: use make clean to remove all the compiled files if you need.

Fun things

Well, fullscreen works too, but you can press f11 again to go to windowed mode again if needed, and, the right bar of the pong adapts to the size of the window ;) (yeah, responsive).

Still to do

  • Score displaying

About

Pong made with my own sdl2-based framework for C!


Languages

Language:C 97.4%Language:Nix 1.4%Language:Makefile 1.2%