a venture into the unknown
$ tree
├── 3rdparty (dependencies)
├── data (assets)
├── scripts (build scripts)
├── shaders (shader sources)
├── src (game source code)
└── tools (required binaries)
git clone https://github.com/smeets/autumn-jam
git submodule update --init
- install SDL2 (only linux/mac, windows is included)
Use Makefile.windows
: project
, build
, start
, shaders
and clean
.
cd autumn-jam
- Generate vs2017 sources:
nmake /f scripts\Makefile.windows project
- Run the program:
nmake /f scripts\Makefile.windows start
$ cd autumn-jam
# generate makefile in .build\projects\linux64_gmake (?)
$ tools/genie_linux gmake
Shaders should be compiled by a makefile, see the Makefile.windows
.
export BIN_DIR = .build/path/to/exe/
export PLATFORM = windows || linux
mkdir -p $BIN_DIR/shaders/glsl
tools/shaderc -f shaders/fs_cube.sc -o $BIN_DIR/shaders/glsl/fs_cube.bin -i ../bgfx/src --type fragment --platform $PLATFORM
tools/shaderc -f shaders/vs_cube.sc -o $BIN_DIR/shaders/glsl/vs_cube.bin -i ../bgfx/src/ --type vertex --platform $PLATFORM