Skip to content

Commit

Permalink
Update font
Browse files Browse the repository at this point in the history
  • Loading branch information
Golen87 committed Nov 19, 2023
1 parent 07526f3 commit 4852480
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/assets/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const audios: Audio[] = [
];

/* Fonts */
await loadFont('Sketch', 'Game Font');
await loadFont('NerkoOne-Regular', 'Game Font');

export {
images,
Expand Down
Binary file added src/assets/fonts/NerkoOne-Regular.ttf
Binary file not shown.
3 changes: 2 additions & 1 deletion src/components/UI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export class UI extends Phaser.GameObjects.Container {

this.background = this.scene.add.image(0, 0, "hud");
this.background.setScale(panelHeight / this.background.height);
this.background.setAlpha(0.2);
this.panel.add(this.background);

this.text = this.scene.addText({
Expand All @@ -28,7 +29,7 @@ export class UI extends Phaser.GameObjects.Container {
color: "#FFFFFF",
text: "Score: 123",
});
this.text.setStroke("black", 4);
this.text.setStroke("black", 8);
this.text.setOrigin(0, 0.5);
this.panel.add(this.text);

Expand Down

0 comments on commit 4852480

Please sign in to comment.