littlejsengine
Version:
LittleJS - Tiny and Fast HTML5 Game Engine
26 lines (19 loc) • 601 B
HTML
<meta charset=utf-8><body>
<script src=../../dist/littlejs.js?1117></script>
<script>;
// use fixed size canvas for examples
canvasFixedSize = vec2(960, 540);
// fix bleeding from neighboring pixels
tileFixBleedScale = .5;
// allow improved canvas scaling for smoother graphics
canvasPixelated = false;
// disable watermark
showWatermark = false;
// these functions can be overridden for each example
function gameInit() {}
function gameUpdate() {}
function gameUpdatePost() {}
function gameRender() {}
function gameRenderPost() {}
</script>