Skip to content

smeets/autumn-jam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

a venture into the unknown

Structure

$ tree
├── 3rdparty    (dependencies)
├── data        (assets)
├── scripts     (build scripts)
├── shaders     (shader sources)
├── src         (game source code)
└── tools       (required binaries)

Dependencies

Building

  • git clone https://github.com/smeets/autumn-jam
  • git submodule update --init
  • install SDL2 (only linux/mac, windows is included)

Windows

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

Linux/Mac

$ cd autumn-jam
# generate makefile in .build\projects\linux64_gmake (?)
$ tools/genie_linux gmake

Shaders

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published