slipher
v0.5.41
Published
A game framework made for typescript using bun and SDL2.
Downloads
20
Readme
Slipher
A game framework made for typescript using bun and SDL2.
Slipher is not yet ready Please do not use until ready.
|Feature|Windows|Mac|Linux| |:-------|--------|--------|-----:| |Window Rendering| ✓|✓|-| |Drawing Images| ✓|✓|-| |Delta Time| ✓|✓|-| |Loading Animations| ✓|✓|-| |Event Handler| ✓|✓|-| |Proper Keyboard Handler| ✓|✓|-| |All Window functions implemented| ✓|✓|-| |Proper Building| ✓|✗|-| |All Graphic functions implemented| ✗|✗|-| |Audio Handler| ✗|✗|-| |Drawing Text| ✓|✗|-| |Mouse Handler| ✓ | ✗| -|
Simple Example Code
import { Slipher } from "../index";
function load() {
}
function update() {
const event = Slipher.event.get();
Slipher.event.handleEvent(event);
}
function draw() {
Slipher.graphics.setColor(255,255,255,1);
Slipher.graphics.rectangle('fill', 0, 0, screen.getWidth(), screen.getHeight());
Slipher.graphics.print("Hello World!", 20, 20);
Slipher.graphics.flip();
}
Slipher.init();
const screen = Slipher.createWindow(640, 480);
load();
while(Slipher.running) {
update();
draw();
}
Slipher.quit();