Rev 1821 | Rev 3494 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1821 | Rev 3491 | ||
---|---|---|---|
Line 19... | Line 19... | ||
19 | ; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | ; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
Line 20... | Line 20... | ||
20 | 20 | ||
21 | bits 32 |
21 | bits 32 |
22 | %include 'mos.inc' |
22 | %include 'mos.inc' |
- | 23 | section .text |
|
- | 24 | %include 'lang.inc' ;fedesco |
|
Line 23... | Line 25... | ||
23 | section .text |
25 | |
Line 42... | Line 44... | ||
42 | ; button dimensions |
44 | ; button dimensions |
43 | BUTTON_HEIGHT equ 12 |
45 | BUTTON_HEIGHT equ 12 |
Line 44... | Line 46... | ||
44 | 46 | ||
45 | BUTTON_NEW_X equ 14 |
47 | BUTTON_NEW_X equ 14 |
- | 48 | BUTTON_NEW_Y equ 30 |
|
- | 49 | %if lang = 'it' |
|
- | 50 | BUTTON_NEW_WIDTH equ 56 + 28 |
|
46 | BUTTON_NEW_Y equ 30 |
51 | %else |
- | 52 | BUTTON_NEW_WIDTH equ 56 |
|
Line 47... | Line 53... | ||
47 | BUTTON_NEW_WIDTH equ 56 |
53 | %endif |
48 | 54 | ||
49 | BUTTON_SPIN_WIDTH equ 8 |
55 | BUTTON_SPIN_WIDTH equ 8 |
50 | BUTTON_PL1DN_X equ 228 |
56 | BUTTON_PL1DN_X equ 228 |
Line 56... | Line 62... | ||
56 | BUTTON_PL2DN_Y equ (BUTTON_PL1DN_Y + 20) |
62 | BUTTON_PL2DN_Y equ (BUTTON_PL1DN_Y + 20) |
57 | BUTTON_PL2UP_X equ (BUTTON_PL2DN_X + BUTTON_SPIN_WIDTH + 1) |
63 | BUTTON_PL2UP_X equ (BUTTON_PL2DN_X + BUTTON_SPIN_WIDTH + 1) |
58 | BUTTON_PL2UP_Y equ BUTTON_PL2DN_Y |
64 | BUTTON_PL2UP_Y equ BUTTON_PL2DN_Y |
Line 59... | Line 65... | ||
59 | 65 | ||
- | 66 | ; label dimensions |
|
- | 67 | %if lang = 'it' |
|
- | 68 | LABEL_PL1_X equ 90 + 10 |
|
60 | ; label dimensions |
69 | %else |
- | 70 | LABEL_PL1_X equ 90 |
|
61 | LABEL_PL1_X equ 90 |
71 | %endif |
62 | LABEL_PL1_Y equ (1 + BUTTON_PL1DN_Y + (BUTTON_HEIGHT-8)/2) |
72 | LABEL_PL1_Y equ (1 + BUTTON_PL1DN_Y + (BUTTON_HEIGHT-8)/2) |
63 | LABEL_PL2_X equ LABEL_PL1_X |
73 | LABEL_PL2_X equ LABEL_PL1_X |
- | 74 | LABEL_PL2_Y equ (1 + BUTTON_PL2DN_Y + (BUTTON_HEIGHT-8)/2) |
|
- | 75 | %if lang = 'it' |
|
- | 76 | LABEL_PL1TYPE_X equ (LABEL_PL1_X + 10*6 - 4) |
|
64 | LABEL_PL2_Y equ (1 + BUTTON_PL2DN_Y + (BUTTON_HEIGHT-8)/2) |
77 | %else |
- | 78 | LABEL_PL1TYPE_X equ (LABEL_PL1_X + 10*6) |
|
65 | LABEL_PL1TYPE_X equ (LABEL_PL1_X + 10*6) |
79 | %endif |
66 | LABEL_PL1TYPE_Y equ LABEL_PL1_Y |
80 | LABEL_PL1TYPE_Y equ LABEL_PL1_Y |
67 | LABEL_PL2TYPE_X equ LABEL_PL1TYPE_X |
81 | LABEL_PL2TYPE_X equ LABEL_PL1TYPE_X |
68 | LABEL_PL2TYPE_Y equ LABEL_PL2_Y |
82 | LABEL_PL2TYPE_Y equ LABEL_PL2_Y |
69 | LABEL_STATUS_X equ 14 |
83 | LABEL_STATUS_X equ 14 |
Line 761... | Line 775... | ||
761 | 775 | ||
762 | 776 | ||
763 | ; |
777 | ; |
- | 778 | ; label table |
|
- | 779 | ; |
|
764 | ; label table |
780 | %if lang = 'it' |
765 | ; |
781 | newgame db "Nuova partita",0 |
- | 782 | %else |
|
766 | 783 | newgame db "New game",0 |
|
767 | newgame db "New game",0 |
784 | %endif |
- | 785 | down db "<",0 |
|
- | 786 | up db ">",0 |
|
- | 787 | %if lang = 'it' |
|
- | 788 | pl1 db "Giocatore 1:",0 |
|
768 | down db "<",0 |
789 | pl2 db "Giocatore 2:",0 |
769 | up db ">",0 |
790 | %else |
- | 791 | pl1 db "Player 1:",0 |
|
Line -... | Line 792... | ||
- | 792 | pl2 db "Player 2:",0 |
|
- | 793 | %endif |
|
- | 794 | ||
- | 795 | %if lang = 'it' |
|
- | 796 | playertypes: |
|
- | 797 | db "Umano",0 |
|
- | 798 | PLAYERTYPELEN equ ($ - playertypes) |
|
- | 799 | db "CPU 1 ",0 |
|
- | 800 | db "CPU 2 ",0 |
|
- | 801 | db "CPU 3 ",0 |
|
- | 802 | db "CPU 4 ",0 |
|
- | 803 | db "CPU 5 ",0 |
|
770 | pl1 db "Player 1:",0 |
804 | db "CPU 6 ",0 |
771 | pl2 db "Player 2:",0 |
805 | db "CPU 7 ",0 |
772 | 806 | db "CPU 8 ",0 |
|
773 | 807 | %else |
|
774 | playertypes: |
808 | playertypes: |
775 | db "Human ",0 |
809 | db "Human ",0 |
Line 780... | Line 814... | ||
780 | db "CPU level 4 ",0 |
814 | db "CPU level 4 ",0 |
781 | db "CPU level 5 ",0 |
815 | db "CPU level 5 ",0 |
782 | db "CPU level 6 ",0 |
816 | db "CPU level 6 ",0 |
783 | db "CPU level 7 ",0 |
817 | db "CPU level 7 ",0 |
784 | db "CPU level 8 ",0 |
818 | db "CPU level 8 ",0 |
- | 819 | %endif |
|
- | 820 | ||
785 | NPLAYERTYPES equ (($-playertypes)/PLAYERTYPELEN) |
821 | NPLAYERTYPES equ (($-playertypes)/PLAYERTYPELEN) |
Line 786... | Line 822... | ||
786 | 822 | ||
787 | 823 | ||
Line 844... | Line 880... | ||
844 | dd LABEL_BGCOLOR_TRANSPARENT |
880 | dd LABEL_BGCOLOR_TRANSPARENT |
845 | iend |
881 | iend |
846 | label_pl1type: |
882 | label_pl1type: |
847 | istruc LABEL |
883 | istruc LABEL |
848 | at LABEL.position |
884 | at LABEL.position |
- | 885 | %if lang = 'it' |
|
- | 886 | dd MOS_DWORD(LABEL_PL1TYPE_X + 18,LABEL_PL1TYPE_Y) |
|
- | 887 | %else |
|
849 | dd MOS_DWORD(LABEL_PL1TYPE_X,LABEL_PL1TYPE_Y) |
888 | dd MOS_DWORD(LABEL_PL1TYPE_X,LABEL_PL1TYPE_Y) |
- | 889 | %endif |
|
850 | dd playertypes+PL1TYPE_INIT*PLAYERTYPELEN |
890 | dd playertypes+PL1TYPE_INIT*PLAYERTYPELEN |
851 | dd MOS_RGB(255,255,255) |
891 | dd MOS_RGB(255,255,255) |
852 | dd MOS_RGB(0,0,0) |
892 | dd MOS_RGB(0,0,0) |
853 | iend |
893 | iend |
854 | label_pl2type: |
894 | label_pl2type: |
855 | istruc LABEL |
895 | istruc LABEL |
856 | at LABEL.position |
896 | at LABEL.position |
- | 897 | %if lang = 'it' |
|
- | 898 | dd MOS_DWORD(LABEL_PL2TYPE_X + 18,LABEL_PL2TYPE_Y) |
|
- | 899 | %else |
|
857 | dd MOS_DWORD(LABEL_PL2TYPE_X,LABEL_PL2TYPE_Y) |
900 | dd MOS_DWORD(LABEL_PL2TYPE_X,LABEL_PL2TYPE_Y) |
- | 901 | %endif |
|
858 | dd playertypes+PL2TYPE_INIT*PLAYERTYPELEN |
902 | dd playertypes+PL2TYPE_INIT*PLAYERTYPELEN |
859 | dd MOS_RGB(255,255,255) |
903 | dd MOS_RGB(255,255,255) |
860 | dd MOS_RGB(0,0,0) |
904 | dd MOS_RGB(0,0,0) |
861 | iend |
905 | iend |
862 | NLABELS equ (($-labels)/LABEL_size) |
906 | NLABELS equ (($-labels)/LABEL_size) |
Line 866... | Line 910... | ||
866 | player1_type dd PL1TYPE_INIT |
910 | player1_type dd PL1TYPE_INIT |
867 | player2_type dd PL2TYPE_INIT |
911 | player2_type dd PL2TYPE_INIT |
Line 868... | Line 912... | ||
868 | 912 | ||
- | 913 | ||
- | 914 | ; status messages |
|
- | 915 | %if lang = 'it' |
|
- | 916 | player1hmnprmpt db "Turno del giocatore 1",0 |
|
- | 917 | player2hmnprmpt db "Turno del giocatore 2",0 |
|
- | 918 | player1cpuprmpt db "Attendi, giocatore 1 sta pensando...",0 |
|
- | 919 | player2cpuprmpt db "Attendi, giocatore 2 sta pensando...",0 |
|
- | 920 | itisadraw db "Pareggio",0 |
|
- | 921 | player1wins db "Vince giocatore 1",0 |
|
869 | 922 | player2wins db "Vince Giocatore 2",0 |
|
870 | ; status messages |
923 | %else |
871 | player1hmnprmpt db "Make your move, player 1.",0 |
924 | player1hmnprmpt db "Make your move, player 1.",0 |
872 | player2hmnprmpt db "Make your move, player 2.",0 |
925 | player2hmnprmpt db "Make your move, player 2.",0 |
873 | player1cpuprmpt db "Player 1 is thinking, please wait...",0 |
926 | player1cpuprmpt db "Player 1 is thinking, please wait...",0 |
874 | player2cpuprmpt db "Player 2 is thinking, please wait...",0 |
927 | player2cpuprmpt db "Player 2 is thinking, please wait...",0 |
875 | itisadraw db "It's a draw.",0 |
928 | itisadraw db "It's a draw.",0 |
- | 929 | player1wins db "Player 1 wins.",0 |
|
Line 876... | Line 930... | ||
876 | player1wins db "Player 1 wins.",0 |
930 | player2wins db "Player 2 wins.",0 |
877 | player2wins db "Player 2 wins.",0 |
931 | %endif |
878 | 932 |