Skip to content

Commit

Permalink
woo
Browse files Browse the repository at this point in the history
  • Loading branch information
codergautam committed Jul 8, 2022
1 parent 88a1026 commit c8bcdd9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions classes/Room.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,29 +25,29 @@ class Room {

this.islands.push(new Island(
"circle",
500,
700,
{ x: 1400, y: 1400 },
));

this.islands.push(new Island(
"circle",
500,
700,
{ x: -1300, y: 1400 },
));

this.islands.push(new Island(
"circle",
500,
700,
{ x: 1700, y: -300 },
));
this.islands.push(new Island(
"circle",
500,
700,
{ x: -1600, y: -300 },
));
this.islands.push(new Island(
"circle",
500,
700,
{ x: 0, y: -1600 },
));
this.bridges.push(new Bridge(this.islands[0], this.islands[1], 150));
Expand Down Expand Up @@ -217,8 +217,8 @@ class Room {
//emit to hitter


player.pos.x += bullet.speed * Math.cos(bullet.angle) * tickDiff * (player.bulletLevel == 1 ? 5 : player.bulletLevel == 2 ? 7 : 10);
player.pos.y += bullet.speed * Math.sin(bullet.angle) * tickDiff * (player.bulletLevel == 1 ? 5 : player.bulletLevel == 2 ? 7 : 10);
player.pos.x += bullet.speed * Math.cos(bullet.angle) * tickDiff * (player.bulletLevel == 1 ? 3 : player.bulletLevel == 2 ? 5 : 7);
player.pos.y += bullet.speed * Math.sin(bullet.angle) * tickDiff * (player.bulletLevel == 1 ? 3 : player.bulletLevel == 2 ? 5 : 7);
player.health -= bullet.damage;
player.lastHit = Date.now();
player.whoLastHit = bullet.owner;
Expand Down
2 changes: 1 addition & 1 deletion helpers/levels.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const levels = [50, 100, 200, 350, 500, 600, 800, 1000, 1250, 1500];
const levels = [10, 25, 50, 100, 250, 450, 750, 900, 1000, 2000];
// debugging levels
// const levels = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];

Expand Down
6 changes: 3 additions & 3 deletions src/GameScene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,14 +324,14 @@ this.lastKnownMyDisplayWidth = 0;
this.minimap.height = this.canvas.width/ 5;
this.minimap.y = this.canvas.height - this.minimap.height - 10;
this.minimap.x = this.canvas.width - this.minimap.width - 10;
var mapSize = 4000
var mapSize = 4200
//calculate zoom
var zoom = this.minimap.width / mapSize;
this.minimap.setZoom(zoom);
// this.minimap.setBackgroundColor(0x002244);
this.minimap.setBackgroundColor(this.team == "blue" ? 0x002244 : 0x440000);
this.minimap.scrollX = -75;
this.minimap.scrollY = -75;
this.minimap.scrollX = -125;
this.minimap.scrollY = -125;
this.minimap.setVisible(false);
this.minimap.ignore(this.background);

Expand Down
2 changes: 1 addition & 1 deletion src/components/Island.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class Island extends Phaser.GameObjects.Container {
this.add(this.island);
this.add(this.capturingCircle);
this.add(this.flag);
if(data.size > 1000) this.add(this.background);
if(data.size >= 1000) this.add(this.background);
this.scene.add.existing(this);
(this.scene as GameScene).uiCam.ignore(this);
}
Expand Down

0 comments on commit c8bcdd9

Please sign in to comment.