vkazanov / cboing

A pure C and libSDL port of a game Boing! from the Code the Classics book

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A pure C and libSDL port of a game Boing! from the very cute Code the Classics book. Boing! itself is a modernised Pong:

cboing-screenshot.png

Motivation

I wanted to play with SDL a bit but did not want to think about game design and assets issues. Code the Classics comes with a Github repo containing code in Python using the Pygame Zero, images, sounds and music I only had to port the logic itself.

Compiling

I developed the port using GCC 9.3.0 and the popular libSDL 2.x, SDL_Mixer, SDL_Image libraries on Ubuntu 20.04. Having all of the libraries installed the following should work:

cd cboing
make
./cboing

Playing

Pick a number of players.

Controls for player 1: up/down or a/z.

Controls for player 2: m/k.

License

The code is free for all to use.

Assets are https://creativecommons.org/licenses/by-nc-sa/3.0/.

About

A pure C and libSDL port of a game Boing! from the Code the Classics book


Languages

Language:C 99.1%Language:Makefile 0.9%