aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2025-04-11 21:17:07 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2025-04-11 21:17:07 +0200
commita6bc7a7697ac4745d9f724811cecfafb98b9f209 (patch)
tree7feef2a3b4a537591a6690965ef702ff3e9cc82f
parent62f954cf1afc8bfc17ef3622154f3ec025a1b69e (diff)
downloadmitjafelicijan.com-a6bc7a7697ac4745d9f724811cecfafb98b9f209.tar.gz
Update
-rw-r--r--content/posts/2025-04-08-embedding-game-assets-within-your-binary.md (renamed from content/notes/2025-04-08-embedding-game-assets-within-your-binary.md)16
-rw-r--r--templates/index.html36
2 files changed, 10 insertions, 42 deletions
diff --git a/content/notes/2025-04-08-embedding-game-assets-within-your-binary.md b/content/posts/2025-04-08-embedding-game-assets-within-your-binary.md
index 70f5d0f..c3aa8bf 100644
--- a/content/notes/2025-04-08-embedding-game-assets-within-your-binary.md
+++ b/content/posts/2025-04-08-embedding-game-assets-within-your-binary.md
@@ -2,9 +2,9 @@
2title: Embedding game assets within your executable binary 2title: Embedding game assets within your executable binary
3url: embedding-game-assets-within-your-binary.html 3url: embedding-game-assets-within-your-binary.html
4date: 2025-04-08T16:13:13+02:00 4date: 2025-04-08T16:13:13+02:00
5type: note 5type: post
6draft: false 6draft: false
7tags: [gamedev] 7tags: []
8--- 8---
9 9
10## Why? 10## Why?
@@ -50,18 +50,6 @@ We first need to setup main game loop and get the game running.
50#include "raylib.h" 50#include "raylib.h"
51 51
52int main(void) { 52int main(void) {
53 SetConfigFlags(FLAG_WINDOW_RESIZABLE | FLAG_VSYNC_HINT | FLAG_WINDOW_HIGHDPI);
54 InitWindow(900, 400, "Embedding assets");
55 SetTargetFPS(60);
56
57 while (!WindowShouldClose()) {
58 BeginDrawing();
59 ClearBackground(BLACK);
60 EndDrawing();
61 }
62
63 CloseWindow();
64 return 0;
65} 53}
66``` 54```
67 55
diff --git a/templates/index.html b/templates/index.html
index ce656ff..c124804 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -3,48 +3,28 @@
3{{ define "content" }} 3{{ define "content" }}
4 4
5<section> 5<section>
6 <h2>Notes</h2> 6 <h2>Notes / Posts</h2>
7 <table> 7 <table>
8 <thead> 8 <thead>
9 <tr> 9 <tr>
10 <th>Date</th> 10 <th>Date</th>
11 <th width="20"></th>
11 <th>Title</th> 12 <th>Title</th>
12 <th></th> 13 <th></th>
13 </tr> 14 </tr>
14 </thead> 15 </thead>
15 <tbody> 16 <tbody>
16 {{ range .Pages }} 17 {{ range .Pages }}
17 {{ if and (not .Draft) (eq .Type "note") }} 18 {{ if and (not .Draft) (or (eq .Type "note") (eq .Type "post")) }}
18 <tr> 19 <tr>
19 <td><time datetime="{{ .Created.Format "2006-01-02" }}">{{ .Created.Format "2006-01-02" }}</time></td> 20 <td><time datetime="{{ .Created.Format "2006-01-02" }}">{{ .Created.Format "2006-01-02" }}</time></td>
20 <td><a href="{{ .RelPermalink }}">{{ .Title }}</a></td> 21 <td valign="middle">
21 <td class="tags"> 22 {{ if (eq .Type "note") }}
22 {{ if .Meta.tags }} 23 <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 512 512" style="display:block;">
23 {{ range .Meta.tags }}<mark>{{ . }}</mark>{{ end }} 24 <path fill="black" fill-rule="evenodd" d="M448 343.045 343.045 448H64V64h384v279.045Zm-42.667-65.712V106.667H106.667v298.666h170.666v-128h128Zm0 42.667H320v85.333h5.333l80-80V320Z"/>
25 </svg>
24 {{ end }} 26 {{ end }}
25 </td> 27 </td>
26 </tr>
27 {{ end }}
28 {{ end }}
29 </tbody>
30 </table>
31</section>
32
33<section>
34 <h2>Posts</h2>
35 <table>
36 <thead>
37 <tr>
38 <th>Date</th>
39 <th>Title</th>
40 <th></th>
41 </tr>
42 </thead>
43 <tbody>
44 {{ range .Pages }}
45 {{ if and (not .Draft) (eq .Type "post") }}
46 <tr>
47 <td><time datetime="{{ .Created.Format "2006-01-02" }}">{{ .Created.Format "2006-01-02" }}</time></td>
48 <td><a href="{{ .RelPermalink }}">{{ .Title }}</a></td> 28 <td><a href="{{ .RelPermalink }}">{{ .Title }}</a></td>
49 <td class="tags"> 29 <td class="tags">
50 {{ if .Meta.tags }} 30 {{ if .Meta.tags }}