Код
using System; 
 using System.Text; 
 using System.Collections.Generic; 
 using WindmillEngine; 
 namespace WMTest 
 { 
  public class Program 
  { 
   int x = 0; int y = 0; 
   public static void Main(string[] args) 
   { 
    Windmill test = new Windmill(); 
    test.IniEngine("Test",640,480,false,test.COLOR(255,55,50,255)); 
    test.ResourceIni(); 
    test.RunEngine(Game); 
   } 
   public static void Game() 
   { 
     
    //float dt; 
    int state = 0; 
    Windmill test = new Windmill(); 
    if (test.KeyCheck(17)){ 
     state = 1; 
    } 
    if (test.KeyCheck(30)){ 
     state = 2; 
    } 
    if (test.KeyCheck(31)){ 
     state = 3; 
    } 
    if (test.KeyCheck(32)){ 
     state = 4; 
    } 
    switch (state){ 
     case 1: y = y - 5;; break; 
     case 2: x = x - 5; break; 
     case 3: y = y + 5; break; 
     case 4: x = x + 5; break; 
    } 
    test.DrawSprite("player.png",x,y, 1, 1, 1, test.COLOR(255,255,255,255)); 
   } 
  } 
 }
  
 Что я делаю не так?