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

https://github.com/k0lala/octisc

2-player Tetris game, C version
https://github.com/k0lala/octisc

c

Last synced: 10 months ago
JSON representation

2-player Tetris game, C version

Awesome Lists containing this project

README

          

# Octis

This game is based on **Tetris** but this time as a 2-player game where the goal is to make the oppponent place a block over the limit.



This version of the game is written entirely in C and using SDL2 for graphics.

This same game is also written in [Python](https://github.com/K0LALA/OctisTerminal) but has less features.

Demo

## Building

In order to build the program, you first need to install the SDL2 and SLD2_ttf libraries.

Then using GCC, or the compiler of your choice:

`gcc -o octis.out octis.c screen.c $(sdl2-config --cflags --libs) -lSDL2_ttf`



If you want to create a Windows executable from Linux, you can refer to this link.
With a command that may look like this:

`x86_64-w64-mingw32-gcc -o octis.exe octis.c screen.c $(x86_64-w64-mingw32-pkg-config sdl2 --cflags --libs) -lSDL2_ttf`

To work, you'll need `SDL2.dll` and `SDL2_ttf.dll` libraries either in the same folder as .exe or in a folder listed in the PATH.

You can grab these online or from the Releases page.


## License

You are free to use the entirety of the idea and the code as you wish as this was made for eductional purposes.