Skip to content

Commit 16e67f9

Browse files
fix: update fps position and origin values for better alignment and rotation adjustment
1 parent 6287dcd commit 16e67f9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/2d/text.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import {Application, Vector2, Palette, Font} from "vectorjs";
22

33
const screenWidth = 800;
44
const screenHeight = 600;
5-
const fpsPos = new Vector2(10, 10);
6-
const origin = new Vector2(0, 0);
5+
const fpsPos = new Vector2(screenWidth/2, screenHeight/2);
6+
const origin = new Vector2(1, 1)
77

88
const app = new Application(screenWidth, screenHeight,"Window");
99
app.run({
@@ -19,7 +19,7 @@ app.run({
1919
color: Palette.RED,
2020
fontSize: 24.0,
2121
spacing: 2.0,
22-
rotation: 0.0,
22+
rotation: 25.0,
2323
origin: origin
2424
})
2525
});

0 commit comments

Comments
 (0)