node-sdl2 boilerplate template project for starting new node.js based SDL demos and applications
-
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.
-
Enter
npm install
into the commamd-line in the project folder. This will install node-sdl as part of the build process. -
Download and/or install the appropriate binaries of SDL2.
-
Windows specific Copy the dll and drop it within the project root folder.
Open a SDL window
- Enter
npm start
ornode index.js
into the commamd-line. This will install node-sdl as part of the build process.