Caution
Slifer is currently in alpha. Use at your own risk.
Note
Not all basic features have been implemented. Many are missing such as window customization. As such, I recommend waiting for a beta release of Slifer before using it for a long term project.
Slifer is a 2D game framework made to allow users to code games in typescript. The framework uses deno and SDL2 under the hood to allow your game to render and build natively to desktop.
sudo apt upgrade
sudo apt install libsdl2-dev
sudo apt install libsdl2-image-devOn linux, Slifer will look for all dynamic library files inside of /usr/lib/x86_64-linux-gnu/ as that is the default install location on debian. If you are on any other flavour of linux, please move the files libSDL2.so and libSDL2_image.so to this directory.
Click on both of these links and download the latest release that begins with the tag 2.x. Most if not all windows users will be on 64bit architecture so download the zip file with win32-x64 in the file name.
Once both zip files have been downloaded move both SDL2.dll and SDL2_image.dll to C:\Windows\System32.
If you don't already, please download and install homebrew.
Once homebrew is installed. Just run this command
brew install sdl2
brew install sdl2_imageBy default, Slifer will look inside /opt/homebrew/lib for all the dynamic library files.
- Contain all basic game framework implementations. Such as drawing images, drawing text and making animations from a sprite sheet.
- Create an easy to use framework. Slifer should handle the bulk of the work.
- Keep updates consistent.
import { Slifer, type Color } from "@hazora/slifer";
const window = new Slifer.Window("Hello", 640, 360);
const background: Color = new Slifer.Color(48, 52, 70);
Slifer.setBackground(background);
Slifer.setBackground(background);
while (Slifer.isRunning()) {
if (Slifer.Keyboard.isKeyPressed('escape')) {
Slifer.quit();
}
Slifer.render();
}