Skip to content

konsumer/deno-minifb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deno minifb

This is a thin wrapper around minifb that you can use in deno. Combine it with canvas for native window that works like the canvas web API or webgpu for 3D stuff (note: it runs very slow webgpu, unusable for a game, as it's frame-by-frame.)

WIP

We are still working on it. The first goal is to get a basic window for canvas, but eventually we plan to add mouse, key, exit-handler, and loop-lifecycle stuff (for locking into a specific framerate.) The evenutal goal is to be a minimal piece to making performant native games in deno, using standardd web APIs.

deno support

Currently, you need to run deno from this PR.

I compiled it on linux, liek this:

git clone --recursive https://github.com/eliassjogreen/deno.git deno-pr-buffers
cd deno-pr-buffers
cargo build

Then set DENO in the Makefile.

usage

// TODO

development

You will need deno, make, and cargo (for rust) in your path. On mac or linux, run make setup to install everything you need.

Run make for some help.

About

Deno wrapper around minifb, for making a framebuffer you can draw pixels to

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published