victus

victus dots

a zero-dependency JavaScript game framework



usage documentation coming soon!

the smallest game framework
of them all.

victus is just 2.05kB minified. that's a tiny fraction of anything else out there, and small enough to download in mere milliseconds, even on the slowest of connections.

Phaser
949.8kB
pixi.js
384.1kB
melonJS
272.5kB
Crafty
151.8kB
Stage.js
28.1kB
victus
2.05kB

make games
at the speed of thought.

stop focusing on the skeleton of your game, and start focusing on the game itself. define some objects and start requesting animation frames — that's it.

            
              // create an object
              let square = new victus.Rect(0, 0, 20, 20, "#ea323c");
              // set a custom property
              square.setProps({ foo: "bar" });
              // and draw it!
              square.draw();
            
          

short and simple.
easily extensible.

victus is careful to provide only the classes you'll definitely need — but if you need something special, you can easily access the canvas context to implement it yourself.

            
              let ctx = x();
              // outline the path of a square
              ctx.beginPath();
              ctx.rect(0, 0, 20, 20);
              ctx.stroke();
            
          

ready to get started?

usage

the preferred way to add victus to your project is with jsDelivr.

            
              <script src="https://cdn.jsdelivr.net/npm/victus@0.11.2/build/victus.min.js"></script>