Skip to content

Commit

Permalink
Add Alagard font
Browse files Browse the repository at this point in the history
  • Loading branch information
shezard committed May 30, 2023
1 parent 3f0fbb7 commit 1b2a5f0
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 3 deletions.
8 changes: 8 additions & 0 deletions src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<meta name="viewport" content="width=device-width" />
<style>
@font-face {
font-family: 'Alagard';
font-style: normal;
font-weight: 400;
src: url('%sveltekit.assets%/Alagard.ttf') format('truetype');
}
</style>
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
Expand Down
4 changes: 3 additions & 1 deletion src/components/Loader.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@
});
</script>

<div>Loading ... {loadedTextureCount} / {texturesToLoad.length}</div>
<div class="container grid justify-items-center items-center h-screen">
Loading ... {loadedTextureCount} / {texturesToLoad.length}
</div>
9 changes: 8 additions & 1 deletion src/components/Menu.svelte
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
<div>Menu</div>

<div class="container grid justify-items-center items-center h-screen">
<div>
<div class="text-2xl">Land Of Svelte</div>
<div>Continue</div>
<div>Controls</div>
</div>
</div>
1 change: 0 additions & 1 deletion src/lib/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ const createPosition = () => {
update(({ x, y, t }) => {
const offsetX = Math.round(-Math.cos(t));
const offsetY = Math.round(-Math.sin(t));
console.log(offsetX, offsetY);

if (collisions[x + offsetX][y + offsetY]) {
return { x, y, t };
Expand Down
7 changes: 7 additions & 0 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,11 @@
import '../app.postcss';
</script>

<style global>
body {
font-family: 'Alagard', sans-serif;
}
</style>


<slot />
Binary file added static/Alagard.ttf
Binary file not shown.

0 comments on commit 1b2a5f0

Please sign in to comment.