/node-sdl2-boilerplate

node-sdl2 project boilerplate for new SDL2 applications and demos

Primary LanguageJavaScript

node-sdl2-boilerplate

node-sdl2 boilerplate template project for starting new node.js based SDL demos and applications

Installation

Instructions

  1. Make sure to install node-ffi and its dependency node-gyp and follow the instructions related to build node-gyp according to your development environment.

  2. Enter npm install into the commamd-line in the project folder. This will install node-sdl as part of the build process.

  3. Download and/or install the appropriate binaries of SDL2.

  4. Windows specific Copy the dll and drop it within the project root folder.

Demo

Open a SDL window

Instructions

  1. Enter npm start or node index.js into the commamd-line. This will install node-sdl as part of the build process.