Skip to content

Commit e576fd7

Browse files
committed
chore: Update to v0.27.0
1 parent daff31f commit e576fd7

File tree

5 files changed

+31
-30
lines changed

5 files changed

+31
-30
lines changed

package-lock.json

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
"url": "https://github.com/excaliburjs/sample-shootemup/issues"
3030
},
3131
"dependencies": {
32-
"excalibur": "0.25.3"
32+
"excalibur": "0.27.0"
3333
},
3434
"devDependencies": {
35-
"@excaliburjs/testing": "0.25.0",
35+
"@excaliburjs/testing": "0.25.1",
3636
"copy-webpack-plugin": "10.2.0",
3737
"file-loader": "6.2.0",
3838
"ts-loader": "9.2.6",

src/actors/health-bar.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ export class HealthBar extends ex.Actor {
1919
this.graphics.use(new ex.Canvas({
2020
draw: (ctx) => this.draw(ctx),
2121
cache: false,
22-
width: Config.healthBarWidth + 10,
23-
height: Config.healthBarHeight + 40
22+
width: Config.healthBarWidth + 20,
23+
height: Config.healthBarHeight + 50
2424
}));
2525
}
2626

src/game.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ export class Game extends ex.Scene {
2727
text: "Score: " + stats.score,
2828
pos: ex.vec(80, 50)
2929
});
30-
scoreLabel.font.quality = 3;
31-
scoreLabel.fontSize = 30;
32-
scoreLabel.fontUnit = ex.FontUnit.Px;
33-
scoreLabel.fontFamily = "Open Sans";
30+
scoreLabel.font.quality = 4;
31+
scoreLabel.font.size = 30;
32+
scoreLabel.font.unit = ex.FontUnit.Px;
33+
scoreLabel.font.family = "Open Sans";
3434
scoreLabel.transform.coordPlane = ex.CoordPlane.Screen;
3535
scoreLabel.color = ex.Color.Azure;
3636
scoreLabel.on('preupdate', function(this: ex.Label, evt){

src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ async function waitForFontLoad(font: string, timeout = 2000, interval = 100) {
2424

2525
const engine = new ex.Engine({
2626
backgroundColor: ex.Color.Black,
27+
pixelRatio: 2,
2728
width: 1000,
2829
height: 800,
2930
displayMode: ex.DisplayMode.FitScreen

0 commit comments

Comments
 (0)