Compare commits
15 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d4d233c31a | ||
|
|
45a9b54f24 | ||
|
|
8d37673a78 | ||
|
|
43c049b9ad | ||
|
|
4d510ab628 | ||
|
|
32e9698dac | ||
|
|
22638ede8d | ||
|
|
5f17935ac4 | ||
|
|
1b76c761d5 | ||
|
|
c593ad5264 | ||
|
|
4d633bb6b8 | ||
|
|
1ea74dc42b | ||
|
|
72e00216e1 | ||
|
|
280bbbfba7 | ||
|
|
67a1465f57 |
21 changed files with 2852 additions and 105 deletions
2664
apps/lang/greek.lang
2664
apps/lang/greek.lang
File diff suppressed because it is too large
Load diff
|
|
@ -73,7 +73,7 @@ static unsigned char ai_direction[15][205] = /* level turn directio
|
|||
{2,0,3,1,3,1,2,0,2,0,2,0,3,1,3,1,2,1,2,0,3,0,3,0,3,1,3,1,2,1,2,0,2,0,3,0,2,0,3,1,2,0,3,1,2,0,2,1,2,1,2,0,2,0,3,1,0,3,0,3,2,0,2,0,2,0,3,1,0,3,2,0,2,1,2,1,3,0,3,1,3,1,3,0,3,0,1,2,1,3,1,3,1,2},/* second level*/
|
||||
{2,1,3,1,2,0,2,0,3,0,2,1,3,1,2,1,2,0,3,0,3,0,3,1,3,1,2,1,2,0,2,0,2,3,0,3,0,3,0,2,0,3,1,2,0,2,0,3,1,2,1,2,1,3,1,3,1,2,0,2,1,3,1,3,0,3,0,2,0,3,1,2,1,2,0,3,1,3,1,2,1,2,0,2,0,2,0,3,1,2,0,2,1,3,0,1,2,1,2,0},/*third level*/
|
||||
{2,1,3,1,2,0,2,0,3,0,2,1,3,1,2,1,2,0,3,0,3,0,3,1,3,1,2,1,2,0,2,0,2,3,0,3,0,3,0,2,0,3,1,2,0,2,0,3,1,2,1,2,1,3,1,3,1,2,0,2,0,3,1,3,1,2,1,2,0,2,0,3,0,2,0,3,0,2,1,2,1,3,0,3,0,2,1,0,3,1,3,1,2,1,2,1,3,1,3,0,3,0,2,0,2,1,2,1,3,1,3,0,3,1,3,2,0,2,0,2,0,2},/*level four*/
|
||||
{2,2,1,2,1,3,0,3,0,2,0,2,0,3,0,2,0,2,0,3,1,2,1,3,1,2,1,3,1,2,1,2,1,3,1,3,0,2,0,3,1,2,1,2,0,2,0,3,0,2,0,3,1,3,0,2,1,2,1,2,0,2,0,2,0,3,0,3,1,3,1,2,1,3,1,3,0,3,0,2,0,2,1,3,1,3,0,2,1,2,0,3,1,3,1,3,1,2,1,2,0,2,1,2,0,2,0,3,1,3,0,2,0,2},/*levels 5,7,8*/
|
||||
{2,2,1,2,1,3,0,3,0,2,0,2,0,3,0,2,0,2,0,3,1,2,1,3,1,2,1,3,1,2,1,2,1,3,1,3,0,2,0,3,1,2,1,2,0,2,0,3,0,2,0,3,1,3,0,2,1,2,1,2,0,2,0,2,0,3,0,3,1,3,1,2,1,3,1,3,0,3,0,2,0,2,1,3,1,3,0,2,1,2,0,3,1,3,1,3,1,2,1,2,0,2,1,2,0,2,0,3,1,3,0,2,0,2},/*levels 5,7,8,11*/
|
||||
{2,2,1,2,1,3,0,3,0,2,0,2,0,3,0,2,0,2,0,3,1,2,1,3,1,2,1,3,1,2,1,2,1,3,1,3,0,2,0,3,1,2,1,2,0,2,0,3,0,2,0,3,1,3,0,2,1,2,1,2,0,3,0,2,0,3,1,3,0,2,1,2,1,2,0,2,0,3,0,2,1,2,0,3,0,2,1,3,0,2,1,3,1,3,0,3,1,2,1,2,1,2,0,2,0,3,1,3,0,1,0,3,1},/*level six*/
|
||||
{2,1,3,1,2,0,2,0,3,0,2,0,3,0,3,1,2,0,2,0,2,1,3,0,3,1,3,0,2,1,2,0,3,1,3,1,2,1,3,1,3,0,2,0,3,1,2,1,3,1,2,0,3,0,2,0,3,1,2,0,3,1,2,1,2,1,2,0,2,0,2,0,3,0,3,1,3,1,3,0,3,1,2,1,3,1,3,1,2,0,3,0,2,1,3,1,2,0,3,0,2,1,3,1,3,2,1,3,0,2,0,2,0,2,1,3,1,2,1,3,1,2,0,3,0,2,0,3,1,3,1,2,0,2,0,3,1,2,0,3,0,2,1,3,0,3,1,2,1,3,1,2,1,2,1,2,0,2,1,3,0,2,1,2,1,2,0,2,1,2,0,2,1,2,0,2,0,3,0,2,0,3,1,2,0,2,1,3,1,2,1,3,1,3,0,2},/*level nine*/
|
||||
{2,2,1,2,1,3,0,3,0,2,0,2,0,3,0,2,0,2,0,3,1,2,1,3,1,2,1,3,1,2,1,2,1,3,1,3,0,2,0,3,1,2,1,2,0,2,0,3,0,2,0,3,1,3,0,2,1,2,1,2,0,3,0,2,0,3,1,2,0,2,1,2,1,2,1,2,0,2,0,3,0,2,1,3,0,3,0,1,2,1,3,1,2,1,0,3,0,2,0,2,1,2,0,2,0,3,1,3,0,2,1,2,1,2,0,3,0,2,0,3,1,2,0,2,1,2,1,2,1,2,0,2,0,3,0,2,1,3,0,3,0,1,2,1,3,1,2,1,0,3,0,2,0,2,1,2,0,2,0,3,1,3,0,2,1,2,1,2,},/*level ten*/
|
||||
|
|
@ -87,17 +87,17 @@ static unsigned char ai_direction[15][205] = /* level turn directio
|
|||
};
|
||||
static unsigned char ai_location[15][205] = /* level turn locations */
|
||||
{
|
||||
{0,52,58,57,61,34,60,37,54,43,55,42,58,43,61,46,60,49,57,48,54,49,51,42,52,43,55,39,54,34,55,34,58,37,107,52,58,57,61,48,60,49,57,52,42,57,39,48,35,57,40,54,39,48,35,52,37,51,40,48,43,45,42,42,39,39,35,43,37,49,40,48,43,42,49,49,45,45,42,42,39,39,40,34,39,43,35,34,40,37,39,223,39,55,52,54,57,55,57,58,54,57,119,52,58,55,57,57,54,53}, /* first level */
|
||||
{0,47,54,52,58,57,61,45,60,42,57,39,54,43,55,49,58,48,61,34,60,37,54,40,51,49,52,57,55,57,58,54,54,51,48,52,39,48,35,57,40,54,39,57,40,54,35,48,37,40,56,37,57,33,54,37,125,54,40,51,170,42,48,39,39,34,35,37,174,39,220,45,35,39,37,34,40,37,39,40,40,43,43,46,42,49,16,40,48,42,48,45,52,55}, /*second level */
|
||||
{0,52,58,57,61,45,60,42,57,43,54,39,55,49,58,48,61,34,60,37,54,40,51,49,52,57,55,57,58,54,54,51,51,139,49,48,52,42,57,39,48,35,57,40,54,39,48,35,52,37,51,40,48,43,49,46,52,55,39,54,34,55,34,58,37,57,43,54,42,51,49,52,48,55,39,35,43,37,49,40,48,43,45,42,42,39,39,35,43,37,39,35,34,37,43,127,37,39,40,34}, /*third level */
|
||||
{0,52,58,57,61,45,60,42,57,43,54,39,55,49,58,48,61,34,60,37,54,40,51,49,52,57,55,57,58,54,54,51,51,71,49,48,52,42,57,39,48,35,57,40,54,39,48,35,52,37,51,40,48,43,49,46,52,55,45,54,39,48,40,49,49,52,48,55,45,54,42,45,43,42,42,39,43,35,39,37,34,40,37,39,43,35,34,151,35,37,37,49,40,48,43,42,52,43,55,46,54,49,51,42,48,39,52,34,55,34,58,37,54,43,55,87,45,54,42,48,39,88}, /*fourth level */
|
||||
{0,14,39,58,34,61,46,60,49,57,45,54,42,45,43,42,42,39,39,35,43,37,42,40,43,43,42,49,49,52,48,55,42,58,43,61,57,60,54,54,57,55,57,58,54,57,48,54,52,39,48,35,52,37,57,35,54,46,51,49,42,48,39,42,34,39,37,35,43,37,49,40,48,43,49,46,52,42,57,39,39,35,34,37,40,105,43,35,39,40,34,39,40,40,43,43,49,52,48,55,45,54,39,58,36,57,34,54,37,55,43,54,39,51}, /*fifth level */
|
||||
{0,184,39,58,34,61,46,60,49,57,45,54,42,45,43,42,42,39,39,35,43,37,42,40,43,43,42,49,49,52,48,55,42,58,43,61,57,60,54,54,57,55,57,58,54,57,48,54,52,39,48,35,52,37,57,35,54,46,51,49,42,45,43,42,42,39,52,40,57,39,51,40,48,43,45,42,42,39,43,35,39,40,34,39,37,35,34,37,37,35,34,200,37,46,40,45,49,49,42,52,39,58,36,57,34,54,37,55,52,119,54,48,37,},/*sixth level*/
|
||||
{0,52,58,57,61,45,60,42,57,43,54,42,51,49,48,52,55,45,54,42,48,39,52,40,45,49,52,52,48,51,49,42,45,49,52,52,55,42,58,43,61,57,60,54,54,57,55,57,58,57,61,48,60,49,57,48,54,52,55,48,54,52,55,51,58,48,61,45,60,42,57,39,48,40,45,49,46,40,49,49,48,52,52,48,55,52,58,57,61,48,60,49,57,42,58,43,61,34,60,37,54,34,55,34,58,118,34,61,43,60,42,57,39,48,54,52,57,55,57,58,57,61,48,60,49,57,39,48,40,52,43,55,39,42,34,39,37,40,34,39,37,35,34,37,37,35,43,37,42,40,43,43,42,46,51,49,42,48,39,55,52,48,51,49,42,52,39,48,54,52,51,51,42,52,39,48,54,42,57,39,54,35,57,37,141,35,48,37,49,40,48,43,49,46,52,39},/*ninth level*/
|
||||
{0,14,39,58,34,61,46,60,49,57,45,54,42,45,43,42,42,39,39,35,43,37,42,40,43,43,42,49,49,52,48,55,42,58,43,61,57,60,54,54,57,55,57,58,54,57,48,54,52,39,48,35,52,37,57,35,54,46,51,49,42,45,43,42,42,39,57,40,54,39,51,40,48,43,42,46,39,42,34,39,37,35,34,40,37,39,43,205,37,42,40,43,43,42,73,45,43,42,42,39,39,58,36,57,34,54,37,55,52,48,51,49,42,52,45,60,},/*tenth level*/
|
||||
{0,52,58,57,61,45,60,42,57,43,54,42,51,49,48,52,55,45,54,42,48,39,52,40,45,49,52,52,48,51,49,42,45,49,52,52,55,42,58,43,61,57,60,54,54,57,55,57,58,57,61,48,60,49,57,48,54,52,55,48,54,52,55,51,58,48,61,45,60,42,57,39,48,40,45,49,46,40,49,49,48,52,52,48,55,52,58,57,61,48,60,49,57,42,58,43,61,34,60,37,54,34,55,34,58,94,34,61,43,60,42,57,39,48,54,52,57,55,57,58,57,61,48,60,49,57,39,48,40,52,43,55,39,42,34,39,37,40,34,39,37,35,34,37,37,191,46,40,45,49,46,52,39,42,40,43,43,49,49,42,52,39,55,52,48,51,49,42,52,39,48,54,39,48,35,57,37,51,40,48,43,45,42,42,39,39,35,43,37,57,40,54,35},/*twelfth level*/
|
||||
{0,14,39,58,34,61,46,60,49,57,45,54,42,45,43,42,42,39,39,35,43,37,42,40,43,43,42,49,49,52,48,55,42,58,43,61,57,60,54,54,57,55,57,58,54,57,48,54,52,39,48,35,52,37,48,35,57,37,54,35,104,52,37,51,40,48,43,49,49,42,48,39,42,34,39,57,40,54,46,51,49,42,48,39,52,34,55,34,58,37,54,40,51,49,48,52,39,42,40,43,43,49,52,52,48,37,42,34,39,37,35,34,37,37,35,43,37,127,39},/*fourteenth level*/
|
||||
{0,52,58,57,61,45,60,42,57,43,54,42,51,49,48,52,55,45,54,42,48,39,52,40,45,45,52,52,48,51,49,42,45,49,52,52,55,42,58,43,61,57,60,54,54,57,55,57,58,57,61,48,60,49,57,48,54,52,55,48,54,52,55,51,58,48,61,45,60,42,57,39,48,40,45,49,46,40,49,49,48,52,52,48,55,52,58,57,61,48,60,49,57,42,58,43,61,34,60,37,54,34,55,34,58,124,34,61,43,60,42,57,39,48,54,52,57,55,57,58,57,61,48,60,49,57,39,48,40,52,43,55,39,54,40,45,49,49,42,52,43,55,52,54,51,48,37,41,34,39,37,35,34,37,37,46,40,45,46,42,49,39,42,40,43,43,42,49,49,48,52,55,39,54,40,48,54,39,48,35,57,159,173,37,54,40,57,39,54,35,48,37,45,35,39,37,40},
|
||||
{0,52,58,57,61,34,60,37,54,43,55,42,58,43,61,46,60,49,57,48,54,49,51,42,52,43,55,39,54,34,55,34,58,37,26,52,58,57,61,48,60,49,57,52,42,57,39,48,35,57,40,54,39,48,35,52,37,51,40,48,43,45,42,42,39,39,35,43,37,49,40,48,43,42,49,49,45,45,42,42,39,39,40,34,39,43,35,34,40,37,39,3,39,55,52,54,57,55,57,58,54,57,3,52,58,55,57,57,54,53}, /* first level */
|
||||
{0,47,54,52,58,57,61,45,60,42,57,39,54,43,55,49,58,48,61,34,60,37,54,40,51,49,52,57,55,57,58,54,54,51,48,52,39,48,35,57,40,54,39,57,40,54,35,48,37,40,56,37,57,33,54,37,2,54,40,51,4,42,48,39,39,34,35,37,1,39,4,45,35,39,37,34,40,37,39,40,40,43,43,46,42,49,16,40,48,42,48,45,52,55}, /*second level */
|
||||
{0,52,58,57,61,45,60,42,57,43,54,39,55,49,58,48,61,34,60,37,54,40,51,49,52,57,55,57,58,54,54,51,51,4,49,48,52,42,57,39,48,35,57,40,54,39,48,35,52,37,51,40,48,43,49,46,52,55,39,54,34,55,34,58,37,57,43,54,42,51,49,52,48,55,39,35,43,37,49,40,48,43,45,42,42,39,39,35,43,37,39,35,34,37,43,3,37,39,40,34}, /*third level */
|
||||
{0,52,58,57,61,45,60,42,57,43,54,39,55,49,58,48,61,34,60,37,54,40,51,49,52,57,55,57,58,54,54,51,51,4,49,48,52,42,57,39,48,35,57,40,54,39,48,35,52,37,51,40,48,43,49,46,52,55,45,54,39,48,40,49,49,52,48,55,45,54,42,45,43,42,42,39,43,35,39,37,34,40,37,39,43,35,34,1,35,37,37,49,40,48,43,42,52,43,55,46,54,49,51,42,48,39,52,34,55,34,58,37,54,43,55,4,45,54,42,48,39,1}, /*fourth level */
|
||||
{0,14,39,58,34,61,46,60,49,57,45,54,42,45,43,42,42,39,39,35,43,37,42,40,43,43,42,49,49,52,48,55,42,58,43,61,57,60,54,54,57,55,57,58,54,57,48,54,52,39,48,35,52,37,57,35,54,46,51,49,42,48,39,42,34,39,37,35,43,37,49,40,48,43,49,46,52,42,57,39,39,35,34,37,40,3,43,35,39,40,34,39,40,40,43,43,49,52,48,55,45,54,39,58,36,57,34,54,37,55,43,54,39,51}, /*fifth level */
|
||||
{0,14,39,58,34,61,46,60,49,57,45,54,42,45,43,42,42,39,39,35,43,37,42,40,43,43,42,49,49,52,48,55,42,58,43,61,57,60,54,54,57,55,57,58,54,57,48,54,52,39,48,35,52,37,57,35,54,46,51,49,42,45,43,42,42,39,52,40,57,39,51,40,48,43,45,42,42,39,43,35,39,40,34,39,37,35,34,37,37,35,34,3,37,46,40,45,49,49,42,52,39,58,36,57,34,54,37,55,52,4,54,48,37,},/*sixth level*/
|
||||
{0,52,58,57,61,45,60,42,57,43,54,42,51,49,48,52,55,45,54,42,48,39,52,40,45,49,52,52,48,51,49,42,45,49,52,52,55,42,58,43,61,57,60,54,54,57,55,57,58,57,61,48,60,49,57,48,54,52,55,48,54,52,55,51,58,48,61,45,60,42,57,39,48,40,45,49,46,40,49,49,48,52,52,48,55,52,58,57,61,48,60,49,57,42,58,43,61,34,60,37,54,34,55,34,58,1,34,61,43,60,42,57,39,48,54,52,57,55,57,58,57,61,48,60,49,57,39,48,40,52,43,55,39,42,34,39,37,40,34,39,37,35,34,37,37,35,43,37,42,40,43,43,42,46,51,49,42,48,39,55,52,48,51,49,42,52,39,48,54,52,51,51,42,52,39,48,54,42,57,39,54,35,57,37,4,35,48,37,49,40,48,43,49,46,52,39},/*ninth level*/
|
||||
{0,14,39,58,34,61,46,60,49,57,45,54,42,45,43,42,42,39,39,35,43,37,42,40,43,43,42,49,49,52,48,55,42,58,43,61,57,60,54,54,57,55,57,58,54,57,48,54,52,39,48,35,52,37,57,35,54,46,51,49,42,45,43,42,42,39,57,40,54,39,51,40,48,43,42,46,39,42,34,39,37,35,34,40,37,39,43,3,37,42,40,43,43,42,4,45,43,42,42,39,39,58,36,57,34,54,37,55,52,48,51,49,42,52,45,60,},/*tenth level*/
|
||||
{0,52,58,57,61,45,60,42,57,43,54,42,51,49,48,52,55,45,54,42,48,39,52,40,45,49,52,52,48,51,49,42,45,49,52,52,55,42,58,43,61,57,60,54,54,57,55,57,58,57,61,48,60,49,57,48,54,52,55,48,54,52,55,51,58,48,61,45,60,42,57,39,48,40,45,49,46,40,49,49,48,52,52,48,55,52,58,57,61,48,60,49,57,42,58,43,61,34,60,37,54,34,55,34,58,1,34,61,43,60,42,57,39,48,54,52,57,55,57,58,57,61,48,60,49,57,39,48,40,52,43,55,39,42,34,39,37,40,34,39,37,35,34,37,37,4,46,40,45,49,46,52,39,42,40,43,43,49,49,42,52,39,55,52,48,51,49,42,52,39,48,54,39,48,35,57,37,51,40,48,43,45,42,42,39,39,35,43,37,57,40,54,35},/*twelfth level*/
|
||||
{0,14,39,58,34,61,46,60,49,57,45,54,42,45,43,42,42,39,39,35,43,37,42,40,43,43,42,49,49,52,48,55,42,58,43,61,57,60,54,54,57,55,57,58,54,57,48,54,52,39,48,35,52,37,48,35,57,37,54,35,4,52,37,51,40,48,43,49,49,42,48,39,42,34,39,57,40,54,46,51,49,42,48,39,52,34,55,34,58,37,54,40,51,49,48,52,39,42,40,43,43,49,52,52,48,37,42,34,39,37,35,34,37,37,35,43,37,4,39},/*fourteenth level*/
|
||||
{0,52,58,57,61,45,60,42,57,43,54,42,51,49,48,52,55,45,54,42,48,39,52,40,45,45,52,52,48,51,49,42,45,49,52,52,55,42,58,43,61,57,60,54,54,57,55,57,58,57,61,48,60,49,57,48,54,52,55,48,54,52,55,51,58,48,61,45,60,42,57,39,48,40,45,49,46,40,49,49,48,52,52,48,55,52,58,57,61,48,60,49,57,42,58,43,61,34,60,37,54,34,55,34,58,1,34,61,43,60,42,57,39,48,54,52,57,55,57,58,57,61,48,60,49,57,39,48,40,52,43,55,39,54,40,45,49,49,42,52,43,55,52,54,51,48,37,41,34,39,37,35,34,37,37,46,40,45,46,42,49,39,42,40,43,43,42,49,49,48,52,55,39,54,40,48,54,39,48,35,57,2,3,37,54,40,57,39,54,35,48,37,45,35,39,37,40},
|
||||
{0,14,39,58,34,61,46,60,49,57,48,54,52,48,51,45,48,42,49,39,42,40,43,43,42,49,49,52,52,58,57,61,45,60,42,57,39,39,52,55,45,54,39,42,34,39,37,35,43,37,46,35,52,46,51,49,42,48,54,42,57,35,54,37,57,40,54,39,45,35,34,40,37,52,34,55,34,58,34,61,57,60,57,57,57,53},
|
||||
{0,14,39,58,34,61,46,60,49,57,48,54,52,48,51,45,48,42,49,39,42,40,43,43,42,49,49,52,52,58,57,61,45,60,42,57,39,39,52,55,45,54,39,42,34,39,37,35,43,37,49,40,48,43,49,49,42,52,34,55,34,58,37,42,34,35,43,37,57,35,54,37,57,40,54,35,48,37,49,40,48,43,49,46,52,52,57,55,57},
|
||||
{0,52,58,57,61,34,60,37,54,43,55,42,58,43,61,46,60,49,57,52,54,48,55,52,58,55,57,57,54,54,48,51,49,42,52,43,55,39,58,36,57,34,54,37,42,34,39,37,35,43,37,39,35,34,37,37,46,40,49,49,48,52,35,48,37,49,40,48,43,45,42,42,39,52,35,57,37,54,40,57},
|
||||
|
|
@ -511,74 +511,43 @@ unsigned char ai( unsigned char turn )
|
|||
|
||||
/*Select level map*/
|
||||
if(ram_[0x4E13] < 20)
|
||||
{
|
||||
level=map[ram_[0x4E13]];
|
||||
}else if(ram_[0x4E13] != 255)
|
||||
else if(ram_[0x4E13] != 255)
|
||||
level=13;
|
||||
else
|
||||
level=14;
|
||||
|
||||
if((level == 4) || (level == 8) || (level == 10))
|
||||
{
|
||||
switch(ram_[0x4E13])
|
||||
{
|
||||
case 4:
|
||||
ai_location[4][85] = 105;
|
||||
break;
|
||||
case 6:
|
||||
ai_location[4][85] = 143;
|
||||
break;
|
||||
case 7:
|
||||
ai_location[4][85] = 91;
|
||||
break;
|
||||
case 10:
|
||||
ai_location[4][85] = 217;
|
||||
break;
|
||||
case 11:
|
||||
ai_location[8][105] = 94;
|
||||
ai_location[8][145] = 191;
|
||||
break;
|
||||
case 12:
|
||||
ai_location[8][105] = 138;
|
||||
ai_location[8][145] = 75;
|
||||
break;
|
||||
case 14:
|
||||
ai_location[10][105] = 124;
|
||||
ai_location[10][181] = 159;
|
||||
ai_location[10][182] = 173;
|
||||
break;
|
||||
case 15:
|
||||
ai_location[10][105] = 200;
|
||||
ai_location[10][181] = 75;
|
||||
ai_location[10][182] = 89;
|
||||
break;
|
||||
case 17:
|
||||
ai_location[10][105] = 154;
|
||||
ai_location[10][181] = 189;
|
||||
ai_location[10][182] = 203;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* AI can't start in middle of a level */
|
||||
if( turn > 200)
|
||||
if( turn > 210)
|
||||
{
|
||||
rb->splash(HZ/2, "AI will engage at next level start");
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* reset joystick direction on level start */
|
||||
if(!(ram_[0x4E0E] || turn))
|
||||
{
|
||||
/*levels that start facing right */
|
||||
if((level != 4) && (level != 11) && (level != 7) && (level != 5) && (level != 9) && (level !=12))
|
||||
clear_joystick();
|
||||
else
|
||||
{
|
||||
clear_joystick();
|
||||
setDeviceMode( Joy1_Right, DeviceOn);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
if( turn == 0)
|
||||
{
|
||||
if( (ram_[0x4E0E] == 1) && (ram_[0x4D3A] == 47))
|
||||
{
|
||||
turn++;
|
||||
turn=1;
|
||||
}
|
||||
joystick();
|
||||
return turn;
|
||||
}
|
||||
|
||||
|
||||
if(turn != 0)
|
||||
if((turn != 0) && (turn !=209))
|
||||
{
|
||||
/* set which axis to look for pac-man along */
|
||||
position = ram_[0x4D3A];
|
||||
|
|
@ -593,6 +562,15 @@ unsigned char ai( unsigned char turn )
|
|||
{
|
||||
if(ai_location[level][turn] < 30) /* handle turns using pinky's location as basis for turn timing */
|
||||
{
|
||||
if((ai_location[level][turn] < 10) && (ai_location[level][turn] > 0))
|
||||
{
|
||||
if( ram_[0x4DD0] == ai_location[level][turn])
|
||||
{
|
||||
ai_turn(level,turn);
|
||||
turn++;
|
||||
}
|
||||
}
|
||||
|
||||
if( ram_[0x4D31] == (ai_location[level][turn] + 30))
|
||||
{
|
||||
ai_turn(level,turn);
|
||||
|
|
@ -619,6 +597,11 @@ unsigned char ai( unsigned char turn )
|
|||
/*levels that start facing right */
|
||||
if((level != 4) && (level != 11) && (level != 7) && (level != 5) && (level != 9) && (level !=12))
|
||||
clear_joystick();
|
||||
else
|
||||
{
|
||||
clear_joystick();
|
||||
setDeviceMode( Joy1_Right, DeviceOn);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
return turn;
|
||||
|
|
@ -699,8 +682,10 @@ static int gameProc( void )
|
|||
turn = 250;
|
||||
}
|
||||
/* run ai */
|
||||
if (settings.ai)
|
||||
if (settings.ai && !ram_[0x4E02])
|
||||
turn = ai(turn);
|
||||
else
|
||||
joystick();
|
||||
#else
|
||||
joystick();
|
||||
#endif
|
||||
|
|
@ -833,4 +818,4 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
backlight_use_settings();
|
||||
|
||||
return PLUGIN_OK;
|
||||
}//
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
//#define SPEAR
|
||||
//#define SPEARDEMO
|
||||
//#define UPLOAD
|
||||
#define UPLOAD
|
||||
#define GOODTIMES
|
||||
#define CARMACIZED
|
||||
//#define APOGEE_1_0
|
||||
|
|
|
|||
|
|
@ -1059,7 +1059,7 @@ static int solitaire_menu(bool in_game)
|
|||
"Resume Game", "Start New Game",
|
||||
"Draw Cards Option",
|
||||
"Help", "Playback Control",
|
||||
"Save and Quit", "Quit");
|
||||
"Quit without Saving", "Quit");
|
||||
_ingame = in_game;
|
||||
|
||||
while (result < 0)
|
||||
|
|
@ -1099,11 +1099,11 @@ static int solitaire_menu(bool in_game)
|
|||
break;
|
||||
|
||||
case 5:
|
||||
result = MENU_SAVE_AND_QUIT;
|
||||
result = MENU_QUIT;
|
||||
break;
|
||||
|
||||
case 6:
|
||||
result = MENU_QUIT;
|
||||
result = MENU_SAVE_AND_QUIT;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<key>CFBundleName</key>
|
||||
<string>Rockbox Utility</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.4.0 ($Rev$)</string>
|
||||
<string>1.4.1 ($Rev$)</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>rbutilqt.icns</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
|
|
|
|||
|
|
@ -29,10 +29,14 @@ export TARGET_DIR
|
|||
export RBBASE_DIR
|
||||
export CFLAGS=$(EXTRALIB_CFLAGS)
|
||||
export CC=$(EXTRALIBS_CC)
|
||||
export CXX=$(EXTRALIBS_CXX)
|
||||
export AR=$(EXTRALIBS_AR)
|
||||
|
||||
libs: librbspeex libucl libipodpatcher libsansapatcher libmkamsboot libmktccboot libmkmpioboot libchinachippatcher libmkimxboot libmks5lboot
|
||||
|
||||
# To support cross compiles, we explicitly pass the CC flag below for
|
||||
# all tools which override CC or CXX in their makefiles. CXX is only
|
||||
# used by mkimxboot.
|
||||
|
||||
librbspeex:
|
||||
$(SILENT) $(MAKE) -C $(RBBASE_DIR)/tools/rbspeex BUILD_DIR=$(BUILD_DIR)/libspeex librbspeex.a
|
||||
|
|
@ -41,25 +45,25 @@ libucl:
|
|||
$(SILENT)$(MAKE) -C $(RBBASE_DIR)/tools/ucl/src BUILD_DIR=$(BUILD_DIR)/ucl libucl.a
|
||||
|
||||
libipodpatcher:
|
||||
$(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/ipodpatcher BUILD_DIR=$(BUILD_DIR)/ipodpatcher libipodpatcher.a
|
||||
$(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/ipodpatcher BUILD_DIR=$(BUILD_DIR)/ipodpatcher libipodpatcher.a CC=$(CC)
|
||||
|
||||
libsansapatcher:
|
||||
$(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/sansapatcher BUILD_DIR=$(BUILD_DIR)/sansapatcher libsansapatcher.a
|
||||
$(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/sansapatcher BUILD_DIR=$(BUILD_DIR)/sansapatcher libsansapatcher.a CC=$(CC)
|
||||
|
||||
libmkamsboot:
|
||||
$(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/mkamsboot BUILD_DIR=$(BUILD_DIR)/mkamsboot libmkamsboot.a
|
||||
$(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/mkamsboot BUILD_DIR=$(BUILD_DIR)/mkamsboot libmkamsboot.a CC=$(CC)
|
||||
|
||||
libmktccboot:
|
||||
$(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/mktccboot BUILD_DIR=$(BUILD_DIR)/mktccboot libmktccboot.a
|
||||
$(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/mktccboot BUILD_DIR=$(BUILD_DIR)/mktccboot libmktccboot.a CC=$(CC)
|
||||
|
||||
libmkmpioboot:
|
||||
$(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/mkmpioboot BUILD_DIR=$(BUILD_DIR)/mkmpioboot libmkmpioboot.a
|
||||
$(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/mkmpioboot BUILD_DIR=$(BUILD_DIR)/mkmpioboot libmkmpioboot.a CC=$(CC)
|
||||
|
||||
libchinachippatcher:
|
||||
$(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/chinachippatcher BUILD_DIR=$(BUILD_DIR)/chinachippatcher libchinachippatcher.a
|
||||
$(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/chinachippatcher BUILD_DIR=$(BUILD_DIR)/chinachippatcher libchinachippatcher.a CC=$(CC)
|
||||
|
||||
libmkimxboot:
|
||||
$(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/mkimxboot BUILD_DIR=$(BUILD_DIR)/mkimxboot libmkimxboot.a
|
||||
$(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/mkimxboot BUILD_DIR=$(BUILD_DIR)/mkimxboot libmkimxboot.a CC=$(CC) CXX=$(CXX)
|
||||
|
||||
libmks5lboot:
|
||||
$(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/mks5lboot BUILD_DIR=$(BUILD_DIR)/mks5lboot libmks5lboot.a
|
||||
$(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/mks5lboot BUILD_DIR=$(BUILD_DIR)/mks5lboot libmks5lboot.a CC=$(CC)
|
||||
|
|
|
|||
|
|
@ -42,6 +42,11 @@ const static struct {
|
|||
{ SystemInfo::DailyVoiceUrl, "daily_voice_url", "" },
|
||||
{ SystemInfo::ReleaseVoiceUrl, "release_voice_url", "" },
|
||||
{ SystemInfo::DoomUrl, "doom_url", "" },
|
||||
{ SystemInfo::Duke3DUrl, "duke3d_url", "" },
|
||||
{ SystemInfo::PuzzFontsUrl, "puzzfonts_url", "" },
|
||||
{ SystemInfo::QuakeUrl, "quake_url", "" },
|
||||
{ SystemInfo::Wolf3DUrl, "wolf3d_url", "" },
|
||||
{ SystemInfo::XWorldUrl, "xworld_url", "" },
|
||||
{ SystemInfo::ReleaseUrl, "release_url", "" },
|
||||
{ SystemInfo::DailyUrl, "daily_url", "" },
|
||||
{ SystemInfo::BuildInfoUrl, "build_info_url", "" },
|
||||
|
|
|
|||
|
|
@ -44,6 +44,11 @@ class SystemInfo : public QObject
|
|||
DailyFontUrl,
|
||||
DailyVoiceUrl,
|
||||
DoomUrl,
|
||||
Duke3DUrl,
|
||||
QuakeUrl,
|
||||
PuzzFontsUrl,
|
||||
Wolf3DUrl,
|
||||
XWorldUrl,
|
||||
ReleaseUrl,
|
||||
ReleaseVoiceUrl,
|
||||
ReleaseFontUrl,
|
||||
|
|
|
|||
|
|
@ -483,22 +483,51 @@ void SelectiveInstallWidget::installThemes(void)
|
|||
}
|
||||
}
|
||||
|
||||
static const struct {
|
||||
const char *name;
|
||||
const char *pluginpath;
|
||||
SystemInfo::SystemInfos zipurl; // add new games to SystemInfo
|
||||
} GamesList[] = {
|
||||
{ "Doom", "/.rockbox/rocks/games/doom.rock", SystemInfo::DoomUrl },
|
||||
{ "Duke3D", "/.rockbox/rocks/games/duke3d.rock", SystemInfo::Duke3DUrl },
|
||||
{ "Quake", "/.rockbox/rocks/games/quake.rock", SystemInfo::QuakeUrl },
|
||||
{ "Puzzles fonts", "/.rockbox/rocks/games/sgt-blackbox.rock", SystemInfo::PuzzFontsUrl },
|
||||
{ "Wolf3D", "/.rockbox/rocks/games/wolf3d.rock", SystemInfo::Wolf3DUrl },
|
||||
{ "XWorld", "/.rockbox/rocks/games/xworld.rock", SystemInfo::XWorldUrl },
|
||||
};
|
||||
|
||||
void SelectiveInstallWidget::installGamefiles(void)
|
||||
{
|
||||
if(ui.gamefileCheckbox->isChecked()) {
|
||||
// check if installed Rockbox has doom plugin. If not disable doom.
|
||||
if(!QFileInfo(m_mountpoint + "/.rockbox/rocks/games/doom.rock").exists()) {
|
||||
m_logger->addItem(tr("Your installation doesn't require game files, skipping."), LOGINFO);
|
||||
emit installSkipped(false);
|
||||
// build a list of zip urls that we need, then install
|
||||
QStringList gameUrls;
|
||||
QStringList gameNames;
|
||||
|
||||
for(unsigned int i = 0; i < sizeof(GamesList) / sizeof(GamesList[0]); i++)
|
||||
{
|
||||
// check if installed Rockbox has this plugin.
|
||||
if(QFileInfo(m_mountpoint + GamesList[i].pluginpath).exists()) {
|
||||
gameNames.append(GamesList[i].name);
|
||||
gameUrls.append(SystemInfo::value(GamesList[i].zipurl).toString());
|
||||
LOG_INFO() << gameUrls.at(gameUrls.size() - 1);
|
||||
}
|
||||
}
|
||||
|
||||
if(gameUrls.size() == 0)
|
||||
{
|
||||
m_logger->addItem(tr("Your installation doesn't require any game files, skipping."), LOGINFO);
|
||||
emit installSkipped(false);
|
||||
return;
|
||||
}
|
||||
|
||||
LOG_INFO() << "installing gamefiles";
|
||||
|
||||
// create new zip installer
|
||||
if(m_zipinstaller != NULL) m_zipinstaller->deleteLater();
|
||||
m_zipinstaller = new ZipInstaller(this);
|
||||
|
||||
m_zipinstaller->setUrl(SystemInfo::value(SystemInfo::DoomUrl).toString());
|
||||
m_zipinstaller->setLogSection("Game Addons");
|
||||
m_zipinstaller->setUrl(gameUrls);
|
||||
m_zipinstaller->setLogSection(gameNames);
|
||||
m_zipinstaller->setLogVersion();
|
||||
m_zipinstaller->setMountPoint(m_mountpoint);
|
||||
if(!RbSettings::value(RbSettings::CacheDisabled).toBool())
|
||||
|
|
@ -523,4 +552,3 @@ void SelectiveInstallWidget::changeEvent(QEvent *e)
|
|||
QWidget::changeEvent(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,11 @@
|
|||
#include <QtPlugin>
|
||||
#if QT_VERSION < 0x050000
|
||||
Q_IMPORT_PLUGIN(qtaccessiblewidgets)
|
||||
#else
|
||||
#elif QT_VERSION < 0x050400
|
||||
/*
|
||||
* accessibility is no longer a plugin after 5.4.0:
|
||||
* <https://bugreports.qt.io/browse/QTBUG-37957?focusedCommentId=239189&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-239189>
|
||||
*/
|
||||
Q_IMPORT_PLUGIN(AccessibleFactory)
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -25,6 +25,11 @@ daily_font_url=http://download.rockbox.org/daily/fonts/rockbox-fonts.zip
|
|||
; other
|
||||
manual_url=http://download.rockbox.org/manual/%MANUALBASENAME%.%EXTENSION%
|
||||
doom_url=http://download.rockbox.org/useful/rockdoom.zip
|
||||
duke3d_url=http://download.rockbox.org/useful/duke3d.zip
|
||||
quake_url=http://download.rockbox.org/useful/quake.zip
|
||||
puzzfonts_url=http://download.rockbox.org/useful/sgt-fonts.zip
|
||||
wolf3d_url=http://download.rockbox.org/useful/wolf3d.zip
|
||||
xworld_url=http://download.rockbox.org/useful/xworld.zip
|
||||
rbutil_url=http://download.rockbox.org/rbutil/
|
||||
|
||||
; [platforms] is used to determine the order in the device tree.
|
||||
|
|
@ -370,7 +375,6 @@ usbid=0x05ac1261
|
|||
configure_modelname=ipod6g
|
||||
playerpic=ipod6g
|
||||
encoder=rbspeex
|
||||
status=disabled
|
||||
|
||||
[ipod3g]
|
||||
name="Ipod (3rd gen)"
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ unix:!mac:!noccache {
|
|||
}
|
||||
MACHINEFLAGS = $$find(QMAKE_CFLAGS, -m[63][42])
|
||||
EXTRALIBS_OPTS += EXTRALIBS_CC=\"$$QMAKE_CC\"
|
||||
EXTRALIBS_OPTS += EXTRALIBS_CXX=\"$$QMAKE_CXX\"
|
||||
EXTRALIBS_OPTS += EXTRALIB_CFLAGS=\"$$MACHINEFLAGS\" \
|
||||
|
||||
MYBUILDDIR = $$OUT_PWD/build/
|
||||
|
|
@ -106,7 +107,8 @@ QMAKE_EXTRA_TARGETS += tags
|
|||
|
||||
# add a custom rule for making the translations
|
||||
LRELEASE = $$[QT_INSTALL_BINS]/lrelease
|
||||
win32:!cross {
|
||||
|
||||
win32:!cross:!exists($$LRELEASE) {
|
||||
LRELEASE = $$[QT_INSTALL_BINS]/lrelease.exe
|
||||
}
|
||||
lrelease.commands = $$LRELEASE -silent $$_PRO_FILE_
|
||||
|
|
@ -163,6 +165,8 @@ contains(QT_MAJOR_VERSION, 5) {
|
|||
}
|
||||
}
|
||||
|
||||
CONFIG += c++11
|
||||
|
||||
dbg {
|
||||
CONFIG += debug thread qt warn_on
|
||||
DEFINES += DBG
|
||||
|
|
@ -251,8 +255,10 @@ macx {
|
|||
}
|
||||
|
||||
static {
|
||||
QTPLUGIN += qtaccessiblewidgets
|
||||
LIBS += -L$$(QT_BUILD_TREE)/plugins/accessible -lqtaccessiblewidgets
|
||||
if(equals(QT_MAJOR_VERSION, 5) : lessThan(QT_MINOR_VERSION, 4)) | lessThan(QT_MAJOR_VERSION, 5) {
|
||||
QTPLUGIN += qtaccessiblewidgets
|
||||
LIBS += -L$$(QT_BUILD_TREE)/plugins/accessible -lqtaccessiblewidgets
|
||||
}
|
||||
LIBS += -L.
|
||||
DEFINES += STATIC
|
||||
message("using static plugin")
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
// combined differently.
|
||||
#define VERSION_MAJOR 1
|
||||
#define VERSION_MINOR 4
|
||||
#define VERSION_MICRO 0
|
||||
#define VERSION_MICRO 1
|
||||
#define VERSION_PATCH 0
|
||||
#define STR(x) #x
|
||||
#define VERSIONSTRING(a, b, c) STR(a) "." STR(b) "." STR(c)
|
||||
|
|
|
|||
28
tools/build-info.pl
Executable file
28
tools/build-info.pl
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
#!/usr/bin/perl
|
||||
# __________ __ ___.
|
||||
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||
# \/ \/ \/ \/ \/
|
||||
#
|
||||
# Generate the build-info.release file found on download.rockbox.org
|
||||
|
||||
require "./builds.pm";
|
||||
|
||||
print "[release]\n";
|
||||
|
||||
foreach my $b (&stablebuilds) {
|
||||
if(exists($builds{$b}{release})) {
|
||||
print "$b=$builds{$b}{release}\n";
|
||||
}
|
||||
else {
|
||||
print "$b=$publicrelease\n";
|
||||
}
|
||||
}
|
||||
|
||||
print "[status]\n";
|
||||
|
||||
foreach my $b (&allbuilds) {
|
||||
print "$b=$builds{$b}{status}\n";
|
||||
}
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
$publicrelease="3.14";
|
||||
$manualrelease="3.14";
|
||||
$voicerelease="3.14";
|
||||
$releasedate="01 May 2017";
|
||||
$releasenotes="/wiki/ReleaseNotes314";
|
||||
$publicrelease="3.15";
|
||||
$manualrelease="3.15";
|
||||
$voicerelease="3.15";
|
||||
$releasedate="15 Nov 2019";
|
||||
$releasenotes="/wiki/ReleaseNotes315";
|
||||
|
||||
%builds = (
|
||||
'archosav300' => {
|
||||
|
|
|
|||
27
tools/list_targets.pl
Executable file
27
tools/list_targets.pl
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
#!/usr/bin/perl
|
||||
# __________ __ ___.
|
||||
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||
# \/ \/ \/ \/ \/
|
||||
#
|
||||
# List all targets in builds.pm, categorized by target status.
|
||||
|
||||
require "./builds.pm";
|
||||
|
||||
print "Stable:\n";
|
||||
|
||||
for my $b (&stablebuilds) {
|
||||
print $builds{$b}{name} , "\n";
|
||||
}
|
||||
|
||||
print "Unstable:\n";
|
||||
for my $b (&usablebuilds) {
|
||||
print $builds{$b}{name} , "\n";
|
||||
}
|
||||
|
||||
print "Unusable:\n";
|
||||
for my $b (&allbuilds) {
|
||||
print $builds{$b}{name} , "\n" if($builds{$b}{status} == 1);
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/perl
|
||||
$version="3.14";
|
||||
$version="3.15";
|
||||
|
||||
require "tools/builds.pm";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
$version="3.14";
|
||||
$version="3.15";
|
||||
|
||||
require "tools/builds.pm";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
$version="3.14";
|
||||
$version="3.15";
|
||||
|
||||
require "tools/builds.pm";
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ deploy.svnpaths = \
|
|||
"tools/ucl",
|
||||
"tools/rbspeex",
|
||||
"utils/imxtools",
|
||||
"utils/nwztools",
|
||||
"lib/rbcodec/codecs/libspeex",
|
||||
"docs/COPYING",
|
||||
"docs/gpl-2.0.html",
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ extern "C" {
|
|||
|
||||
typedef uint8_t byte;
|
||||
|
||||
/* crypto.c */
|
||||
/* crypto.cpp */
|
||||
enum crypto_method_t
|
||||
{
|
||||
CRYPTO_NONE, /* disable */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue