sdl-ts
SDL bindings for TypeScript.
Currently working via deno on Windows using FFI (Foreign Function Interface).
Goals
- Resembling the C API as much as possible. If someone reads a SDL tutorial (for example LazyFoo) then they should be able to easily translate the tutorial to the equivalent in this library.
Non Goals
- Creating a higher level API or Game Framework. This library's only purpose is to expose the SDL API to deno.
Getting Started
Creating a Project
To aid in creating a new project which uses SDL_ts
there is an init.ts
script to aid in getting your project set up:
deno run --allow-read --allow-write --allow-net --import-map https://deno.land/x/sdl_ts@v0.0.2/imports.deno.json https://deno.land/x/sdl_ts@v0.0.2/init.ts /path/to/project
After that the new project can be started via a deno task:
deno task start
Credits
Deno images taken from https://deno.land/artwork.
Thanks to:
- Samip Poudel for the Jurassic deno image.