sdl_breakout
                                
                                
                                
                                    sdl_breakout copied to clipboard
                            
                            
                            
                        A small breakout game made with C++, Lua and SDL
This is a small breakout game that I made to test a new approach of separating Lua and C++ code when working with SDL.
The entire game logic is written in Lua. (start reading here)
The small "engine" is written in C++ with SDL (start reading here).
The entire Lua/C++ bindings can be found here

This is a port of my old test game, Ebiten Breakout.
It's in public domain, so do whatever you want with it.
The process of its short development was documented here: https://github.com/eliasdaler/edw.is/discussions/4
I'll be continuing doing stuff with this new "engine", I'll probably release it's iterative versions some day!
--
Building
Stuff you'll need:
- A C++20 compiler (but you can also downgrade to C++17, which sol2 still uses)
 - git
 - CMake 3.18+
 
git submodule update --init --recursive
mkdir build
cd build
cmake .. # add -DBUILD_SHARED_LIBS=OFF to link statically
cmake --build . --target breakout
./games/breakout/breakout
Font used: "Press Start 2P", Designed by CodeMan38 (licensed under the Open Font License)