0.2.9 • Published 5 months ago
slifer v0.2.9
Slifer : Native Typescript Game Framework
!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.
For up to date docs, please head over to the Slifer Webpage.
Introduction
Slifer is a game framework made to allow users to code games in typescript. The framework uses bun and SDL2 under the hood to allow your game to render and build natively to desktop.
Contents
Goals
- Contain all basic game framework implementations. Such as drawing images, drawing text and making animations from a sprite sheet.
- Provide an easy transition from web development to game development.
- Create an easy to use framework. Slifer should handle the bulk of the work
- Keep updates consistent.
Current Features
- Create a native desktop window with custom title and size.
- Handle both keyboard and mouse inputs
- Load and draw images onto the window
- Play Audio
Future Features
- Animation library
- Save file library
Example
import Slifer, { Vector2 } from "slifer";
Slifer.createWindow("Example Window", new Vector2(640, 480));
const bg = Slifer.Graphics.makeColor(36, 36, 36, 255);
while (!Slifer.shouldClose()) {
Slifer.Graphics.setBackground(bg);
if (Slifer.Keyboard.isPressed("escape")) {
Slifer.isRunning = false;
}
Slifer.Graphics.render();
}
Slifer.quit();
0.2.1
6 months ago
0.2.0
6 months ago
0.2.7
5 months ago
0.1.8
6 months ago
0.2.6
5 months ago
0.2.9
5 months ago
0.2.8
5 months ago
0.1.9
6 months ago
0.2.3
5 months ago
0.2.2
5 months ago
0.2.5
5 months ago
0.2.4
5 months ago
0.1.7
9 months ago
0.1.6
9 months ago
0.1.2
10 months ago
0.1.4
10 months ago
0.1.3
10 months ago
0.1.5
9 months ago
0.1.1
11 months ago
0.1.0
11 months ago