a-game

2D platformer written from scratch.
git clone git://git.amin.space/a-game.git
Log | Files | Refs | README | LICENSE

w_tutorial.h (7654B)


      1 // More or less a copy of the tutorial level from Knytt
      2 
      3 #define W_TUTORIAL_NUM_ROOMS 6
      4 
      5 global_variable struct Room w_tutorial_rooms[W_TUTORIAL_NUM_ROOMS] = {
      6     {
      7         .index = {0, 0},
      8         .tiles = {
      9             0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     10             0,  1,  1,  1,  1,   1,  1,  1,  1,  1,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     11             0,  1,  0,  0,  0,   0,  0,  0,  0,  1,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     12             0,  1,  0,  0,  0,   0,  0,  0,  0,  1,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     13             0,  1,  0,  1,  1,   1,  1,  1,  1,  1,   1,  1,  1,  1,  1,   1,  1,  1,  0,  0,   0,  0,  0,  0,  0,
     14 
     15             0,  1,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  1,  0,  0,   0,  0,  0,  0,  0,
     16             0,  1,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  1,   1,  0,  1,  1,  1,   1,  1,  1,  1,  1,
     17             0,  1,  0,  0,  0,   0,  1,  1,  0,  0,   1,  1,  0,  0,  1,   1,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     18             0,  1,  1,  1,  1,   1,  1,  1,  1,  1,   1,  1,  1,  1,  1,   1,  1,  1,  1,  1,   1,  1,  1,  1,  1,
     19             0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     20         },
     21         .tileset_offset = 0,
     22     },
     23     {
     24         .index = {0, 1},
     25         .tiles = {
     26             0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   1,  0,  1,  1,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     27             0,  0,  0,  0,  0,   1,  1,  1,  1,  1,   1,  0,  1,  1,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     28             0,  0,  0,  0,  0,   1,  1,  0,  0,  0,   0,  0,  1,  1,  1,   1,  1,  1,  1,  1,   1,  1,  1,  1,  1,
     29             0,  0,  0,  0,  0,   1,  1,  0,  1,  1,   1,  1,  1,  1,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     30             0,  0,  0,  0,  0,   1,  1,  0,  0,  0,   0,  0,  0,  0,  0,   0,  1,  1,  1,  1,   1,  1,  1,  1,  1,
     31 
     32             0,  0,  0,  0,  0,   1,  1,  0,  0,  0,   1,  1,  1,  0,  0,   0,  1,  0,  0,  0,   0,  0,  0,  0,  0,
     33             0,  0,  0,  0,  0,   1,  1,  1,  1,  1,   1,  0,  1,  1,  1,   1,  1,  0,  0,  0,   0,  0,  0,  0,  0,
     34             0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     35             0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     36             0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     37         },
     38         .tileset_offset = 48,
     39     },
     40     {
     41         .index = {0, 2},
     42         .tiles = {
     43             0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     44             0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     45             0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     46             0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     47             0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   1,  1,  1,  1,  1,   1,  1,  1,  1,  1,   1,  1,  0,  0,  0,
     48 
     49             0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   1,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  1,  0,  0,  0,
     50             0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   1,  1,  1,  1,  1,   1,  1,  1,  1,  1,   1,  1,  1,  1,  1,
     51             0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   1,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     52             0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   1,  0,  1,  1,  1,   1,  1,  1,  1,  1,   1,  1,  1,  1,  1,
     53             0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   1,  0,  1,  1,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     54         },
     55         .tileset_offset = 52,
     56     },
     57     {
     58         .index = {1, 0},
     59         .tiles = {
     60             0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  1,  1,  0,   1,  0,  0,  0,  0,
     61             0,  0,  1,  1,  1,   1,  1,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  1,  1,  0,   1,  1,  1,  1,  0,
     62             0,  0,  1,  0,  0,   0,  1,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  1,  1,  0,   0,  0,  0,  1,  0,
     63             0,  0,  1,  0,  0,   0,  1,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  1,  1,  0,   0,  0,  0,  1,  0,
     64             0,  0,  1,  0,  1,   0,  1,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  1,  1,  0,   0,  0,  0,  1,  0,
     65 
     66             0,  0,  1,  0,  1,   0,  1,  1,  1,  1,   1,  1,  1,  1,  1,   1,  1,  1,  1,  0,   0,  1,  1,  1,  0,
     67             1,  1,  1,  0,  1,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  1,  1,  1,  0,
     68             0,  0,  0,  0,  1,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  1,  1,  1,  0,
     69             1,  1,  1,  1,  1,   1,  1,  1,  1,  1,   1,  1,  1,  1,  1,   1,  1,  1,  1,  1,   1,  1,  1,  1,  0,
     70             0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     71         },
     72         .tileset_offset = 4,
     73     },
     74     {
     75         .index = {1, 1},
     76         .tiles = {
     77             0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     78             1,  1,  1,  1,  1,   1,  1,  1,  1,  1,   1,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     79             1,  0,  0,  0,  0,   0,  0,  0,  0,  1,   1,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     80             0,  0,  1,  1,  1,   1,  1,  0,  0,  1,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     81             1,  1,  1,  0,  1,   0,  0,  0,  0,  1,   1,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     82 
     83             0,  0,  0,  0,  1,   0,  0,  0,  0,  1,   1,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     84             0,  0,  0,  0,  1,   1,  1,  1,  0,  1,   1,  1,  1,  1,  1,   1,  1,  1,  1,  1,   1,  0,  0,  0,  0,
     85             0,  0,  0,  0,  0,   0,  0,  1,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   1,  0,  0,  0,  0,
     86             0,  0,  0,  0,  0,   0,  0,  1,  1,  1,   1,  1,  1,  1,  1,   1,  1,  1,  1,  0,   1,  0,  0,  0,  0,
     87             0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  1,  1,  0,   1,  0,  0,  0,  0,
     88         },
     89         .tileset_offset = 8,
     90     },
     91     {
     92         .index = {1, 2},
     93         .tiles = {
     94             0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     95             0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     96             0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     97             0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     98             0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
     99 
    100             0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
    101             1,  1,  1,  1,  1,   1,  1,  1,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
    102             0,  0,  0,  0,  0,   0,  0,  1,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
    103             1,  1,  1,  1,  1,   1,  1,  1,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
    104             0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,   0,  0,  0,  0,  0,
    105         },
    106         .tileset_offset = 56,
    107     },
    108 };