예제 #1
0
 public void Setup()
 {
     SDL.SDL_Init(SDL.SDL_INIT_VIDEO);
     Cats.Init(640, 480);
     Cats.SetBackgroundColor(0x30, 0x00, 0x30);
     Cats.SetupTileLayer(40, 15, 32, 32);
     Cats.LoadTileset("data/tiles.json");
     for (int y = 0; y < 15; y++)
     {
         for (int x = 0; x < 40; x++)
         {
             if (y != 6)
             {
                 Cats.SetTile(x, y, "tiles", 0, 0);
             }
         }
     }
     Cats.LoadSprite("data/sprite.json");
     CreateSpriteInstance();
 }