Как написать игру для ZX Spectrum на ассемблере


         

Изготовление маски спрайта - часть 2


;Графические переменные COL DEFB 0 ROW DEFB 0 LNG DEFB 0 HGT DEFB 0 ; Резервирование памяти для окна BUFFER DEFS N_SYM*11+1 ; Заголовок данных спрайта «корабль» KORAB DEFB 13 DEFB 0,3,7, 1,1,4, 1,2,7, 1,3,7, 1,4,7 DEFB 1,5,4, 2,0,15, 2,1,15, 2,2,15, 2,3,15 DEFB 2,4,15, 2,5,15, 2,6,15 ; Данные спрайта «корабль» DEFB 0,0,0,16,16,16,16,24 DEFB 0,0,0,0,0,0,0,31 DEFB 0,0,0,0,3,4,7,197 DEFB 60,38,30,60,149,159,179,191 DEFB 0,0,0,0,128,128,111,229 DEFB 0,0,0,0,0,0,240,0 DEFB 0,1,0,127,85,43,31,0 DEFB 2,251,84,255,85,187,255,0 DEFB 183,254,201,255,85,255,255,0 DEFB 238,12,191,213,127,255,255,0 DEFB 63,217,255,85,255,255,255,0 DEFB 127,40,255,85,186,255,255,0 DEFB 128,0,254,20,184,240,224,0 ; Заголовок маски MASKA DEFB 14 DEFB 0,3,7, 1,1,4, 1,2,4, 1,3,4, 1,4,4 DEFB 1,5,4, 1,6,4, 2,0,15, 2,1,15, 2,2,15 DEFB 2,3,15, 2,4,15, 2,5,15, 2,6,15 ; Данные маски DEFB 255,255,199,199,199,199,195,129 DEFB 255,255,255,255,255,255,192,192 DEFB 255,255,255,248,240,240,16,0 DEFB 128,128,128,0,0,0,0,0 DEFB 255,255,255,63,63,0,0,0 DEFB 255,255,255,255,255,7,7,0 DEFB 255,255,255,255,255,255,255,63 DEFB 252,252,0,0,0,0,128,192 DEFB 0,0,0,0,0,0,0,0 DEFB 0,0,0,0,0,0,0,0 DEFB 0,0,0,0,0,0,0,0 DEFB 0,0,0,0,0,0,0,0 DEFB 0,0,0,0,0,0,0,0 DEFB 63,0,0,0,1,3,7,15 ; Заголовок спрайта «облако» OBL DEFB 4 DEFB 0,0,7, 0,1,7, 0,2,7, 0,3,7 ; Данные спрайта «облако» DEFB 0,48,218,255,255,98,56,0 DEFB 60,255,86,251,247,247,46,112 DEFB 0,58,127,207,123,239,118,57 DEFB 0,0,56,238,207,117,24,0 ; Заголовок спрайта «остров» LAND DEFB 14 DEFB 0,0,4, 0,1,4, 0,2,4, 0,3,4 DEFB 0,4,4, 0,5,4, 0,6,4, 0,7,4 DEFB 0,8,4, 0,9,4, 0,10,4, 0,11,4 DEFB 0,12,4, 0,13,4 ; Данные спрайта «остров» DEFB 0,0,0,0,0,0,28,255 DEFB 0,0,0,0,0,28,255,255 DEFB 0,0,0,0,48,255,255,255 DEFB 0,0,0,0,0,0,252,255 DEFB 0,0,0,0,0,3,63,255 DEFB 0,0,48,252,255,255,253,252 DEFB 0,0,0,0,193,243,255,255 DEFB 0,0,0,0,193,243,255,255 DEFB 0,0,0,0,0,3,63,255 DEFB 0,0,48,252,255,255,253,252 DEFB 0,0,0,0,193,243,255,255 DEFB 0,0,48,252,255,255,253,252 DEFB 0,0,0,0,193,243,255,255 DEFB 0,0,0,0,0,192,252,255




Содержание  Назад  Вперед