 
 #include "chess_assets.h"
 
+byte sf = 1;
+
 static byte sinus(byte x)
 {
   return 128 + GD.rsin(128, -16384 + (x << 7));


static void p2(int &x, int &y, const char *c)
{
  x = 16 * (32 + 32 * (c[0] - 'a'));
  y = 16 * ( 8 + 32 * ('8' - c[1]));
}

#define MOVETIME    10
#define OVERSAMPLE  8

int clocks[2];

  byte xlat[] = { 0, 0, 0, 1, 5, 2, 3, 4, 0, 6, 0, 7, 11,8, 9,10 };

  for (int i = 0; i < MOVETIME; i++) {
    GD.cmd_gradient(0, 0, 0x101010, GD.w, GD.h, 0x202060);
    GD.cmd_bgcolor(0x101020);

    GD.Begin(BITMAPS);
    GD.SaveContext();
    GD.ColorRGB(0xfff0c0);
    GD.ColorA(0xc0);
    GD.cmd_scale(F16(sf * 32), F16(sf * 32));
    GD.cmd_setmatrix();
    GD.Vertex2ii(32, 8, 1, 0);
    GD.RestoreContext();
