|
@@ -14,7 +14,7 @@
|
|
|
* .......\./.............\./................\./........
|
|
|
* ........|...............|..................|.........
|
|
|
* ......./.\..............|................/.|.\.......
|
|
|
- * ...plus...minus.......minus........plus.minus.mixed. = gameOperation (game math operation)
|
|
|
+ * ...plus...minus.......equals........plus.minus.mixed. = gameOperation (game math operation)
|
|
|
* .......\./..............|................\.|./.......
|
|
|
* ........|...............|..................|.........
|
|
|
* ......1,2,3.........1,2,3,4,5............1,2,3,...... = gameDifficulty (difficulty level)
|
|
@@ -595,67 +595,87 @@ const gameList = [
|
|
|
},
|
|
|
},
|
|
|
},
|
|
|
- // {
|
|
|
- // gameName: 'scaleOne',
|
|
|
- // gameMode: ['a'],
|
|
|
- // gameOperation: ['plus'],
|
|
|
- // gameDifficulty: 1,
|
|
|
- // // info
|
|
|
- // gameShape: 'noShape',
|
|
|
- // assets: {
|
|
|
- // menu: {
|
|
|
- // gameNameBtn: 'game_3',
|
|
|
- // // infoBox
|
|
|
- // },
|
|
|
- // customMenu: {
|
|
|
- // gameModeBtn: ['mode_6'],
|
|
|
- // gameOperationBtn: ['operation_equals'],
|
|
|
- // auxiliarTitle: (x, y, offsetW, offsetH) => {},
|
|
|
- // // infoBox
|
|
|
- // },
|
|
|
- // map: {
|
|
|
- // characterAnimation: (operation) => {
|
|
|
- // return operation === 'plus'
|
|
|
- // ? ['green_tractor', [0, 1, 2, 3, 4], 3]
|
|
|
- // : ['red_tractor', [10, 11, 12, 13, 14], 3];
|
|
|
- // },
|
|
|
- // character: (operation) => {
|
|
|
- // let char;
|
|
|
- // if (operation == 'plus') {
|
|
|
- // char = game.add.sprite(
|
|
|
- // self.scene.roadPoints.x[curMapPosition],
|
|
|
- // self.scene.roadPoints.y[curMapPosition],
|
|
|
- // 'tractor',
|
|
|
- // 0,
|
|
|
- // 0.75
|
|
|
- // );
|
|
|
- // }
|
|
|
- // if (operation === 'minus') {
|
|
|
- // char = game.add.sprite(
|
|
|
- // self.scene.roadPoints.x[curMapPosition],
|
|
|
- // self.scene.roadPoints.y[curMapPosition],
|
|
|
- // 'tractor',
|
|
|
- // 10,
|
|
|
- // 0.75
|
|
|
- // );
|
|
|
- // }
|
|
|
- // char.rotate = -30; // 25 counterclockwise
|
|
|
- // return char;
|
|
|
- // },
|
|
|
- // startBuilding: () => {
|
|
|
- // return game.add
|
|
|
- // .image(self.scene.roadPoints.x[0], self.scene.roadPoints.y[0], 'garage', 0.6)
|
|
|
- // .anchor(0.5, 1);
|
|
|
- // },
|
|
|
- // endBuilding: () => {
|
|
|
- // return game.add
|
|
|
- // .image(self.scene.roadPoints.x[5], self.scene.roadPoints.y[5], 'farm', 0.9)
|
|
|
- // .anchor(0.4, 0.7);
|
|
|
- // },
|
|
|
- // },
|
|
|
- // end: {
|
|
|
- // // TODO
|
|
|
- // },
|
|
|
- // },
|
|
|
- // },
|
|
|
+ {
|
|
|
+ gameName: 'scaleOne',
|
|
|
+ gameMode: ['a'],
|
|
|
+ gameOperation: ['plus'],
|
|
|
+ gameDifficulty: 1,
|
|
|
+ gameShape: 'noShape',
|
|
|
+ assets: {
|
|
|
+ menu: {
|
|
|
+ gameNameBtn: 'game_3',
|
|
|
+ // TODO: infoBox
|
|
|
+ },
|
|
|
+ customMenu: {
|
|
|
+ gameModeBtn: ['mode_6'],
|
|
|
+ gameOperationBtn: ['operation_equals'],
|
|
|
+ gameModeDescription: ['sc1_a_description'],
|
|
|
+ gameOperationDescription: ['op_plus_description'],
|
|
|
+ gameDifficultyDescription: ['diff_1_description'],
|
|
|
+ gameLabelDescription: 'label_description',
|
|
|
+ auxiliarTitle: (x, y, offsetW, offsetH) => {
|
|
|
+ game.add.text(
|
|
|
+ x + 5 * offsetW,
|
|
|
+ y + offsetH + 50,
|
|
|
+ game.lang.show + '\n' + game.lang.title,
|
|
|
+ textStyles.h4_
|
|
|
+ );
|
|
|
+ },
|
|
|
+ // TODO: infoBox
|
|
|
+ },
|
|
|
+ map: {
|
|
|
+ characterAnimation: (operation) => {
|
|
|
+ return operation === 'plus'
|
|
|
+ ? ['green_tractor', [0, 1, 2, 3, 4], 3]
|
|
|
+ : ['red_tractor', [10, 11, 12, 13, 14], 3];
|
|
|
+ },
|
|
|
+ character: (operation) => {
|
|
|
+ let char;
|
|
|
+ if (operation == 'plus') {
|
|
|
+ char = game.add.sprite(
|
|
|
+ self.scene.roadPoints.x[curMapPosition],
|
|
|
+ self.scene.roadPoints.y[curMapPosition],
|
|
|
+ 'tractor',
|
|
|
+ 0,
|
|
|
+ 0.75
|
|
|
+ );
|
|
|
+ }
|
|
|
+ if (operation === 'minus') {
|
|
|
+ char = game.add.sprite(
|
|
|
+ self.scene.roadPoints.x[curMapPosition],
|
|
|
+ self.scene.roadPoints.y[curMapPosition],
|
|
|
+ 'tractor',
|
|
|
+ 10,
|
|
|
+ 0.75
|
|
|
+ );
|
|
|
+ }
|
|
|
+ char.rotate = -30; // 25 counterclockwise
|
|
|
+ return char;
|
|
|
+ },
|
|
|
+ startBuilding: () => {
|
|
|
+ return game.add
|
|
|
+ .image(
|
|
|
+ self.scene.roadPoints.x[0],
|
|
|
+ self.scene.roadPoints.y[0],
|
|
|
+ 'garage',
|
|
|
+ 0.6
|
|
|
+ )
|
|
|
+ .anchor(0.5, 1);
|
|
|
+ },
|
|
|
+ endBuilding: () => {
|
|
|
+ return game.add
|
|
|
+ .image(
|
|
|
+ self.scene.roadPoints.x[5],
|
|
|
+ self.scene.roadPoints.y[5],
|
|
|
+ 'farm',
|
|
|
+ 0.9
|
|
|
+ )
|
|
|
+ .anchor(0.4, 0.7);
|
|
|
+ },
|
|
|
+ },
|
|
|
+ end: {
|
|
|
+ // TODO
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
];
|