Revision | 817 (tree) |
---|---|
Time | 2012-03-01 02:09:50 |
Author | barnsey123 |
v.009 - Fixed introduced bugs regarding capturing the king. Changed the timer animations.
@@ -266,7 +266,7 @@ | ||
266 | 266 | //gameinput=0; // 0=undefined 1=play against computer, 2=human vs human |
267 | 267 | CopyFont(); //memcpy((unsigned char*)0xb400+32*8,Font_6x8_runic1_full,768); |
268 | 268 | hires(); |
269 | - message="*** V 0.008\n*** BY BARNSEY123\n*** ALSO: DBUG:CHEMA:JAMESD:XERON"; | |
269 | + message="*** V 0.009\n*** BY BARNSEY123\n*** ALSO: DBUG:CHEMA:JAMESD:XERON"; | |
270 | 270 | printmessage(); |
271 | 271 | setflags(0); // No keyclick, no cursor, no nothing |
272 | 272 | printtitles(); |
@@ -400,10 +400,6 @@ | ||
400 | 400 | } |
401 | 401 | if (a == kingns) // if candidate is on same row as king (don't move away if only one piece E/W) |
402 | 402 | { |
403 | -<<<<<<< .mine | |
404 | - //printf("%d:",kingpieces[EAST]); | |
405 | -======= | |
406 | ->>>>>>> .r812 | |
407 | 403 | if ((b > kingew)&&(kingpieces[EAST]==1)) {zerofoundpiece();} |
408 | 404 | if ((b < kingew)&&(kingpieces[WEST]==1)) {zerofoundpiece();} |
409 | 405 | } |
@@ -1160,7 +1156,7 @@ | ||
1160 | 1156 | void movepiece() |
1161 | 1157 | { |
1162 | 1158 | p1=1; // piece type comparison (lower) - used for determining takes - default=attacker |
1163 | - p2=1; // piece type comparison (upper) - used for determining takes - default=attacker | |
1159 | + p2=4; // piece type comparison (upper) - used for determining takes - default=attacker | |
1164 | 1160 | piecetype=players[ons][oew]; // obtain type of piece |
1165 | 1161 | // move piece |
1166 | 1162 | fb=0; |
@@ -1341,6 +1337,9 @@ | ||
1341 | 1337 | if (( players[pcheckns2][pcheckew2] == p1 )||(players[pcheckns2][pcheckew2] == p2 )||(players[pcheckns2][pcheckew2] == 4)) // |
1342 | 1338 | { |
1343 | 1339 | take++; |
1340 | + //if ((players[pcheckns1][pcheckew1]==3)&&(surrounded<3))take--; // if possible take is a king but not surrounded | |
1341 | + if (players[pcheckns1][pcheckew1]==3)take--; // if possible take is a king | |
1342 | + | |
1344 | 1343 | } |
1345 | 1344 | if ( computer[pcheckns2][pcheckew2] ) {inctarget();} // 31-10-2011 - can possibly take on next turn |
1346 | 1345 | } |
@@ -1417,7 +1416,7 @@ | ||
1417 | 1416 | for (timer=0;timer<8;timer++) |
1418 | 1417 | { |
1419 | 1418 | tileloop(); |
1420 | - pausetime=300;pause(); | |
1419 | + pausetime=250;pause(); | |
1421 | 1420 | } |
1422 | 1421 | } |
1423 | 1422 |
@@ -5,5 +5,5 @@ | ||
5 | 5 | %OSDK%\bin\pictconv -m0 -f0 -o4_BorderTiles pics\bordertiles.png border.s |
6 | 6 | %OSDK%\bin\pictconv -m0 -f0 -o4_TitleTiles pics\defence-force2.png defence.s |
7 | 7 | %OSDK%\bin\pictconv -m0 -f0 -o4_RunicTiles pics\runes.png runes.s |
8 | -%OSDK%\bin\pictconv -m0 -f0 -o4_TimerTiles pics\timer.png timer.s | |
8 | +%OSDK%\bin\pictconv -m0 -f0 -o4_TimerTiles pics\timer5.png timer.s | |
9 | 9 | pause |
@@ -1,29 +1,29 @@ | ||
1 | 1 | _TimerTiles |
2 | - .byt $7f,$7f,$7f,$60,$40,$40,$6c,$7b,$66,$69,$47,$72,$61,$47,$70,$67 | |
3 | - .byt $47,$7c,$68,$67,$62,$68,$57,$42,$68,$4e,$42,$67,$7b,$7c,$68,$4e | |
4 | - .byt $42,$68,$55,$42,$68,$64,$62,$67,$44,$5c,$61,$44,$50,$69,$44,$52 | |
5 | - .byt $6c,$7b,$66,$60,$40,$40,$7f,$7f,$7f,$60,$40,$40,$6c,$7b,$66,$69 | |
6 | - .byt $44,$52,$61,$44,$50,$67,$44,$5c,$68,$64,$7e,$68,$55,$7e,$68,$4f | |
7 | - .byt $7e,$67,$7b,$7c,$68,$4e,$42,$68,$55,$42,$68,$64,$62,$67,$44,$5c | |
8 | - .byt $61,$44,$50,$69,$44,$52,$6c,$7b,$66,$60,$40,$40,$7f,$7f,$7f,$60 | |
9 | - .byt $40,$40,$6c,$7b,$66,$69,$44,$52,$61,$44,$50,$67,$44,$5c,$68,$64 | |
10 | - .byt $62,$68,$55,$42,$68,$4e,$42,$67,$7b,$7c,$68,$4f,$7e,$68,$55,$7e | |
11 | - .byt $68,$64,$7e,$67,$44,$5c,$61,$44,$50,$69,$44,$52,$6c,$7b,$66,$60 | |
12 | - .byt $40,$40,$7f,$7f,$7f,$60,$40,$40,$6c,$7b,$66,$69,$44,$52,$61,$44 | |
13 | - .byt $50,$67,$44,$5c,$68,$64,$62,$68,$55,$42,$68,$4e,$42,$67,$7b,$7c | |
14 | - .byt $68,$4e,$42,$68,$57,$42,$68,$67,$62,$67,$47,$7c,$61,$47,$70,$69 | |
15 | - .byt $47,$72,$6c,$7b,$66,$60,$40,$40,$7f,$7f,$7f,$60,$40,$40,$6c,$7b | |
16 | - .byt $66,$69,$44,$52,$61,$44,$50,$67,$44,$5c,$68,$64,$62,$68,$55,$42 | |
17 | - .byt $68,$4e,$42,$67,$7b,$7c,$68,$4e,$42,$68,$5d,$42,$68,$7c,$62,$67 | |
18 | - .byt $7c,$5c,$61,$7c,$50,$69,$7c,$52,$6c,$7b,$66,$60,$40,$40,$7f,$7f | |
19 | - .byt $7f,$60,$40,$40,$6c,$7b,$66,$69,$44,$52,$61,$44,$50,$67,$44,$5c | |
20 | - .byt $68,$64,$62,$68,$55,$42,$68,$4e,$42,$67,$7b,$7c,$6f,$7e,$42,$6f | |
21 | - .byt $75,$42,$6f,$64,$62,$67,$44,$5c,$61,$44,$50,$69,$44,$52,$6c,$7b | |
22 | - .byt $66,$60,$40,$40,$7f,$7f,$7f,$60,$40,$40,$6c,$7b,$66,$69,$44,$52 | |
23 | - .byt $61,$44,$50,$67,$44,$5c,$6f,$64,$62,$6f,$75,$42,$6f,$7e,$42,$67 | |
24 | - .byt $7b,$7c,$68,$4e,$42,$68,$55,$42,$68,$64,$62,$67,$44,$5c,$61,$44 | |
25 | - .byt $50,$69,$44,$52,$6c,$7b,$66,$60,$40,$40,$7f,$7f,$7f,$60,$40,$40 | |
26 | - .byt $6c,$7b,$66,$69,$7c,$52,$61,$7c,$50,$67,$7c,$5c,$68,$7c,$62,$68 | |
27 | - .byt $5d,$42,$68,$4e,$42,$67,$7b,$7c,$68,$4e,$42,$68,$55,$42,$68,$64 | |
28 | - .byt $62,$67,$44,$5c,$61,$44,$50,$69,$44,$52,$6c,$7b,$66,$60,$40,$40 | |
2 | + .byt $7f,$7f,$7f,$60,$40,$40,$6d,$77,$7e,$6c,$67,$7c,$62,$57,$78,$69 | |
3 | + .byt $47,$72,$6c,$67,$66,$6a,$57,$4a,$6a,$56,$52,$68,$64,$62,$69,$4b | |
4 | + .byt $4a,$6a,$59,$4a,$6c,$64,$66,$69,$42,$52,$62,$59,$48,$6c,$60,$66 | |
5 | + .byt $6d,$7f,$76,$60,$40,$40,$7f,$7f,$7f,$60,$40,$40,$6d,$7f,$72,$6c | |
6 | + .byt $60,$66,$62,$53,$4e,$69,$48,$5e,$6c,$64,$7e,$6a,$51,$7e,$6a,$5b | |
7 | + .byt $7e,$68,$67,$7e,$69,$48,$40,$6a,$59,$4a,$6c,$64,$66,$69,$42,$52 | |
8 | + .byt $62,$59,$48,$6c,$60,$66,$6d,$7f,$76,$60,$40,$40,$7f,$7f,$7f,$60 | |
9 | + .byt $40,$40,$6d,$7f,$76,$6c,$60,$66,$62,$53,$48,$69,$48,$52,$6c,$64 | |
10 | + .byt $66,$6a,$53,$4a,$6a,$58,$40,$68,$67,$7e,$69,$4b,$7e,$6a,$59,$7e | |
11 | + .byt $6c,$64,$7e,$69,$42,$5e,$62,$59,$4e,$6c,$60,$66,$6d,$7f,$72,$60 | |
12 | + .byt $40,$40,$7f,$7f,$7f,$60,$40,$40,$6d,$7f,$76,$6c,$60,$66,$62,$53 | |
13 | + .byt $48,$69,$48,$52,$6c,$64,$66,$6a,$53,$4a,$6a,$5a,$52,$68,$64,$62 | |
14 | + .byt $69,$46,$4a,$6a,$57,$4a,$6c,$67,$66,$69,$47,$72,$62,$57,$78,$6c | |
15 | + .byt $67,$7c,$6d,$77,$7e,$60,$40,$40,$7f,$7f,$7f,$60,$40,$40,$6d,$7f | |
16 | + .byt $76,$6c,$60,$66,$62,$53,$48,$69,$48,$52,$6c,$64,$66,$6a,$53,$4a | |
17 | + .byt $6a,$5a,$52,$68,$64,$62,$69,$4d,$4a,$6a,$5d,$4a,$6c,$7c,$66,$69 | |
18 | + .byt $7c,$52,$63,$7d,$48,$67,$7c,$66,$6f,$7d,$76,$60,$40,$40,$7f,$7f | |
19 | + .byt $7f,$60,$40,$40,$6d,$7f,$76,$6c,$60,$66,$62,$53,$48,$69,$48,$52 | |
20 | + .byt $6c,$64,$66,$6a,$53,$4a,$60,$42,$52,$6f,$7c,$62,$6f,$7b,$4a,$6f | |
21 | + .byt $71,$4a,$6f,$64,$66,$6f,$42,$52,$6e,$59,$48,$6c,$60,$66,$69,$7f | |
22 | + .byt $76,$60,$40,$40,$7f,$7f,$7f,$60,$40,$40,$69,$7f,$76,$6c,$60,$66 | |
23 | + .byt $6e,$53,$48,$6f,$48,$52,$6f,$64,$66,$6f,$73,$4a,$6f,$7a,$52,$6f | |
24 | + .byt $7c,$62,$60,$43,$4a,$6a,$59,$4a,$6c,$64,$66,$69,$42,$52,$62,$59 | |
25 | + .byt $48,$6c,$60,$66,$6d,$7f,$76,$60,$40,$40,$7f,$7f,$7f,$60,$40,$40 | |
26 | + .byt $6f,$7d,$76,$67,$7c,$66,$63,$7d,$48,$69,$7c,$52,$6c,$7c,$66,$6a | |
27 | + .byt $5d,$4a,$6a,$4c,$52,$68,$64,$62,$69,$4b,$4a,$6a,$59,$4a,$6c,$64 | |
28 | + .byt $66,$69,$42,$52,$62,$59,$48,$6c,$60,$66,$6d,$7f,$76,$60,$40,$40 | |
29 | 29 |