Skip to content

C17, SDL2, & Vulkan on Win/Mac/Linux

License

Notifications You must be signed in to change notification settings

mikesmullin/c17-sdl2-vulkan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game 6

This is a prototype as I explore programming language, libraries, and tech stack viability for future game titles.

My intent for this work is:

  • to achieve a high degree of control and autonomy over the entire tech stack
  • to further refine my skill and appreciation for the engine layers (system level software, and hardware)
  • to impart a path for differentiation through innovation and discovery in unusual and unconventional approaches
  • to manifest independent game production and portfolio expansion
  • to realize my desire to create, self-actualize, and contribute back to the industry that I love
  • to help others do the same

Prerequisites

  • GPU supporting Vulkan
  • Recent version of Windows, Mac, or Linux OS in 64-bit architecture
  • Vulkan SDK (recommended)
  • Node.js (for build scripts)
  • Clang (recommended compiler)

Screenshot

screenshot

Video

video

Building

on Windows

C:\> node build_scripts/Makefile.mjs all

on Linux

# Install Vulkan SDK
wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo tee /etc/apt/trusted.gpg.d/lunarg.asc
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list http://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list
sudo apt update
sudo apt install vulkan-sdk vulkan-tools vulkan-validationlayers-dev spirv-tools

# Install SDL2
sudo apt install libsdl2-dev

# Install Clang compiler
sudo apt install clang

# Install Node.js
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
cd build_scripts/
nvm install
npm install
cd ..

# Build
node build_scripts/Makefile.mjs all

on Mac

# Install Vulkan SDK
https://sdk.lunarg.com/sdk/download/1.3.275.0/mac/vulkansdk-macos-1.3.275.0.dmg

# Install SDL2
brew install sdl2

# Install Node.js
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
cd build_scripts/
nvm install
npm install
cd ..

# Build
node build_scripts/Makefile.mjs all

Debugging

  • Can use VSCode (see .vscode/tasks.json), or;
  • Can debug with gdb

Inspirations

About

C17, SDL2, & Vulkan on Win/Mac/Linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published