Skip to content

MCUmbrella/TheEngine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

  • gcc (with C++ 20 support)
  • make
  • cmake 3.18
  • liblua5.4-dev
  • libsdl2-dev
  • libsdl2-gfx-dev
  • libsdl2-image-dev
  • libsdl2-mixer-dev
  • libsdl2-ttf-dev

Build

The following instructions is recommended, but not the only way to build the program.

Set up environment

Recommended software:

  • CLion
  • Visual Studio Code

Operating system

Kubuntu 21.10

/etc/apt/sources.list

deb http://old-releases.ubuntu.com/ubuntu impish main restricted
deb http://old-releases.ubuntu.com/ubuntu impish universe
deb http://old-releases.ubuntu.com/ubuntu impish multiverse
deb http://old-releases.ubuntu.com/ubuntu impish-security main restricted
deb http://old-releases.ubuntu.com/ubuntu impish-security universe
deb http://old-releases.ubuntu.com/ubuntu impish-security multiverse

Install dependencies

sudo apt update
sudo apt install g++ make cmake liblua5.4-dev libsdl2-dev libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev

Compile

cmake ./CMakeLists.txt
make

Clean

rm -rf ./CMakeFiles
rm -f ./cmake_install.cmake ./CMakeCache.txt ./Makefile ./TheEngine

TODO

  • make portable (statically linked, shipped with dll/so, appimage or some other methods)
  • multi-platform support
  • user script docs
  • more complex example