//include some textures #include "bluestone.h" #include "imp.h" #include "icon.h" #include "uac.h" #include "cacodemon.h" #include "skull.h" struct Sprite sprite[8] = { {12, 12, 1, 4}, {13, 12, 1, 4}, {14, 12, 1, 4}, {15, 12, 1, 4}, {12, 13, 0, 3}, {13, 13, 0, 3}, {14, 13, 0, 3}, {15, 13, 0, 3}, }; int map[26][26]= { {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,0}, {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,0}, {0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0}, {0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0}, {0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0}, {0,1,0,0,0,0,0,2,2,2,2,2,0,0,0,0,6,1,1,1,6,0,0,0,1,0}, {0,1,0,0,0,0,0,2,0,0,0,2,0,0,0,0,1,0,0,0,1,0,0,0,1,0}, {0,1,0,0,0,0,0,2,0,0,0,1,1,1,1,1,1,0,0,0,3,0,0,0,1,0}, {0,1,0,0,0,0,0,2,0,0,0,2,0,0,1,0,1,0,0,0,1,0,0,0,1,0}, {0,1,0,0,0,0,0,2,2,0,2,2,1,1,1,0,6,1,1,1,6,0,0,0,1,0}, {0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0}, {0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0}, {0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0}, {0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0}, {0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0}, {0,1,0,0,0,0,1,1,1,1,1,0,0,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