improve multiplayer
This commit is contained in:
parent
0aa259b874
commit
2fffe574c1
10 changed files with 76 additions and 19 deletions
|
@ -1,6 +1,7 @@
|
|||
function renderShip(pallet, ship) {
|
||||
var img = game.assets.images.ships[ship.hull].hull;
|
||||
var col = game.assets.images.ships[ship.hull].teamb;
|
||||
var teama = game.assets.images.ships[ship.hull].teama;
|
||||
var teamb = game.assets.images.ships[ship.hull].teamb;
|
||||
var thr0 = game.assets.images.ships[ship.hull].thrust0;
|
||||
var thr5 = game.assets.images.ships[ship.hull].thrust5;
|
||||
var thr8 = game.assets.images.ships[ship.hull].thrust8;
|
||||
|
@ -12,7 +13,7 @@ function renderShip(pallet, ship) {
|
|||
var vy = -game.world.getCenter().y;
|
||||
|
||||
pallet.view(x + vx, y + vy, false, ship.r);
|
||||
pallet.image(col, 0, 0, 0);
|
||||
pallet.image(ship.team == 'a' ? teama : teamb, 0, 0, 0);
|
||||
pallet.image(img, 0, 0, 0);
|
||||
pallet.image(ship.move[0] ? thr8 : thr0, 0, 0, 0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue