webxoss-client/ZonePosition.js

268 lines
4.5 KiB
JavaScript
Raw Permalink Normal View History

2016-10-23 07:28:51 +02:00
'use strict';
Game.prototype.initZones = function () {
this.player = {
enerZone: new TileZone({
game: this,
name: 'EnerZone',
x: 92,
y: 377,
up: false,
horizontal: false,
center: false,
width: 259,
spacing: 5,
2016-12-08 15:29:15 +01:00
showAmount: true,
checkable: true
2016-10-23 07:28:51 +02:00
}),
signiZones: [
new StackZone({
game: this,
name: 'SigniZone',
x: 190,
y: 421,
checkable: true,
2016-10-23 07:28:51 +02:00
showPower: true
}),
new StackZone({
game: this,
name: 'SigniZone',
x: 288,
y: 421,
checkable: true,
2016-10-23 07:28:51 +02:00
showPower: true
}),
new StackZone({
game: this,
name: 'SigniZone',
x: 386,
y: 421,
checkable: true,
2016-10-23 07:28:51 +02:00
showPower: true
}),
],
mainDeck: new StackZone({
game: this,
name: 'MainDeck',
x: 471.5,
y: 421,
showAmount: true
}),
lrigDeck: new StackZone({
game: this,
name: 'LrigDeck',
x: 544.5,
y: 421,
showAmount: true,
checkable: true
}),
checkZone: new StackZone({
game: this,
name: 'CheckZone',
x: 190,
y: 519
}),
lrigZone: new StackZone({
game: this,
name: 'LrigZone',
x: 288,
y: 519,
showAmount: true
}),
trashZone: new StackZone({
game: this,
name: 'TrashZone',
x: 471.5,
y: 519,
showAmount: true,
checkable: true
}),
lrigTrashZone: new StackZone({
game: this,
name: 'LrigTrashZone',
x: 544.5,
y: 519,
showAmount: true,
checkable: true
}),
lifeClothZone: new TileZone({
game: this,
name: 'LifeClothZone',
x: 158.5,
y: 604.5,
up: false,
horizontal: true,
center: false,
2017-02-28 16:55:46 +01:00
width: Card.HEIGHT*3,
2016-10-23 07:28:51 +02:00
spacing: -Card.HEIGHT*2/3,
showAmount: true
}),
2017-02-28 16:55:46 +01:00
coinZone: new StackZone({
game: this,
name: 'CoinZone',
x: 471.5,
y: 604.5,
centerText: true,
}),
2016-10-23 07:28:51 +02:00
excludedZone: new StackZone({
game: this,
name: 'ExcludedZone',
x: 617.5,
y: 421
}),
handZone: new TileZone({
game: this,
name: 'HandZone',
x: 576/2,
y: 690,
up: true,
horizontal: true,
center: true,
width: 576,
spacing: 8
})
};
this.opponent = {
enerZone: new TileZone({
game: this,
name: 'EnerZone',
x: 576-92,
y: 734-377,
opposite: true,
up: false,
horizontal: false,
center: false,
width: 259,
spacing: 5,
2016-12-08 15:29:15 +01:00
showAmount: true,
checkable: true
2016-10-23 07:28:51 +02:00
}),
signiZones: [
new StackZone({
game: this,
name: 'SigniZone',
x: 576-190,
y: 734-421,
checkable: true,
2016-10-23 07:28:51 +02:00
showPower: true,
opposite: true
}),
new StackZone({
game: this,
name: 'SigniZone',
x: 576-288,
y: 734-421,
checkable: true,
2016-10-23 07:28:51 +02:00
showPower: true,
opposite: true
}),
new StackZone({
game: this,
name: 'SigniZone',
x: 576-386,
y: 734-421,
checkable: true,
2016-10-23 07:28:51 +02:00
showPower: true,
opposite: true
}),
],
mainDeck: new StackZone({
game: this,
name: 'MainDeck',
x: 576-471.5,
y: 734-421,
showAmount: true,
opposite: true
}),
lrigDeck: new StackZone({
game: this,
name: 'LrigDeck',
x: 576-544.5,
y: 734-421,
showAmount: true,
opposite: true
}),
lrigZone: new StackZone({
game: this,
name: 'LrigZone',
x: 576-288,
y: 734-519,
showAmount: true,
opposite: true
}),
checkZone: new StackZone({
game: this,
name: 'CheckZone',
x: 576-190,
y: 734-519,
opposite: true
}),
trashZone: new StackZone({
game: this,
name: 'TrashZone',
x: 576-471.5,
y: 734-519,
showAmount: true,
opposite: true,
checkable: true
}),
lrigTrashZone: new StackZone({
game: this,
name: 'LrigTrashZone',
x: 576-544.5,
y: 734-519,
showAmount: true,
opposite: true,
checkable: true
}),
lifeClothZone: new TileZone({
game: this,
name: 'LifeClothZone',
x: 576-158.5,
y: 734-604.5,
opposite: true,
up: false,
horizontal: true,
center: false,
2017-02-28 16:55:46 +01:00
width: Card.HEIGHT*3,
2016-10-23 07:28:51 +02:00
spacing: -Card.HEIGHT*2/3,
showAmount: true
}),
2017-02-28 16:55:46 +01:00
coinZone: new StackZone({
game: this,
name: 'CoinZone',
x: 576-471.5,
y: 734-604.5,
centerText: true,
}),
2016-10-23 07:28:51 +02:00
excludedZone: new StackZone({
game: this,
name: 'ExcludedZone',
x: 576-617.5,
y: 734-421,
opposite: true
}),
handZone: new TileZone({
game: this,
name: 'HandZone',
x: 576-576/2,
y: 734-690,
opposite: true,
up: true,
horizontal: true,
center: true,
width: 576,
spacing: 8
})
};
this.buttonZone = new StackZone({
game: this,
name: 'ButtonZone',
x: 386,
y: 519,
centerText: true
});
2017-02-28 16:55:46 +01:00
this.player.coinZone.text.font = '14px monospace';
this.opponent.coinZone.text.font = '14px monospace';
2016-10-23 07:28:51 +02:00
};