victus

victus dots

a zero-dependency JavaScript game framework

usage documentation

the smallest game framework
of them all.

victus is less than 2kB 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
<2kB

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.set({ 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.

            
              // outline the path of a square
              victus.ctx.beginPath();
              victus.ctx.rect(0, 0, 20, 20);
              victus.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.12.0/build/victus.min.js"></script>