Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
neki-dev committed Oct 11, 2023
1 parent 881f682 commit 4faaa1b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
8 changes: 5 additions & 3 deletions src/game/scenes/menu/interface/content/controls/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { InterfaceFont } from '~type/interface';
export const Wrapper = styled.div`
display: flex;
flex-direction: column;
gap: 15px;
gap: 17px;
`;

export const Control = styled.div`
Expand All @@ -22,10 +22,12 @@ export const Keys = styled.div`
export const Key = styled.div`
color: #000;
font-family: ${InterfaceFont.PIXEL_LABEL};
font-size: 13px;
line-height: 13px;
font-size: 12px;
line-height: 12px;
padding: 4px 7px 5px 7px;
background: #fff;
box-shadow: 0 4px 0 #999;
text-align: center;
margin-top: -3px;
border-radius: 3px;
`;
2 changes: 1 addition & 1 deletion src/game/scenes/world/entities/building/building.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ export class Building extends Phaser.GameObjects.Image implements IBuilding, ITi
}

private addIndicatorsContainer() {
this.indicators = this.scene.add.container(this.x - (LEVEL_TILE_SIZE.width / 4), this.y - 8);
this.indicators = this.scene.add.container(this.x - (LEVEL_TILE_SIZE.width / 4), this.y - 6);

this.indicators.setDepth(WORLD_DEPTH_GRAPHIC);
this.indicators.setActive(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class BuildingAmmunition extends Building implements IBuildingAmmunition
});

this.addIndicator({
color: 0xaf9ae0,
color: 0xfcb97e,
size: LEVEL_TILE_SIZE.width / 2,
value: () => this.ammo / this.maxAmmo,
});
Expand Down
4 changes: 4 additions & 0 deletions src/game/scenes/world/entities/crystal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ export class Crystal extends Phaser.GameObjects.Image implements ICrystal, ITile

private handlePointer() {
this.on(Phaser.Input.Events.POINTER_OVER, () => {
if (this.scene.builder.isBuild) {
return;
}

this.addShader('OutlineShader', {
size: 4.0,
color: 0xffffff,
Expand Down

0 comments on commit 4faaa1b

Please sign in to comment.