21,7 → 21,9 |
bits 32 |
%include 'mos.inc' |
section .text |
%include 'lang.inc' ;fedesco |
|
|
MOS_HEADER01 start,end |
|
|
44,7 → 46,11 |
|
BUTTON_NEW_X equ 14 |
BUTTON_NEW_Y equ 30 |
%if lang = 'it' |
BUTTON_NEW_WIDTH equ 56 + 28 |
%else |
BUTTON_NEW_WIDTH equ 56 |
%endif |
|
BUTTON_SPIN_WIDTH equ 8 |
BUTTON_PL1DN_X equ 228 |
58,11 → 64,19 |
BUTTON_PL2UP_Y equ BUTTON_PL2DN_Y |
|
; label dimensions |
%if lang = 'it' |
LABEL_PL1_X equ 90 + 10 |
%else |
LABEL_PL1_X equ 90 |
%endif |
LABEL_PL1_Y equ (1 + BUTTON_PL1DN_Y + (BUTTON_HEIGHT-8)/2) |
LABEL_PL2_X equ LABEL_PL1_X |
LABEL_PL2_Y equ (1 + BUTTON_PL2DN_Y + (BUTTON_HEIGHT-8)/2) |
%if lang = 'it' |
LABEL_PL1TYPE_X equ (LABEL_PL1_X + 10*6 - 4) |
%else |
LABEL_PL1TYPE_X equ (LABEL_PL1_X + 10*6) |
%endif |
LABEL_PL1TYPE_Y equ LABEL_PL1_Y |
LABEL_PL2TYPE_X equ LABEL_PL1TYPE_X |
LABEL_PL2TYPE_Y equ LABEL_PL2_Y |
763,15 → 777,35 |
; |
; label table |
; |
|
%if lang = 'it' |
newgame db "Nuova partita",0 |
%else |
newgame db "New game",0 |
%endif |
down db "<",0 |
up db ">",0 |
%if lang = 'it' |
pl1 db "Giocatore 1:",0 |
pl2 db "Giocatore 2:",0 |
%else |
pl1 db "Player 1:",0 |
pl2 db "Player 2:",0 |
%endif |
|
|
%if lang = 'it' |
playertypes: |
db "Umano",0 |
PLAYERTYPELEN equ ($ - playertypes) |
db "CPU 1 ",0 |
db "CPU 2 ",0 |
db "CPU 3 ",0 |
db "CPU 4 ",0 |
db "CPU 5 ",0 |
db "CPU 6 ",0 |
db "CPU 7 ",0 |
db "CPU 8 ",0 |
%else |
playertypes: |
db "Human ",0 |
PLAYERTYPELEN equ ($ - playertypes) |
db "CPU level 1 ",0 |
782,6 → 816,8 |
db "CPU level 6 ",0 |
db "CPU level 7 ",0 |
db "CPU level 8 ",0 |
%endif |
|
NPLAYERTYPES equ (($-playertypes)/PLAYERTYPELEN) |
|
|
846,7 → 882,11 |
label_pl1type: |
istruc LABEL |
at LABEL.position |
%if lang = 'it' |
dd MOS_DWORD(LABEL_PL1TYPE_X + 18,LABEL_PL1TYPE_Y) |
%else |
dd MOS_DWORD(LABEL_PL1TYPE_X,LABEL_PL1TYPE_Y) |
%endif |
dd playertypes+PL1TYPE_INIT*PLAYERTYPELEN |
dd MOS_RGB(255,255,255) |
dd MOS_RGB(0,0,0) |
854,7 → 894,11 |
label_pl2type: |
istruc LABEL |
at LABEL.position |
%if lang = 'it' |
dd MOS_DWORD(LABEL_PL2TYPE_X + 18,LABEL_PL2TYPE_Y) |
%else |
dd MOS_DWORD(LABEL_PL2TYPE_X,LABEL_PL2TYPE_Y) |
%endif |
dd playertypes+PL2TYPE_INIT*PLAYERTYPELEN |
dd MOS_RGB(255,255,255) |
dd MOS_RGB(0,0,0) |
868,6 → 912,15 |
|
|
; status messages |
%if lang = 'it' |
player1hmnprmpt db "Turno del giocatore 1",0 |
player2hmnprmpt db "Turno del giocatore 2",0 |
player1cpuprmpt db "Attendi, giocatore 1 sta pensando...",0 |
player2cpuprmpt db "Attendi, giocatore 2 sta pensando...",0 |
itisadraw db "Pareggio",0 |
player1wins db "Vince giocatore 1",0 |
player2wins db "Vince Giocatore 2",0 |
%else |
player1hmnprmpt db "Make your move, player 1.",0 |
player2hmnprmpt db "Make your move, player 2.",0 |
player1cpuprmpt db "Player 1 is thinking, please wait...",0 |
875,6 → 928,7 |
itisadraw db "It's a draw.",0 |
player1wins db "Player 1 wins.",0 |
player2wins db "Player 2 wins.",0 |
%endif |
|
|
; pointer to ai player. future releases C4 might |