Newer
Older
rpg / v2 / apps / demo / anim.html
<!doctype html>
<html lang="ru">
<head>
    <meta charset="utf-8" />
    <title>Аним-лист v2 — кадры walk-цикла</title>
    <style>
        html, body { margin: 0; background: #17171d; }
        /* канвас в левом верхнем углу: скриншот-гейт считает пиксели от (0,0) */
        /* низкое разрешение бэкинг-стора, CSS-масштаб целый ×2, пиксели резкие */
        canvas {
            width: 960px;
            height: 720px;
            image-rendering: pixelated;
            image-rendering: crisp-edges;
        }
    </style>
</head>
<body>
    <canvas id="scene"></canvas>
    <script type="module" src="/src/anim.ts"></script>
</body>
</html>