diff --git a/assets.h b/assets.h index 7e9f8e5..e318438 100644 --- a/assets.h +++ b/assets.h @@ -28,256 +28,256 @@ static inline uint8_t SFG_getTexel(const uint8_t *texture, uint8_t x, uint8_t y) const uint8_t SFG_texturesWall[][SFG_TEXTURE_SIZE * SFG_TEXTURE_SIZE] = { { // 0: white wooden planks -4,5,3,4,3,4,4,20,4,21,21,4,4,20,21,57,4,4,21,5,21,4,4,5,3,4,4,4,21,4,4,4,4,5,3, -5,20,6,17,20,4,21,21,4,21,20,21,57,21,4,21,21,21,4,4,5,18,4,4,21,21,21,4,4,81, -136,26,0,3,2,18,3,4,21,4,4,21,3,4,49,21,21,4,5,21,4,4,5,26,4,4,21,21,21,4,4,4,4, -5,4,4,4,21,74,4,4,4,4,4,3,21,73,21,4,4,21,4,4,21,5,2,4,4,21,5,21,4,4,4,4,5,4,4, -4,4,3,4,4,4,4,4,3,5,65,21,4,4,4,21,4,4,5,2,4,4,5,21,21,4,4,4,4,21,4,4,4,21,3,4, -4,21,4,4,3,5,65,4,4,21,4,21,21,4,5,26,4,4,5,21,21,4,4,20,4,5,21,4,4,4,3,4,4,4,4, -4,3,5,1,4,4,4,4,5,21,4,5,3,4,4,21,21,4,4,4,20,4,5,5,4,4,21,3,4,4,4,4,4,3,5,1,4, -4,3,4,4,4,3,5,20,4,4,5,21,21,4,20,4,4,5,21,4,4,21,3,4,4,21,4,4,3,5,49,6,5,4,5,5, -3,5,6,2,4,4,5,21,21,4,4,3,4,21,5,4,4,21,3,4,4,5,4,4,3,22,0,0,0,0,0,0,0,0,0,56,4, -4,5,5,4,4,4,3,21,5,5,4,4,21,3,4,4,21,4,4,3,5,2,5,4,4,5,4,4,4,5,3,4,4,21,5,4,4,4, -3,4,5,5,4,4,4,4,4,4,5,4,4,3,5,1,4,4,4,5,4,4,4,5,3,4,21,21,5,21,4,4,3,21,21,5,4, -4,4,3,4,4,5,4,4,3,5,25,4,5,4,5,4,4,4,21,3,4,4,21,5,4,20,4,3,4,5,5,21,4,5,3,21,4, -21,4,4,3,5,73,4,5,4,5,4,21,4,4,3,4,21,5,5,21,4,4,26,4,5,5,21,4,5,3,4,20,21,4,4, -3,5,57,4,21,4,5,4,21,4,4,3,4,4,21,21,21,20,4,3,4,5,21,4,3,5,4,5,4,5,4,5,4,6,65, -4,21,4,5,4,21,4,4,3,4,21,21,21,4,3,4,3,4,5,21,4,4,4,26,10,0,16,0,16,0,17,0,4,21, -4,5,21,21,4,4,3,4,21,21,4,4,4,4,20,4,21,21,4,4,4,4,3,4,4,3,4,3,4,3,4,21,4,5,5,4, -4,4,3,4,4,21,4,4,4,4,3,4,5,21,21,4,21,4,3,4,4,4,4,3,4,3,4,21,4,5,21,4,4,4,3,4, -21,21,4,4,4,4,3,4,5,5,5,3,21,4,4,4,21,4,4,4,4,3,4,21,4,5,21,4,4,21,26,4,4,5,4,4, -4,4,3,4,5,5,21,3,21,4,4,21,4,4,4,3,4,26,4,5,20,21,21,4,4,21,3,4,21,5,21,4,4,4,3, -4,5,5,21,3,4,4,4,21,4,4,21,3,4,3,4,21,20,4,5,4,20,4,3,4,21,5,4,21,4,20,3,4,5,5, -4,3,21,20,4,21,4,4,21,3,4,3,4,4,4,4,21,4,4,21,3,4,4,5,4,4,4,20,3,4,5,5,21,3,4,4, -4,5,21,4,21,3,4,3,4,4,4,4,5,4,4,21,3,4,21,21,4,4,21,3,3,4,4,5,4,3,4,4,4,21,21, -21,21,3,21,26,4,4,21,4,5,4,4,21,3,21,4,21,4,4,4,20,3,21,21,5,4,3,4,20,4,5,21,21, -5,20,21,2,4,4,5,4,21,4,4,21,3,21,4,21,4,4,4,4,3,4,4,5,4,20,5,20,4,21,21,21,21,3, -21,2,4,4,5,21,21,4,4,21,82,6,4,4,5,4,5,5,3,21,4,21,4,3,5,3,4,21,5,21,21,3,21,2, -4,4,21,21,21,4,4,21,0,20,18,2,20,96,20,0,3,4,4,5,4,3,5,20,3,21,21,4,5,3,5,2,4,4, -4,21,21,4,4,21,3,3,3,3,4,3,3,3,3,4,4,21,4,20,5,20,4,21,5,4,21,3,21,65,4,4,21,5, -21,4,4,5,3,4,4,4,21,4,4,4,3,5,4,21,4,4,5,3,4,21,21,4,4,20,5,224,21,4,4,21,21,4, -4,5,26,4,4,4,21,4,4,4,4,5,4,4,4,4,4,3,20,21,21,4,4,20,21,57,4,4,4,5,5,4,21,5,18, -4,4,4,21,4,4,4 +4,4,4,21,4,4,4,3,5,4,4,21,5,21,4,4,57,21,20,4,4,21,21,4,20,4,4,3,4,3,5,4,4,4,21, +21,21,4,4,18,5,4,4,21,21,21,4,21,57,21,20,21,4,21,21,4,20,17,6,20,5,3,5,4,4,4, +21,21,21,4,4,26,5,4,4,21,5,4,21,21,49,4,3,21,4,4,21,4,3,18,2,3,0,26,136,81,4,4, +21,5,21,4,4,2,5,21,4,4,21,4,4,21,73,21,3,4,4,4,4,4,74,21,4,4,4,5,4,4,4,4,21,21, +5,4,4,2,5,4,4,21,4,4,4,21,65,5,3,4,4,4,4,4,3,4,4,4,4,5,4,4,4,4,21,21,5,4,4,26,5, +4,21,21,4,21,4,4,65,5,3,4,4,21,4,4,3,21,4,4,4,21,4,4,4,4,4,21,21,4,4,3,5,4,21,5, +4,4,4,4,1,5,3,4,4,4,4,4,3,4,4,4,21,5,4,20,20,4,21,21,5,4,4,20,5,3,4,4,4,3,4,4,1, +5,3,4,4,4,4,4,3,21,4,4,5,5,4,20,4,4,21,21,5,4,4,2,6,5,3,5,5,4,5,6,49,5,3,4,4,21, +4,4,3,21,4,4,21,5,4,4,4,4,4,5,5,4,4,56,0,0,0,0,0,0,0,0,0,22,3,4,4,5,4,4,3,21,4, +4,5,21,4,3,4,4,4,5,21,4,4,3,5,4,4,4,5,4,4,5,2,5,3,4,4,21,4,4,3,21,4,4,5,5,21,3, +4,4,21,5,21,21,4,3,5,4,4,4,5,4,4,4,1,5,3,4,4,5,4,4,4,4,4,4,5,5,4,3,4,20,4,5,21, +4,4,3,21,4,4,4,5,4,5,4,25,5,3,4,4,5,4,4,3,4,4,4,5,21,21,3,4,4,21,5,5,21,4,3,4,4, +21,4,5,4,5,4,73,5,3,4,4,21,4,21,3,5,4,21,5,5,4,3,4,20,21,21,21,4,4,3,4,4,21,4,5, +4,21,4,57,5,3,4,4,21,20,4,3,5,4,21,5,5,4,26,4,3,4,21,21,21,4,3,4,4,21,4,5,4,21, +4,65,6,4,5,4,5,4,5,4,5,3,4,21,5,4,3,4,4,4,4,21,21,4,3,4,4,21,21,5,4,21,4,0,17,0, +16,0,16,0,10,26,4,4,4,21,5,4,3,4,4,4,4,21,4,4,3,4,4,4,5,5,4,21,4,3,4,3,4,3,4,4, +3,4,4,4,4,21,21,4,20,4,4,4,4,21,21,4,3,4,4,4,21,5,4,21,4,3,4,3,4,4,4,4,3,4,21,4, +21,21,5,4,3,4,4,4,4,5,4,4,26,21,4,4,21,5,4,21,4,3,4,4,4,4,21,4,4,4,21,3,5,5,5,4, +3,4,4,4,21,5,21,4,3,21,4,4,21,21,20,5,4,26,4,3,4,4,4,21,4,4,21,3,21,5,5,4,3,20, +4,21,4,5,21,4,3,4,20,4,5,4,20,21,4,3,4,3,21,4,4,21,4,4,4,3,21,5,5,4,3,20,4,4,4, +5,4,4,3,21,4,4,21,4,4,4,4,3,4,3,21,4,4,21,4,20,21,3,4,5,5,4,3,3,21,4,4,21,21,4, +3,21,4,4,5,4,4,4,4,3,4,3,21,4,21,5,4,4,4,3,21,5,5,4,3,20,4,4,4,21,4,21,3,21,4,4, +5,4,21,4,4,26,21,3,21,21,21,21,4,4,4,3,4,5,4,4,3,4,4,4,4,21,4,21,3,21,4,4,21,4, +5,4,4,2,21,20,5,21,21,5,4,20,4,3,4,5,21,21,3,5,5,4,5,4,4,6,82,21,4,4,21,21,5,4, +4,2,21,3,21,21,21,21,4,20,5,20,4,5,4,4,3,0,20,96,20,2,18,20,0,21,4,4,21,21,21,4, +4,2,21,3,21,21,5,21,4,3,5,3,4,21,4,21,3,3,3,3,4,3,3,3,3,21,4,4,21,21,4,4,4,2,5, +3,5,4,21,21,3,20,5,3,4,5,4,4,3,4,4,4,21,4,4,4,3,5,4,4,21,5,21,4,4,65,21,3,21,4, +5,21,4,20,5,20,4,21,4,4,3,4,4,4,21,4,4,4,26,5,4,4,21,21,4,4,21,224,5,20,4,4,21, +21,4,3,5,4,4,21,4,5,3,4,4,4,21,4,4,4,18,5,21,4,5,5,4,4,4,57,21,20,4,4,21,21,20, +3,4,4,4,4,4,5,4 }, { // 1: skyscraper window -4,4,44,5,4,3,4,4,44,4,5,4,132,3,5,4,4,4,4,4,5,3,66,3,4,132,4,44,4,131,4,5,132,4, -44,4,4,3,5,4,5,5,4,4,4,3,4,4,5,5,4,4,4,2,66,4,4,4,4,4,4,131,4,4,4,4,4,5,4,3,5,4, -4,5,5,4,3,3,4,4,4,4,4,4,5,2,2,4,4,44,4,4,4,131,4,4,4,4,5,5,4,131,3,4,4,44,3,3, -50,1,0,137,3,50,3,4,3,2,1,3,3,4,4,4,4,3,51,5,4,4,4,2,2,59,3,3,3,3,3,3,3,3,3,3,3, -3,3,3,3,3,3,3,3,3,3,2,66,2,67,59,2,83,3,3,50,4,6,6,5,6,6,5,6,5,6,6,5,6,5,5,6,6, -6,6,6,6,6,6,3,66,8,2,5,5,5,4,138,3,5,5,5,4,5,5,4,5,5,5,5,5,5,4,5,5,4,5,5,5,5,6, -3,60,5,5,85,5,5,4,217,4,5,5,4,5,5,6,81,81,128,137,2,138,81,137,2,129,2,59,138, -128,5,6,3,4,86,5,4,4,4,4,2,3,5,5,5,5,5,6,128,48,137,81,48,81,81,128,81,59,129,2, -48,0,5,5,81,2,3,4,2,49,66,81,2,4,5,4,5,5,5,6,81,81,48,81,129,2,2,81,81,2,59,59, -128,48,4,6,81,2,2,66,4,4,4,4,2,3,5,5,5,5,5,6,128,81,0,81,2,59,129,59,129,81,81, -81,81,2,4,4,3,3,4,45,4,4,4,4,2,4,5,20,6,5,5,6,81,81,81,81,138,2,2,137,81,137,48, -81,128,138,5,4,4,3,5,5,4,4,3,4,2,4,5,5,4,5,5,6,81,81,129,81,128,130,81,81,81,81, -128,128,138,81,5,6,3,4,4,4,4,3,4,4,2,3,5,5,5,5,5,6,48,48,81,48,81,3,138,48,128, -137,81,81,2,2,4,6,59,3,4,4,4,4,4,4,138,4,5,5,5,4,5,6,48,48,48,48,0,137,81,48,2, -81,0,128,139,59,5,5,2,4,4,4,44,4,4,4,3,26,5,4,5,5,5,6,6,68,6,6,6,6,6,6,6,6,6,6, -6,68,4,6,66,3,4,4,4,4,4,4,3,3,5,5,5,5,5,6,68,61,6,68,6,61,6,76,6,60,6,76,6,6,5, -5,82,4,4,4,3,3,3,4,2,3,5,5,28,4,5,6,0,0,0,0,81,2,138,0,0,2,130,3,59,130,5,6,81, -3,4,4,3,3,4,2,2,26,5,5,5,5,5,6,0,0,0,0,0,216,81,2,129,2,59,59,59,3,4,6,2,49,2,2, -5,4,4,4,81,4,6,5,5,5,5,6,0,0,0,0,0,0,48,59,129,59,3,4,59,59,5,6,66,2,4,5,4,4,4, -4,131,26,5,5,5,5,5,6,0,0,48,0,0,0,48,216,2,4,59,59,3,51,5,6,218,2,5,4,4,4,4,4,3, -3,5,5,4,5,5,6,0,0,0,48,48,0,48,129,2,59,59,3,59,59,5,6,66,5,4,44,4,4,4,4,2,4,5, -5,4,5,5,6,0,81,48,48,48,0,128,138,81,3,3,59,59,3,5,5,138,4,4,4,4,3,4,4,3,3,4,28, -5,4,5,6,0,48,48,0,0,0,138,2,48,137,137,51,3,59,5,6,131,3,5,4,4,4,4,4,3,2,5,5,4, -5,5,6,0,0,0,0,0,0,48,81,0,0,130,59,59,59,5,5,2,51,4,4,4,4,4,4,4,2,5,4,5,4,5,4,5, -5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,2,3,5,4,3,3,4,4,3,131,6,5,5,5,5,5,5,5,6,6,6,5,5,5, -5,5,5,6,5,5,5,6,56,131,4,3,6,5,86,5,4,50,4,3,4,3,3,4,3,3,3,2,2,3,2,131,3,3,51,3, -51,2,3,3,3,2,50,3,66,3,2,2,2,3,3,3,3,3,2,3,1,50,3,3,3,3,3,3,3,2,4,132,4,5,4,4,4, -50,3,2,4,5,4,4,131,4,4,45,4,5,4,5,3,3,5,4,4,5,4,4,4,3,139,4,4,4,4,4,4,66,60,44, -4,4,45,5,3,4,5,4,5,4,4,4,3,3,5,4,4,4,4,4,4,4,138,4,4,4,4,4,4,2,44,4,4,61,4,5,5, -51,5,5,5,4,4,4,4,51,4,4,5,5,4,4,5,3,131,4,4,4,132,5,4,131,5,4 +5,4,131,4,44,4,132,4,3,66,3,5,4,4,4,4,4,5,3,132,4,5,4,44,4,4,3,4,5,44,4,4,4,4, +131,4,4,4,4,4,4,66,2,4,4,4,5,5,4,4,3,4,4,4,5,5,4,5,3,4,4,44,4,132,4,4,131,4,4,4, +44,4,4,2,2,5,4,4,4,4,4,4,3,3,4,5,5,4,4,5,3,4,5,4,4,4,5,51,3,4,4,4,4,3,3,1,2,3,4, +3,50,3,137,0,1,50,3,3,44,4,4,3,131,4,5,5,4,4,59,67,2,66,2,3,3,3,3,3,3,3,3,3,3,3, +3,3,3,3,3,3,3,3,3,3,59,2,2,4,4,4,2,8,66,3,6,6,6,6,6,6,6,6,5,5,6,5,6,6,5,6,5,6,6, +5,6,6,4,50,3,3,83,2,5,5,60,3,6,5,5,5,5,4,5,5,4,5,5,5,5,5,5,4,5,5,4,5,5,5,3,138, +4,5,5,5,5,86,4,3,6,5,128,138,59,2,129,2,137,81,138,2,137,128,81,81,6,5,5,4,5,5, +4,217,4,5,5,85,4,3,2,81,5,5,0,48,2,129,59,81,128,81,81,48,81,137,48,128,6,5,5,5, +5,5,3,2,4,4,4,4,66,2,2,81,6,4,48,128,59,59,2,81,81,2,2,129,81,48,81,81,6,5,5,5, +4,5,4,2,81,66,49,2,45,4,3,3,4,4,2,81,81,81,81,129,59,129,59,2,81,0,81,128,6,5,5, +5,5,5,3,2,4,4,4,4,5,5,3,4,4,5,138,128,81,48,137,81,137,2,2,138,81,81,81,81,6,5, +5,6,20,5,4,2,4,4,4,4,4,4,4,3,6,5,81,138,128,128,81,81,81,81,130,128,81,129,81, +81,6,5,5,4,5,5,4,2,4,3,4,4,4,4,3,59,6,4,2,2,81,81,137,128,48,138,3,81,48,81,48, +48,6,5,5,5,5,5,3,2,4,4,3,4,4,4,4,2,5,5,59,139,128,0,81,2,48,81,137,0,48,48,48, +48,6,5,4,5,5,5,4,138,4,4,4,4,4,4,3,66,6,4,68,6,6,6,6,6,6,6,6,6,6,6,68,6,6,5,5,5, +4,5,26,3,4,4,4,44,4,4,4,82,5,5,6,6,76,6,60,6,76,6,61,6,68,6,61,68,6,5,5,5,5,5,3, +3,4,4,4,4,4,4,3,81,6,5,130,59,3,130,2,0,0,138,2,81,0,0,0,0,6,5,4,28,5,5,3,2,4,3, +3,3,2,2,49,2,6,4,3,59,59,59,2,129,2,81,216,0,0,0,0,0,6,5,5,5,5,5,26,2,2,4,3,3,5, +4,2,66,6,5,59,59,4,3,59,129,59,48,0,0,0,0,0,0,6,5,5,5,5,6,4,81,4,4,4,5,4,5,2, +218,6,5,51,3,59,59,4,2,216,48,0,0,0,48,0,0,6,5,5,5,5,5,26,131,4,4,4,4,44,4,5,66, +6,5,59,59,3,59,59,2,129,48,0,48,48,0,0,0,6,5,5,4,5,5,3,3,4,4,4,4,4,4,4,138,5,5, +3,59,59,3,3,81,138,128,0,48,48,48,81,0,6,5,5,4,5,5,4,2,4,4,4,4,4,5,3,131,6,5,59, +3,51,137,137,48,2,138,0,0,0,48,48,0,6,5,4,5,28,4,3,3,4,4,3,4,4,4,51,2,5,5,59,59, +59,130,0,0,81,48,0,0,0,0,0,0,6,5,5,4,5,5,2,3,4,4,4,4,4,5,3,2,6,5,5,5,5,5,5,5,5, +5,5,5,5,5,5,5,4,5,4,5,4,5,2,4,4,4,4,4,3,4,131,56,6,5,5,5,6,5,5,5,5,5,5,6,6,6,5, +5,5,5,5,5,5,6,131,3,4,4,3,3,3,50,2,3,3,3,2,51,3,51,3,3,131,2,3,2,2,3,3,3,4,3,3, +4,3,4,50,4,5,86,5,6,2,3,50,4,4,4,5,4,132,4,2,3,3,3,3,3,3,3,50,1,3,2,3,3,3,3,3,2, +2,2,3,66,44,60,66,4,4,4,4,4,4,139,3,4,4,4,5,4,4,5,3,3,5,4,5,4,45,4,4,131,4,4,5, +4,4,44,2,4,4,4,4,4,4,138,4,4,4,4,4,4,4,5,3,3,4,4,4,5,4,5,4,3,5,45,4,4,4,5,131,4, +5,132,4,4,4,131,3,5,4,4,5,5,4,4,51,4,4,4,4,5,5,5,51,5,5,4,61,4 }, { // 2: pink high-texh wall -4,4,4,4,4,4,4,4,83,11,11,11,83,11,11,11,12,12,11,11,12,83,83,12,83,83,12,12,83, -12,12,12,4,4,4,4,4,4,4,4,11,11,11,11,11,12,11,12,12,83,11,11,12,12,11,12,12,12, -83,12,12,12,12,12,4,4,4,4,4,4,4,5,11,83,11,12,83,11,83,11,83,12,84,12,83,11,12, -12,84,12,12,12,12,12,12,12,4,4,4,4,4,5,4,5,84,83,83,83,83,83,83,83,83,83,83,83, -83,83,12,12,11,12,12,12,12,12,12,12,4,4,3,5,3,5,3,5,85,4,4,20,4,4,4,20,4,4,4,4, -83,12,84,12,11,83,12,83,12,12,12,12,5,4,4,5,3,5,3,5,83,83,83,83,83,83,83,61,84, -20,84,20,83,83,12,83,83,83,83,83,83,83,83,83,5,4,3,5,3,5,4,6,61,61,61,61,61,61, -83,83,61,20,84,4,83,12,83,61,61,61,61,61,61,61,61,61,5,4,4,5,3,5,3,5,85,4,20,20, -20,20,20,83,61,20,20,4,83,12,83,61,84,12,12,12,12,12,12,12,4,5,4,5,3,6,4,6,85, -84,20,84,20,20,20,83,61,20,20,4,83,84,83,61,11,12,12,12,12,12,12,12,5,4,4,5,4,5, -4,5,85,4,3,20,20,20,20,83,61,20,84,20,83,13,83,61,20,12,12,84,12,12,12,12,4,5,4, -5,3,6,4,6,85,20,20,84,84,20,84,83,83,83,83,83,83,83,83,83,83,83,83,83,12,12,12, -12,5,5,4,6,4,6,4,6,85,4,84,20,84,20,84,84,83,61,61,61,61,61,61,61,61,61,61,83, -61,12,12,12,5,5,4,5,4,6,4,5,85,84,20,20,20,20,20,84,20,84,84,84,83,12,13,20,20, -12,12,83,61,12,12,12,5,5,5,6,4,6,4,6,85,4,20,4,84,20,20,20,20,84,20,4,83,84,12, -13,12,12,12,83,61,13,13,12,5,5,4,5,4,6,4,6,85,84,84,4,84,20,20,20,20,20,84,20, -83,84,84,84,84,84,84,83,61,12,84,12,5,5,5,6,4,6,4,6,85,20,20,84,20,20,20,20,20, -20,20,84,83,12,84,84,12,84,12,83,61,12,20,12,5,5,5,6,4,7,4,6,85,84,84,4,84,84, -20,84,4,84,84,4,83,84,13,84,84,20,20,83,61,13,13,12,6,5,5,5,4,6,4,6,85,20,84,4, -84,20,84,4,4,84,84,84,83,85,13,13,13,84,12,83,61,84,84,12,5,5,5,6,5,6,5,7,85,20, -84,84,84,20,4,4,84,20,84,20,83,12,84,13,20,13,13,83,61,13,13,12,5,5,5,5,5,5,5,6, -85,4,4,4,84,84,4,4,4,4,20,4,83,85,13,13,13,20,13,83,61,13,13,12,6,5,5,5,5,6,5,6, -85,20,4,84,84,84,4,4,4,4,4,20,83,85,13,13,20,13,84,83,61,13,84,12,6,5,5,6,6,5,5, -6,85,84,84,84,84,4,4,84,83,83,83,83,83,83,83,83,83,83,83,83,61,13,13,12,6,5,6,5, -5,5,6,6,85,84,84,20,4,4,4,83,61,61,61,61,61,61,61,61,61,61,61,61,13,85,85,12,5, -5,5,5,6,5,5,6,85,3,84,84,4,4,4,83,61,4,4,4,83,85,83,61,85,85,85,13,85,85,13,12, -6,5,6,5,5,6,6,6,85,20,4,4,4,4,4,83,61,4,4,3,83,85,83,61,13,85,85,13,13,85,20,12, -6,5,6,5,6,5,7,5,85,84,3,20,84,4,4,83,61,4,4,84,83,12,83,61,85,13,13,13,13,13,20, -12,6,5,7,5,6,5,6,5,83,83,83,83,83,83,83,61,61,4,84,20,83,85,83,61,83,83,83,83, -83,83,83,83,7,5,5,5,6,5,7,5,61,61,61,61,61,61,61,61,20,3,3,84,83,13,13,61,61,61, -61,61,61,61,61,61,6,5,6,5,7,5,6,5,85,3,3,84,20,3,84,3,84,20,84,3,83,85,13,85,85, -85,85,13,85,85,85,12,7,5,7,5,5,5,7,5,85,85,85,85,85,85,85,85,85,85,85,85,84,85, -85,15,85,14,85,13,13,13,12,12,6,5,6,5,7,5,7,5,12,85,84,84,84,14,84,85,13,85,14, -85,85,13,85,85,12,85,85,13,13,85,20,12,6,6,6,5,6,5,6,5,85,84,13,13,13,13,13,13, -13,13,84,13,13,85,85,13,85,13,13,13,20,85,12,12 +12,12,12,83,12,12,83,83,12,83,83,12,11,11,12,12,11,11,11,83,11,11,11,83,4,4,4,4, +4,4,4,4,12,12,12,12,12,83,12,12,12,11,12,12,11,11,83,12,12,11,12,11,11,11,11,11, +4,4,4,4,4,4,4,4,12,12,12,12,12,12,12,84,12,12,11,83,12,84,12,83,11,83,11,83,12, +11,83,11,5,4,4,4,4,4,4,4,12,12,12,12,12,12,12,11,12,12,83,83,83,83,83,83,83,83, +83,83,83,83,83,84,5,4,5,4,4,4,4,4,12,12,12,12,83,12,83,11,12,84,12,83,4,4,4,4, +20,4,4,4,20,4,4,85,5,3,5,3,5,3,4,4,83,83,83,83,83,83,83,83,83,12,83,83,20,84,20, +84,61,83,83,83,83,83,83,83,5,3,5,3,5,4,4,5,61,61,61,61,61,61,61,61,61,83,12,83, +4,84,20,61,83,83,61,61,61,61,61,61,6,4,5,3,5,3,4,5,12,12,12,12,12,12,12,84,61, +83,12,83,4,20,20,61,83,20,20,20,20,20,4,85,5,3,5,3,5,4,4,5,12,12,12,12,12,12,12, +11,61,83,84,83,4,20,20,61,83,20,20,20,84,20,84,85,6,4,6,3,5,4,5,4,12,12,12,12, +84,12,12,20,61,83,13,83,20,84,20,61,83,20,20,20,20,3,4,85,5,4,5,4,5,4,4,5,12,12, +12,12,83,83,83,83,83,83,83,83,83,83,83,83,83,84,20,84,84,20,20,85,6,4,6,3,5,4,5, +4,12,12,12,61,83,61,61,61,61,61,61,61,61,61,61,83,84,84,20,84,20,84,4,85,6,4,6, +4,6,4,5,5,12,12,12,61,83,12,12,20,20,13,12,83,84,84,84,20,84,20,20,20,20,20,84, +85,5,4,6,4,5,4,5,5,12,13,13,61,83,12,12,12,13,12,84,83,4,20,84,20,20,20,20,84,4, +20,4,85,6,4,6,4,6,5,5,5,12,84,12,61,83,84,84,84,84,84,84,83,20,84,20,20,20,20, +20,84,4,84,84,85,6,4,6,4,5,4,5,5,12,20,12,61,83,12,84,12,84,84,12,83,84,20,20, +20,20,20,20,20,84,20,20,85,6,4,6,4,6,5,5,5,12,13,13,61,83,20,20,84,84,13,84,83, +4,84,84,4,84,20,84,84,4,84,84,85,6,4,7,4,6,5,5,5,12,84,84,61,83,12,84,13,13,13, +85,83,84,84,84,4,4,84,20,84,4,84,20,85,6,4,6,4,5,5,5,6,12,13,13,61,83,13,13,20, +13,84,12,83,20,84,20,84,4,4,20,84,84,84,20,85,7,5,6,5,6,5,5,5,12,13,13,61,83,13, +20,13,13,13,85,83,4,20,4,4,4,4,84,84,4,4,4,85,6,5,5,5,5,5,5,5,12,84,13,61,83,84, +13,20,13,13,85,83,20,4,4,4,4,4,84,84,84,4,20,85,6,5,6,5,5,5,5,6,12,13,13,61,83, +83,83,83,83,83,83,83,83,83,83,83,84,4,4,84,84,84,84,85,6,5,5,6,6,5,5,6,12,85,85, +13,61,61,61,61,61,61,61,61,61,61,61,61,83,4,4,4,20,84,84,85,6,6,5,5,5,6,5,6,12, +13,85,85,13,85,85,85,61,83,85,83,4,4,4,61,83,4,4,4,84,84,3,85,6,5,5,6,5,5,5,5, +12,20,85,13,13,85,85,13,61,83,85,83,3,4,4,61,83,4,4,4,4,4,20,85,6,6,6,5,5,6,5,6, +12,20,13,13,13,13,13,85,61,83,12,83,84,4,4,61,83,4,4,84,20,3,84,85,5,7,5,6,5,6, +5,6,83,83,83,83,83,83,83,83,61,83,85,83,20,84,4,61,61,83,83,83,83,83,83,83,5,6, +5,6,5,7,5,6,61,61,61,61,61,61,61,61,61,13,13,83,84,3,3,20,61,61,61,61,61,61,61, +61,5,7,5,6,5,5,5,7,12,85,85,85,13,85,85,85,85,13,85,83,3,84,20,84,3,84,3,20,84, +3,3,85,5,6,5,7,5,6,5,6,12,12,13,13,13,85,14,85,15,85,85,84,85,85,85,85,85,85,85, +85,85,85,85,85,5,7,5,5,5,7,5,7,12,20,85,13,13,85,85,12,85,85,13,85,85,14,85,13, +85,84,14,84,84,84,85,12,5,7,5,7,5,6,5,6,12,12,85,20,13,13,13,85,13,85,85,13,13, +84,13,13,13,13,13,13,13,13,84,85,5,6,5,6,5,6,6,6 }, { // 3: partly mossy concrete wall -3,19,36,3,19,3,20,4,4,20,3,4,37,5,37,4,3,4,4,4,4,4,4,5,4,37,4,4,4,4,5,4,130,4,3, -12,4,3,4,36,37,36,3,20,4,36,36,12,11,3,4,36,4,3,4,4,4,5,4,76,4,5,4,4,3,3,3,4,36, -3,36,36,4,36,3,36,4,36,36,4,11,19,4,4,4,4,4,4,4,4,4,4,4,4,5,4,3,3,36,3,12,3,4,4, -36,20,3,4,4,4,4,4,11,4,4,4,4,3,4,4,4,36,4,3,4,5,4,4,3,3,4,4,4,3,36,20,37,37,3, -12,3,20,36,12,11,3,4,4,4,3,4,4,4,36,37,4,4,4,5,4,3,3,3,19,36,3,4,36,36,20,4,4,4, -4,20,4,76,4,4,4,4,4,4,4,4,4,5,3,4,4,5,4,3,4,19,4,4,3,36,37,36,4,36,3,4,37,36,4, -3,4,4,4,4,4,4,37,4,37,36,4,4,4,4,4,3,3,3,3,4,3,36,36,4,36,3,4,36,4,20,19,3,4,4, -4,4,3,4,4,4,4,5,35,4,4,5,4,130,4,3,4,3,36,36,4,36,36,3,12,4,20,37,4,11,3,4,4,4, -3,4,4,4,36,4,3,4,4,36,3,3,3,4,12,36,4,20,37,36,20,3,4,36,4,37,37,11,4,4,4,4,4,4, -4,5,5,4,4,4,4,5,4,3,4,3,3,4,3,36,37,20,36,36,4,20,4,20,4,11,4,4,4,4,76,4,5,20,4, -37,4,20,5,4,4,3,12,3,36,12,12,36,36,36,4,3,36,4,5,36,4,3,4,12,4,4,4,4,4,4,5,5,4, -4,4,5,5,2,3,4,4,4,12,36,20,36,36,3,4,20,37,37,4,12,4,4,4,4,4,4,4,5,20,4,76,4,5, -20,4,2,4,4,4,3,36,36,4,37,4,4,20,4,5,20,20,11,4,4,4,4,4,77,4,4,5,5,76,4,5,5,4, -130,3,3,4,4,12,36,36,4,36,3,36,4,37,37,4,76,4,4,4,4,76,4,4,4,4,4,76,5,4,5,4,130, -3,4,4,130,3,36,36,36,4,3,4,4,4,36,36,3,4,4,4,4,76,3,4,4,4,5,4,4,5,4,4,3,4,11,3, -4,35,4,36,36,4,36,4,4,36,4,4,11,4,76,4,4,4,4,4,4,5,4,76,4,4,5,4,3,3,4,3,4,4,36, -36,4,4,36,4,20,5,20,4,76,4,4,4,4,4,4,5,20,4,5,76,4,5,5,4,11,4,4,4,4,19,36,20,36, -37,3,4,4,36,5,36,76,4,4,4,4,76,4,4,5,5,4,76,5,13,5,5,3,4,3,4,12,3,4,36,4,20,3, -20,4,5,37,4,11,4,5,77,4,4,4,4,20,5,5,4,77,5,4,4,3,4,4,12,4,3,36,4,4,4,3,4,5,36, -20,20,11,4,13,4,4,4,76,4,5,5,20,76,4,5,5,4,3,3,12,4,12,3,4,4,4,36,4,4,4,4,4,4, -11,4,4,4,4,4,4,4,4,4,5,4,5,5,20,5,3,4,4,4,12,11,4,4,36,5,4,20,4,20,37,4,11,4,4, -4,4,4,77,5,4,5,20,4,77,5,5,4,3,36,4,4,3,3,4,4,37,37,3,4,4,36,4,36,11,4,4,5,4,4, -76,4,13,5,5,76,4,20,5,4,3,4,4,12,4,4,20,4,4,4,4,4,4,20,37,4,11,4,4,4,20,4,4,4,5, -4,36,4,4,5,5,4,130,4,4,4,3,4,37,4,36,20,4,36,20,5,37,37,11,4,4,5,5,76,76,4,5,4, -5,76,5,5,20,4,3,12,4,12,4,4,4,4,20,4,3,4,4,4,20,4,11,4,20,36,20,4,4,77,4,13,5, -76,4,5,5,4,3,4,4,4,4,36,20,4,36,35,4,20,37,37,37,4,3,4,5,4,4,4,4,4,4,4,5,4,5,13, -5,4,130,3,12,3,4,4,4,36,20,4,35,5,20,20,4,20,11,4,20,4,37,3,4,4,77,5,4,4,4,5,5, -4,3,4,4,4,4,3,36,4,37,37,4,4,4,37,37,4,3,4,4,4,4,3,4,4,4,4,4,76,4,5,5,4,3,3,19, -3,4,19,4,20,4,36,4,4,37,37,20,37,3,3,4,36,4,3,4,4,4,4,4,4,5,13,5,4,3,3,4,4,4,3, -4,36,37,4,4,4,20,20,36,4,35,4,4,20,4,4,4,4,4,4,4,76,4,5,4,4 +4,5,4,4,4,4,37,4,5,4,4,4,4,4,4,3,4,37,5,37,4,3,20,4,4,20,3,19,3,36,19,3,4,4,5,4, +76,4,5,4,4,4,3,4,36,4,3,11,12,36,36,4,20,3,36,37,36,4,3,4,12,3,4,130,4,5,4,4,4, +4,4,4,4,4,4,4,4,4,19,11,4,36,36,4,36,3,36,4,36,36,3,36,4,3,3,3,4,4,5,4,3,4,36,4, +4,4,3,4,4,4,4,11,4,4,4,4,4,3,20,36,4,4,3,12,3,36,3,3,4,5,4,4,4,37,36,4,4,4,3,4, +4,4,3,11,12,36,20,3,12,3,37,37,20,36,3,4,4,4,3,3,4,5,4,4,3,5,4,4,4,4,4,4,4,4,4, +76,4,20,4,4,4,4,20,36,36,4,3,36,19,3,3,3,4,4,4,4,4,36,37,4,37,4,4,4,4,4,4,3,4, +36,37,4,3,36,4,36,37,36,3,4,4,19,4,3,4,5,4,4,35,5,4,4,4,4,3,4,4,4,4,3,19,20,4, +36,4,3,36,4,36,36,3,4,3,3,3,3,3,36,4,4,3,4,36,4,4,4,3,4,4,4,3,11,4,37,20,4,12,3, +36,36,4,36,36,3,4,3,4,130,4,5,4,4,4,4,5,5,4,4,4,4,4,4,4,11,37,37,4,36,4,3,20,36, +37,20,4,36,12,4,3,3,4,4,5,20,4,37,4,20,5,4,76,4,4,4,4,11,4,20,4,20,4,36,36,20, +37,36,3,4,3,3,4,3,5,5,4,4,4,5,5,4,4,4,4,4,4,12,4,3,4,36,5,4,36,3,4,36,36,36,12, +12,36,3,12,3,4,20,5,4,76,4,20,5,4,4,4,4,4,4,4,12,4,37,37,20,4,3,36,36,20,36,12, +4,4,4,3,2,4,5,5,4,76,5,5,4,4,77,4,4,4,4,4,11,20,20,5,4,20,4,4,37,4,36,36,3,4,4, +4,2,4,5,4,5,76,4,4,4,4,4,76,4,4,4,4,76,4,37,37,4,36,3,36,4,36,36,12,4,4,3,3,130, +4,4,5,4,4,5,4,4,4,3,76,4,4,4,4,3,36,36,4,4,4,3,4,36,36,36,3,130,4,4,3,130,4,5,4, +4,76,4,5,4,4,4,4,4,4,76,4,11,4,4,36,4,4,36,4,36,36,4,35,4,3,11,4,3,4,5,5,4,76,5, +4,20,5,4,4,4,4,4,4,76,4,20,5,20,4,36,4,4,36,36,4,4,3,4,3,3,5,5,13,5,76,4,5,5,4, +4,76,4,4,4,4,76,36,5,36,4,4,3,37,36,20,36,19,4,4,4,4,11,4,4,5,77,4,5,5,20,4,4,4, +4,77,5,4,11,4,37,5,4,20,3,20,4,36,4,3,12,4,3,4,3,4,5,5,4,76,20,5,5,4,76,4,4,4, +13,4,11,20,20,36,5,4,3,4,4,4,36,3,4,12,4,4,3,5,20,5,5,4,5,4,4,4,4,4,4,4,4,4,11, +4,4,4,4,4,4,36,4,4,4,3,12,4,12,3,3,4,5,5,77,4,20,5,4,5,77,4,4,4,4,4,11,4,37,20, +4,20,4,5,36,4,4,11,12,4,4,4,3,4,5,20,4,76,5,5,13,4,76,4,4,5,4,4,11,36,4,36,4,4, +3,37,37,4,4,3,3,4,4,36,3,4,5,5,4,4,36,4,5,4,4,4,20,4,4,4,11,4,37,20,4,4,4,4,4,4, +20,4,4,12,4,4,3,4,20,5,5,76,5,4,5,4,76,76,5,5,4,4,11,37,37,5,20,36,4,20,36,4,37, +4,3,4,4,4,130,4,5,5,4,76,5,13,4,77,4,4,20,36,20,4,11,4,20,4,4,4,3,4,20,4,4,4,4, +12,4,12,3,4,5,13,5,4,5,4,4,4,4,4,4,4,5,4,3,4,37,37,37,20,4,35,36,4,20,36,4,4,4, +4,3,4,5,5,4,4,4,5,77,4,4,3,37,4,20,4,11,20,4,20,20,5,35,4,20,36,4,4,4,3,12,3, +130,4,5,5,4,76,4,4,4,4,4,3,4,4,4,4,3,4,37,37,4,4,4,37,37,4,36,3,4,4,4,4,3,4,5, +13,5,4,4,4,4,4,4,3,4,36,4,3,3,37,20,37,37,4,4,36,4,20,4,19,4,3,19,3,3,4,4,5,4, +76,4,4,4,4,4,4,4,20,4,4,35,4,36,20,20,4,4,4,37,36,4,3,4,4,4,3,3 }, { // 4: wooden chess pattern -2,11,11,11,11,73,11,11,11,11,1,11,11,11,11,2,83,83,43,83,83,65,83,43,43,43,10, -43,11,43,19,43,11,12,12,12,11,2,12,12,12,12,73,11,11,12,12,11,11,20,20,20,21,11, -20,21,20,21,20,20,20,20,20,20,11,12,12,12,12,73,12,11,12,11,1,11,11,11,12,11,11, -21,21,20,20,19,21,20,20,21,43,20,20,20,20,20,11,12,12,12,12,1,11,12,12,11,73,12, -11,11,12,11,11,21,21,20,21,19,21,20,20,21,19,20,20,20,20,19,11,12,12,12,11,73, -12,12,11,12,73,12,12,11,12,11,19,21,21,20,21,19,21,20,20,21,43,20,21,20,20,43, -11,12,12,11,11,73,12,11,11,11,2,12,11,11,12,11,19,21,20,20,21,19,21,20,20,21,43, -20,20,20,20,43,11,12,12,11,12,2,12,11,11,11,2,12,11,11,12,2,19,21,21,20,21,81, -21,21,20,21,11,20,20,20,20,43,11,12,12,11,11,2,12,12,11,11,2,12,11,11,12,11,19, -21,20,20,21,81,20,20,20,21,11,20,21,20,20,43,11,12,12,11,11,1,12,12,11,11,2,12, -11,11,12,82,43,21,20,20,21,2,20,20,21,20,11,20,20,20,20,20,11,12,11,12,11,73,12, -12,11,11,2,11,11,11,12,11,43,20,20,20,21,34,20,20,21,21,11,20,20,20,20,20,11,12, -12,12,12,73,12,11,11,12,2,12,11,11,12,11,43,21,20,20,21,19,20,20,21,20,19,20,20, -20,20,43,11,12,12,12,12,2,12,11,11,12,2,12,12,11,12,2,19,20,20,20,21,19,21,20, -20,21,11,20,21,20,20,20,11,12,12,12,12,1,12,11,12,12,2,12,11,11,11,11,19,20,20, -20,20,19,20,20,20,20,11,20,20,20,20,20,11,12,12,12,11,1,12,11,12,12,2,11,11,11, -12,11,12,20,20,20,21,19,20,20,20,20,43,20,20,20,20,20,11,12,12,12,11,2,12,12,12, -12,2,12,12,12,12,2,19,20,20,20,21,11,20,20,20,21,43,21,21,20,21,20,2,11,2,2,2,1, -2,2,11,2,1,2,2,2,2,2,43,43,43,43,20,42,43,43,43,20,19,43,43,43,20,43,11,43,43, -43,20,43,20,43,43,20,43,20,20,20,20,19,2,11,11,11,11,2,11,11,11,11,2,12,11,11, -11,2,43,20,20,20,21,43,21,20,20,21,43,21,21,20,21,20,11,12,11,12,12,2,11,11,12, -11,2,12,11,11,12,2,43,20,43,20,20,43,21,20,21,21,19,21,21,21,21,21,11,11,11,12, -12,2,11,11,11,12,2,12,11,11,12,2,43,20,43,20,20,43,21,20,21,21,43,21,21,21,21, -21,11,12,11,12,12,2,11,11,11,12,2,12,11,11,11,2,43,20,43,20,20,43,21,20,21,21, -19,21,21,21,20,20,11,12,12,12,12,2,12,11,12,12,2,12,11,11,11,2,20,20,20,20,20, -43,21,20,21,21,43,21,21,21,21,21,11,11,12,12,12,2,12,12,12,12,2,12,11,11,12,2, -20,20,20,20,20,43,21,21,20,21,19,21,21,21,20,20,11,12,12,12,12,2,12,12,12,12,2, -12,11,11,12,2,43,20,43,20,20,43,21,21,20,21,19,21,21,21,21,20,11,12,12,12,12,2, -11,12,12,12,2,12,11,11,11,2,43,20,20,20,20,11,21,21,21,21,19,21,21,21,21,20,11, -12,12,12,12,2,12,11,12,12,2,12,11,11,12,2,43,20,12,20,20,43,21,21,21,21,19,21, -21,21,21,20,11,12,12,12,12,2,12,11,12,12,2,12,11,11,12,2,43,43,43,20,20,43,21, -21,20,21,10,21,21,21,21,20,11,11,11,11,12,2,12,11,12,12,2,12,11,11,12,2,43,20, -12,20,21,43,21,20,20,21,2,21,21,21,21,20,2,11,11,11,11,2,12,12,12,12,2,12,11,11, -12,2,43,20,20,21,21,11,20,21,20,21,19,21,21,21,21,20,2,12,12,12,2,2,12,12,12,12, -2,12,11,11,12,2,43,20,20,21,21,11,21,21,21,21,2,21,20,20,21,20,11,12,12,12,11,2, -12,12,11,11,2,12,12,11,12,2,43,20,20,21,21,11,20,20,21,21,19,21,21,21,21,20,11, -12,11,12,12,2,12,12,12,12,2,12,12,11,12,2,11,43,43,20,20,81,19,43,19,43,9,43,43, -43,43,43,11,20,19,20,43,19,20,43,20,20,81,19,20,43,20,11 +43,19,43,11,43,10,43,43,43,83,65,83,83,43,83,83,2,11,11,11,11,1,11,11,11,11,73, +11,11,11,11,2,20,20,20,20,20,20,21,20,21,20,11,21,20,20,20,11,11,12,12,11,11,73, +12,12,12,12,2,11,12,12,12,11,20,20,20,20,20,43,21,20,20,21,19,20,20,21,21,11,11, +12,11,11,11,1,11,12,11,12,73,12,12,12,12,11,19,20,20,20,20,19,21,20,20,21,19,21, +20,21,21,11,11,12,11,11,12,73,11,12,12,11,1,12,12,12,12,11,43,20,20,21,20,43,21, +20,20,21,19,21,20,21,21,19,11,12,11,12,12,73,12,11,12,12,73,11,12,12,12,11,43, +20,20,20,20,43,21,20,20,21,19,21,20,20,21,19,11,12,11,11,12,2,11,11,11,12,73,11, +11,12,12,11,43,20,20,20,20,11,21,20,21,21,81,21,20,21,21,19,2,12,11,11,12,2,11, +11,11,12,2,12,11,12,12,11,43,20,20,21,20,11,21,20,20,20,81,21,20,20,21,19,11,12, +11,11,12,2,11,11,12,12,2,11,11,12,12,11,20,20,20,20,20,11,20,21,20,20,2,21,20, +20,21,43,82,12,11,11,12,2,11,11,12,12,1,11,11,12,12,11,20,20,20,20,20,11,21,21, +20,20,34,21,20,20,20,43,11,12,11,11,11,2,11,11,12,12,73,11,12,11,12,11,43,20,20, +20,20,19,20,21,20,20,19,21,20,20,21,43,11,12,11,11,12,2,12,11,11,12,73,12,12,12, +12,11,20,20,20,21,20,11,21,20,20,21,19,21,20,20,20,19,2,12,11,12,12,2,12,11,11, +12,2,12,12,12,12,11,20,20,20,20,20,11,20,20,20,20,19,20,20,20,20,19,11,11,11,11, +12,2,12,12,11,12,1,12,12,12,12,11,20,20,20,20,20,43,20,20,20,20,19,21,20,20,20, +12,11,12,11,11,11,2,12,12,11,12,1,11,12,12,12,11,20,21,20,21,21,43,21,20,20,20, +11,21,20,20,20,19,2,12,12,12,12,2,12,12,12,12,2,11,12,12,12,11,43,20,43,43,43, +19,20,43,43,43,42,20,43,43,43,43,2,2,2,2,2,1,2,11,2,2,1,2,2,2,11,2,2,11,11,11, +12,2,11,11,11,11,2,11,11,11,11,2,19,20,20,20,20,43,20,43,43,20,43,20,43,43,43, +11,2,12,11,11,12,2,11,12,11,11,2,12,12,11,12,11,20,21,20,21,21,43,21,20,20,21, +43,21,20,20,20,43,2,12,11,11,12,2,12,11,11,11,2,12,12,11,11,11,21,21,21,21,21, +19,21,21,20,21,43,20,20,43,20,43,2,11,11,11,12,2,12,11,11,11,2,12,12,11,12,11, +21,21,21,21,21,43,21,21,20,21,43,20,20,43,20,43,2,11,11,11,12,2,12,12,11,12,2, +12,12,12,12,11,20,20,21,21,21,19,21,21,20,21,43,20,20,43,20,43,2,12,11,11,12,2, +12,12,12,12,2,12,12,12,11,11,21,21,21,21,21,43,21,21,20,21,43,20,20,20,20,20,2, +12,11,11,12,2,12,12,12,12,2,12,12,12,12,11,20,20,21,21,21,19,21,20,21,21,43,20, +20,20,20,20,2,11,11,11,12,2,12,12,12,11,2,12,12,12,12,11,20,21,21,21,21,19,21, +20,21,21,43,20,20,43,20,43,2,12,11,11,12,2,12,12,11,12,2,12,12,12,12,11,20,21, +21,21,21,19,21,21,21,21,11,20,20,20,20,43,2,12,11,11,12,2,12,12,11,12,2,12,12, +12,12,11,20,21,21,21,21,19,21,21,21,21,43,20,20,12,20,43,2,12,11,11,12,2,12,12, +11,12,2,12,11,11,11,11,20,21,21,21,21,10,21,20,21,21,43,20,20,43,43,43,2,12,11, +11,12,2,12,12,12,12,2,11,11,11,11,2,20,21,21,21,21,2,21,20,20,21,43,21,20,12,20, +43,2,12,11,11,12,2,12,12,12,12,2,2,12,12,12,2,20,21,21,21,21,19,21,20,21,20,11, +21,21,20,20,43,2,12,11,12,12,2,11,11,12,12,2,11,12,12,12,11,20,21,20,20,21,2,21, +21,21,21,11,21,21,20,20,43,2,12,11,12,12,2,12,12,12,12,2,12,12,11,12,11,20,21, +21,21,21,19,21,21,20,20,11,21,21,20,20,43,11,20,43,20,19,81,20,20,43,20,19,43, +20,19,20,11,43,43,43,43,43,9,43,19,43,19,81,20,20,43,43,11 }, { // 5: red brick wall -4,93,101,13,93,5,5,13,13,13,13,93,5,6,4,21,21,13,5,6,11,13,13,21,101,6,4,5,5,5, -5,6,4,93,13,13,93,5,5,93,13,13,13,93,5,5,93,13,13,93,13,6,11,101,101,101,101,6, -11,101,13,13,101,6,4,93,13,4,93,5,5,101,21,21,21,101,5,5,93,13,13,13,5,6,11,13, -101,101,101,6,11,21,21,21,13,6,4,93,101,101,93,5,5,101,21,21,21,101,6,5,93,13, -21,13,5,6,11,13,21,21,4,6,93,21,21,13,13,6,101,93,101,101,93,5,5,101,21,21,13, -93,6,5,93,13,21,13,5,6,11,13,21,21,13,6,93,13,4,13,4,6,4,93,101,4,93,5,5,101,21, -21,21,93,5,5,101,13,21,101,5,6,93,21,21,13,4,6,93,13,13,13,4,6,93,93,101,4,93,5, -5,101,21,21,21,93,5,5,13,13,21,101,5,5,93,13,21,101,4,6,93,13,13,13,4,6,93,93, -101,4,93,6,5,93,101,101,101,93,6,5,13,101,4,101,5,5,93,93,101,93,4,6,93,13,13, -13,4,6,11,101,13,13,93,6,6,6,6,6,6,5,6,5,21,101,4,101,5,6,5,5,5,5,6,6,93,13,101, -101,13,6,93,101,13,13,93,6,5,5,5,5,5,5,6,5,13,13,21,101,5,6,6,5,6,6,6,6,93,13, -13,13,5,6,93,93,13,13,93,6,100,100,13,13,13,100,6,4,13,21,21,101,5,5,106,93,13, -93,6,6,11,21,21,13,21,6,101,101,13,13,93,6,5,5,13,13,5,100,6,4,13,21,21,13,6,5, -93,13,101,11,6,6,93,13,13,13,21,6,4,101,13,13,93,6,5,13,13,13,13,100,6,4,13,21, -5,101,5,5,93,4,101,11,6,6,93,13,13,13,5,6,4,101,101,101,93,6,5,13,13,13,5,100,6, -4,101,21,21,93,5,5,93,93,101,19,5,6,11,13,13,13,21,6,4,101,101,101,93,5,5,13,13, -13,13,100,6,4,101,21,13,93,5,5,19,4,101,93,5,6,93,13,13,13,21,6,4,101,101,13,93, -5,5,13,13,13,13,100,6,5,101,21,13,93,5,5,93,93,101,11,5,6,93,13,13,13,21,6,4, -101,101,13,93,5,5,13,13,13,13,100,6,5,101,21,13,93,5,5,93,101,4,19,5,6,93,13,13, -13,21,6,4,101,101,101,93,6,5,13,13,13,13,100,6,5,101,21,13,101,5,5,19,13,101,93, -5,6,93,13,21,13,21,6,93,101,101,13,11,6,5,100,13,13,13,100,6,5,101,13,21,101,5, -6,93,4,101,93,6,6,93,21,13,13,21,6,4,5,13,13,93,6,5,13,13,13,13,100,6,5,93,93, -101,93,5,6,93,13,101,93,5,6,11,13,13,93,5,6,5,7,6,6,6,6,5,13,13,13,13,100,6,5,6, -6,6,6,5,5,93,21,13,13,5,6,93,13,13,13,5,6,4,5,21,4,93,6,5,13,5,5,5,100,6,5,5,5, -5,5,5,5,93,13,13,13,5,6,6,7,7,6,6,6,4,13,21,21,93,6,5,5,5,5,13,100,6,4,93,13,13, -13,13,6,93,13,101,93,5,6,5,21,13,101,4,6,4,13,21,21,93,6,5,5,13,13,13,100,6,4, -101,21,21,13,21,6,19,4,101,93,5,6,93,13,13,101,13,6,4,13,21,21,101,6,5,5,13,13, -13,5,6,5,101,21,21,21,21,6,11,93,101,93,5,6,93,21,21,13,5,6,4,13,21,21,101,6,5, -5,13,13,13,100,6,4,101,21,21,21,21,6,93,101,101,93,5,5,93,21,21,13,5,6,4,13,21, -13,101,5,5,5,5,5,5,100,6,4,13,21,21,21,21,6,93,4,101,93,5,5,93,21,5,13,5,6,4,13, -21,21,13,5,5,5,13,13,13,100,6,4,13,21,21,21,21,6,93,13,21,93,5,5,93,21,21,13,21, -6,4,13,21,21,101,6,5,5,13,13,13,100,5,4,21,5,5,21,5,6,93,4,101,93,5,5,101,21,21, -13,21,6,4,13,21,13,93,6,5,13,13,13,5,13,6,4,21,21,21,13,5,6,93,13,93,178,5,5,93, -13,21,13,21,6,4,21,21,21,93,6,6,7,7,7,6,6,5,3,13,21,21,13,5,6,6,6,6,6,6,5,93,21, -21,13,21,6,4,13,13,13,93,6,5,5,4,4,4,93,6,4,13,21,21,13,5,6,5,5,5,21,6,6,93,21, -21,13,5,6 +6,5,5,5,5,4,6,101,21,13,13,11,6,5,13,21,21,4,6,5,93,13,13,13,13,5,5,93,13,101, +93,4,6,101,13,13,101,11,6,101,101,101,101,11,6,13,93,13,13,93,5,5,93,13,13,13, +93,5,5,93,13,13,93,4,6,13,21,21,21,11,6,101,101,101,13,11,6,5,13,13,13,93,5,5, +101,21,21,21,101,5,5,93,4,13,93,4,6,13,13,21,21,93,6,4,21,21,13,11,6,5,13,21,13, +93,5,6,101,21,21,21,101,5,5,93,101,101,93,4,6,4,13,4,13,93,6,13,21,21,13,11,6,5, +13,21,13,93,5,6,93,13,21,21,101,5,5,93,101,101,93,101,6,4,13,13,13,93,6,4,13,21, +21,93,6,5,101,21,13,101,5,5,93,21,21,21,101,5,5,93,4,101,93,4,6,4,13,13,13,93,6, +4,101,21,13,93,5,5,101,21,13,13,5,5,93,21,21,21,101,5,5,93,4,101,93,93,6,4,13, +13,13,93,6,4,93,101,93,93,5,5,101,4,101,13,5,6,93,101,101,101,93,5,6,93,4,101, +93,93,6,13,101,101,13,93,6,6,5,5,5,5,6,5,101,4,101,21,5,6,5,6,6,6,6,6,6,93,13, +13,101,11,6,5,13,13,13,93,6,6,6,6,5,6,6,5,101,21,13,13,5,6,5,5,5,5,5,5,6,93,13, +13,101,93,6,21,13,21,21,11,6,6,93,13,93,106,5,5,101,21,21,13,4,6,100,13,13,13, +100,100,6,93,13,13,93,93,6,21,13,13,13,93,6,6,11,101,13,93,5,6,13,21,21,13,4,6, +100,5,13,13,5,5,6,93,13,13,101,101,6,5,13,13,13,93,6,6,11,101,4,93,5,5,101,5,21, +13,4,6,100,13,13,13,13,5,6,93,13,13,101,4,6,21,13,13,13,11,6,5,19,101,93,93,5,5, +93,21,21,101,4,6,100,5,13,13,13,5,6,93,101,101,101,4,6,21,13,13,13,93,6,5,93, +101,4,19,5,5,93,13,21,101,4,6,100,13,13,13,13,5,5,93,101,101,101,4,6,21,13,13, +13,93,6,5,11,101,93,93,5,5,93,13,21,101,5,6,100,13,13,13,13,5,5,93,13,101,101,4, +6,21,13,13,13,93,6,5,19,4,101,93,5,5,93,13,21,101,5,6,100,13,13,13,13,5,5,93,13, +101,101,4,6,21,13,21,13,93,6,5,93,101,13,19,5,5,101,13,21,101,5,6,100,13,13,13, +13,5,6,93,101,101,101,4,6,21,13,13,21,93,6,6,93,101,4,93,6,5,101,21,13,101,5,6, +100,13,13,13,100,5,6,11,13,101,101,93,6,5,93,13,13,11,6,5,93,101,13,93,6,5,93, +101,93,93,5,6,100,13,13,13,13,5,6,93,13,13,5,4,6,5,13,13,13,93,6,5,13,13,21,93, +5,5,6,6,6,6,5,6,100,13,13,13,13,5,6,6,6,6,7,5,6,6,6,7,7,6,6,5,13,13,13,93,5,5,5, +5,5,5,5,6,100,5,5,5,13,5,6,93,4,21,5,4,6,4,101,13,21,5,6,5,93,101,13,93,6,13,13, +13,13,93,4,6,100,13,5,5,5,5,6,93,21,21,13,4,6,13,101,13,13,93,6,5,93,101,4,19,6, +21,13,21,21,101,4,6,100,13,13,13,5,5,6,93,21,21,13,4,6,5,13,21,21,93,6,5,93,101, +93,11,6,21,21,21,21,101,5,6,5,13,13,13,5,5,6,101,21,21,13,4,6,5,13,21,21,93,5,5, +93,101,101,93,6,21,21,21,21,101,4,6,100,13,13,13,5,5,6,101,21,21,13,4,6,5,13,5, +21,93,5,5,93,101,4,93,6,21,21,21,21,13,4,6,100,5,5,5,5,5,5,101,13,21,13,4,6,21, +13,21,21,93,5,5,93,21,13,93,6,21,21,21,21,13,4,6,100,13,13,13,5,5,5,13,21,21,13, +4,6,21,13,21,21,101,5,5,93,101,4,93,6,5,21,5,5,21,4,5,100,13,13,13,5,5,6,101,21, +21,13,4,6,21,13,21,13,93,5,5,178,93,13,93,6,5,13,21,21,21,4,6,13,5,13,13,13,5,6, +93,13,21,13,4,6,21,13,21,21,93,5,6,6,6,6,6,6,5,13,21,21,13,3,5,6,6,7,7,7,6,6,93, +21,21,21,4,6,5,13,21,21,93,6,6,21,5,5,5,6,5,13,21,21,13,4,6,93,4,4,4,5,5,6,93, +13,13,13,4 }, { // 6: grass-covered concrete wall, tiles with skyscraper window -28,44,43,4,36,35,36,36,43,36,4,3,131,35,4,3,3,36,36,36,4,35,42,35,36,131,35,35, -35,123,35,36,37,36,36,43,36,50,4,36,4,4,3,3,36,35,36,36,4,4,36,36,36,34,42,36,3, -36,3,36,36,131,36,35,36,36,36,36,37,36,36,36,110,36,4,43,50,50,3,3,36,36,36,3,4, -34,34,36,36,36,37,37,36,43,107,36,36,36,37,36,131,43,36,110,37,36,34,35,42,114, -209,107,36,42,35,36,35,34,115,35,36,36,37,36,37,36,36,37,43,36,36,36,36,37,36, -36,36,36,36,50,35,35,36,36,36,50,35,35,35,35,35,34,34,43,36,36,36,107,42,42,106, -43,36,36,36,37,133,37,36,43,36,4,5,43,43,36,36,36,4,37,5,5,5,36,36,109,37,37,36, -37,37,37,36,36,36,43,36,43,36,36,36,36,36,4,35,36,36,36,43,36,36,36,37,36,35,36, -36,37,36,36,37,36,37,37,36,43,43,36,36,36,43,36,36,36,36,4,3,43,36,43,36,107,43, -36,35,36,37,36,36,36,37,37,36,37,37,36,36,43,36,36,36,43,36,37,36,37,37,36,36, -36,36,43,36,131,43,43,36,36,36,36,37,36,37,36,36,37,37,37,36,36,36,43,43,36,36, -43,36,36,43,36,43,36,43,36,43,36,36,36,131,36,36,37,36,36,36,36,36,36,37,36,36, -37,36,36,43,36,37,36,37,37,36,36,36,43,36,36,43,36,36,36,36,107,3,36,36,35,35, -37,37,36,43,43,43,36,36,43,132,36,36,36,4,36,43,36,43,36,37,36,36,36,36,43,36, -36,36,37,37,4,36,37,43,37,37,36,36,36,43,36,36,36,36,37,37,36,36,36,36,36,36,36, -36,110,36,36,36,43,37,36,4,36,43,37,34,43,37,36,36,36,36,36,36,36,36,37,43,37, -36,43,36,36,37,36,36,36,110,36,36,37,36,36,36,35,35,37,43,37,36,36,107,43,36,36, -107,35,36,36,36,37,37,36,37,43,36,36,36,36,36,37,37,4,36,37,36,28,36,36,37,36, -36,37,43,35,26,35,50,36,36,36,36,36,36,36,37,36,36,36,36,36,36,36,36,36,37,131, -36,36,36,4,107,36,36,36,36,3,3,36,36,36,36,107,37,37,37,36,36,36,37,37,36,36,43, -37,36,36,36,43,43,36,131,36,43,36,43,36,50,50,36,43,36,36,37,36,36,35,36,37,37, -36,36,36,36,3,3,4,43,37,36,36,36,36,36,36,36,36,36,43,35,131,36,36,36,114,36,36, -37,37,36,36,36,43,36,107,36,4,4,36,37,37,36,43,43,36,43,36,36,43,41,106,36,36, -36,107,43,37,37,36,36,37,36,37,36,36,36,36,131,36,4,36,36,36,37,36,36,36,36,36, -36,36,36,4,36,36,36,43,36,36,43,36,36,107,36,36,36,36,3,36,36,36,36,36,43,36,36, -43,43,43,36,36,43,36,43,36,36,36,36,36,36,36,36,36,36,36,36,43,43,43,3,3,36,36, -36,36,36,36,37,37,36,36,43,36,36,36,43,36,36,43,36,36,36,37,36,36,43,36,43,36, -36,36,4,4,43,36,37,43,36,36,36,35,36,37,37,36,36,36,43,36,36,36,131,36,36,36,35, -36,36,35,36,36,36,36,107,36,43,43,36,36,36,36,36,43,37,36,107,43,36,43,36,43,36, -43,36,36,36,43,37,43,36,36,36,36,36,36,36,43,36,36,43,107,36,36,36,36,36,37,43, -37,36,36,36,36,36,37,43,36,36,36,43,37,37,35,4,36,36,36,36,36,36,43,37,43,36,36, -36,36,36,36,37,37,37,37,36,36,36,36,36,36,36,36,37,36,37,37,36,36,43,43,36,36, -36,36,36,36,43,36,43,107,36,36,43,4,37,36,43,36,36,36,83,37,107,36,36,37,36,36, -34,43,36,34,34,106,41,34,98,36,36,36,43,36,37,43,37,37,36,36,37,37,43,36,36,36, -36,36,37,34,34,50,106,42,114,35,26,35,35,35,34,42,36,43,36,43,36,37,36,36,36,37, -36,37,36,107,131,36,36,37,36,44,36,4,36,4,35,35,4,36,3,4,36,35,36,37,36,37,36, -35,37,37,37,36,36,36,43,36,36,3,34,36,4,36,37,36,36,36,35,35,4,36,36,36,3,50,50, -35,122,35,36,37,36,37,36,37,21,37,36,43,36,37,4,43,4,4,4,36,36,36,36,43,36,36,4, -4,36,36,4,35,131,36,35,35,37,36,37,37,36,36 +36,35,123,35,35,35,131,36,35,42,35,4,36,36,36,3,3,4,35,131,3,4,36,43,36,36,35, +36,4,43,44,28,35,36,131,36,36,3,36,3,36,42,34,36,36,36,4,4,36,36,35,36,3,3,4,4, +36,4,50,36,43,36,36,37,36,107,43,36,37,37,36,36,36,34,34,4,3,36,36,36,3,3,50,50, +43,4,36,110,36,36,36,37,36,36,36,36,37,36,36,37,36,37,36,36,35,115,34,35,36,35, +42,36,107,209,114,42,35,34,36,37,110,36,43,131,36,37,36,36,42,42,107,36,36,36, +43,34,34,35,35,35,35,35,50,36,36,36,35,35,50,36,36,36,36,36,37,36,36,36,36,43, +37,37,37,36,37,37,109,36,36,5,5,5,37,4,36,36,36,43,43,5,4,36,43,36,37,133,37,36, +36,36,43,106,37,37,36,37,36,36,37,36,36,35,36,37,36,36,36,43,36,36,36,35,4,36, +36,36,36,36,43,36,43,36,36,36,36,37,37,36,37,37,36,36,36,37,36,35,36,43,107,36, +43,36,43,3,4,36,36,36,36,43,36,36,36,43,43,36,37,37,37,36,36,37,36,37,36,36,36, +36,43,43,131,36,43,36,36,36,36,37,37,36,37,36,43,36,36,36,43,36,36,37,36,36,36, +36,36,36,37,36,36,131,36,36,36,43,36,43,36,43,36,43,36,36,43,36,36,43,43,36,36, +36,43,43,36,37,37,35,35,36,36,3,107,36,36,36,36,43,36,36,43,36,36,36,37,37,36, +37,36,43,36,36,37,36,36,37,37,43,37,36,4,37,37,36,36,36,43,36,36,36,36,37,36,43, +36,43,36,4,36,36,36,132,43,36,36,43,36,37,43,34,37,43,36,4,36,37,43,36,36,36, +110,36,36,36,36,36,36,36,36,37,37,36,36,36,36,43,36,36,36,36,37,43,37,35,35,36, +36,36,37,36,36,110,36,36,36,37,36,36,43,36,37,43,37,36,36,36,36,36,36,36,37,36, +36,37,36,36,28,36,37,36,4,37,37,36,36,36,36,36,43,37,36,37,37,36,36,36,35,107, +36,36,43,107,36,36,36,107,4,36,36,36,131,37,36,36,36,36,36,36,36,36,36,37,36,36, +36,36,36,36,36,50,35,26,35,43,36,43,36,43,36,131,36,43,43,36,36,36,37,43,36,36, +37,37,36,36,36,37,37,37,107,36,36,36,36,3,3,36,43,36,36,36,36,36,36,36,36,36,37, +43,4,3,3,36,36,36,36,37,37,36,35,36,36,37,36,36,43,36,50,50,106,41,43,36,36,43, +36,43,43,36,37,37,36,4,4,36,107,36,43,36,36,36,37,37,36,36,114,36,36,36,131,35, +4,36,36,36,36,36,36,36,36,37,36,36,36,4,36,131,36,36,36,36,37,36,37,36,36,37,37, +43,107,36,36,36,36,43,36,43,36,36,43,43,43,36,36,43,36,36,36,36,36,3,36,36,36, +36,107,36,36,43,36,36,43,36,36,36,36,43,36,36,36,43,36,36,37,37,36,36,36,36,36, +36,3,3,43,43,43,36,36,36,36,36,36,36,36,36,36,36,36,43,36,36,36,37,37,36,35,36, +36,36,43,37,36,43,4,4,36,36,36,43,36,43,36,36,37,36,36,36,43,36,43,36,43,36,43, +107,36,37,43,36,36,36,36,36,43,43,36,107,36,36,36,36,35,36,36,35,36,36,36,131, +36,36,36,36,36,36,37,43,37,36,36,36,36,36,107,43,36,36,43,36,36,36,36,36,36,36, +43,37,43,36,36,36,43,36,36,36,37,37,37,37,36,36,36,36,36,36,43,37,43,36,36,36, +36,36,36,4,35,37,37,43,36,36,36,43,37,36,36,43,36,37,4,43,36,36,107,43,36,43,36, +36,36,36,36,36,43,43,36,36,37,37,36,37,36,36,36,36,36,36,37,37,36,36,37,37,43, +37,36,43,36,36,36,98,34,41,106,34,34,36,43,34,36,36,37,36,36,107,37,83,36,36,37, +36,37,36,36,36,37,36,43,36,43,36,42,34,35,35,35,26,35,114,42,106,50,34,34,37,36, +36,36,36,36,43,36,36,36,37,37,37,35,36,37,36,37,36,35,36,4,3,36,4,35,35,4,36,4, +36,44,36,37,36,36,131,107,36,37,21,37,36,37,36,37,36,35,122,35,50,50,3,36,36,36, +4,35,35,36,36,36,37,36,4,36,34,3,36,36,43,36,36,37,37,36,37,35,35,36,131,35,4, +36,36,4,4,36,36,43,36,36,36,36,4,4,4,43,4,37,36,43,36 } }; diff --git a/main.c b/main.c index 2263da6..e1ad030 100755 --- a/main.c +++ b/main.c @@ -105,7 +105,7 @@ void SFG_pixelFunc(RCL_PixelInfo *pixel) (pixel->hit.type & 0x7) : ( - (pixel->texCoords.y >= RCL_UNITS_PER_SQUARE) ? + (pixel->texCoords.y < (pixel->wallHeight - RCL_UNITS_PER_SQUARE)) ? (pixel->hit.type & 0x7) : SFG_currentLevel.mapPointer->doorTextureIndex ) ):