Skip to content

Commit 039642d

Browse files
committed
and i know i shouldn't tell you
1 parent 7a93a67 commit 039642d

File tree

100 files changed

+185
-115
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+185
-115
lines changed

content/coding/base-code-example/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<title>layout base code example</title>
55
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
6-
<meta content="utf-8" http-equiv="encoding" />
6+
<meta charset="UTF-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
88
<script src="layout.js"></script>
99
<link href="../../favicon.ico" rel="icon" type="image/x-icon" />

content/coding/cheatsheet.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ <h3>Example Template (e.g. <code>_includes/myTemplate.njk</code>):</h3>
841841
&lt;title&gt;{% raw %}{{ title }}{% endraw %}&lt;/title&gt;
842842
&lt;script src="{% raw %}{{ nesting }}{% endraw %}main.js"&gt;&lt;/script&gt;
843843
&lt;meta content="text/html;charset=utf-8" http-equiv="Content-Type" /&gt;
844-
&lt;meta content="utf-8" http-equiv="encoding" /&gt;
844+
&lt;meta charset="UTF-8" /&gt;
845845
&lt;meta name="viewport" content="width=device-width, initial-scale=1.0" /&gt;
846846
&lt;link href="{% raw %}{{ nesting }}{% endraw %}favicon.ico" rel="icon" type="image/x-icon" /&gt;
847847
&lt;/head&gt;

content/coding/eleventy-tutorial.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ <h3 id="example">Example</h3>
396396
&lt;title&gt;{% raw %}{{ title }}{% endraw %}&lt;/title&gt;
397397
&lt;script src="{% raw %}{{ nesting }}{% endraw %}main.js"&gt;&lt;/script&gt;
398398
&lt;meta content="text/html;charset=utf-8" http-equiv="Content-Type" /&gt;
399-
&lt;meta content="utf-8" http-equiv="encoding" /&gt;
399+
&lt;meta charset="UTF-8" /&gt;
400400
&lt;meta name="viewport" content="width=device-width, initial-scale=1.0" /&gt;
401401
&lt;link href="{% raw %}{{ nesting }}{% endraw %}favicon.ico" rel="icon" type="image/x-icon" /&gt;
402402
&lt;/head&gt;
@@ -427,7 +427,7 @@ <h3 id="example">Example</h3>
427427
&lt;title&gt;About Me&lt;/title&gt;
428428
&lt;script src="../main.js"&gt;&lt;/script&gt;
429429
&lt;meta content="text/html;charset=utf-8" http-equiv="Content-Type" /&gt;
430-
&lt;meta content="utf-8" http-equiv="encoding" /&gt;
430+
&lt;meta charset="UTF-8" /&gt;
431431
&lt;meta name="viewport" content="width=device-width, initial-scale=1.0" /&gt;
432432
&lt;link href="../favicon.ico" rel="icon" type="image/x-icon" /&gt;
433433
&lt;/head&gt;

content/coding/game-dev-journey.html

Lines changed: 80 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -212,21 +212,91 @@ <h3 data-step="7">Tutorial Time - Theory!</h3>
212212
<p class="elapsed-time">Total time elapsed on this day: <b>3.5 hours</b>. Total time elapsed since start: <b>7.5 hours</b></p>
213213
</section>
214214

215-
<p>Last update: March 7th. Updates are delayed because I don't edit my website every day, sorry.</p>
216-
<!--
217215
<section>
218-
<h2 id="day4">Day 4 - Collision Course</h2>
219-
220-
<p>(Pun intended.)</p>
216+
<h2 id="day4">Day 4 - My tiny project</h2>
221217

222-
<h3 data-step="7">Learning about Collisions</h3>
223218
<h3 data-step="8">Applying what I've learned</h3>
219+
<p>I took such lovely notes on GDScript while watching the tutorial on it on day 3, so it was time to actually put the theory into practice!</p>
220+
<p>
221+
I started a new, tiny project which only had a label and two buttons, and tried to use everything that was new to me, i.e. inputs, variable exports, random number generation, custom signals, the
222+
clamp functions, getters and setters, ...
223+
</p>
224+
<p>I did this for about an hour.</p>
225+
<p>
226+
It felt good to simply code for a while, because that's where I'm most comfortable. But then I tried to change the color of a button, and realised with horror that that opened up a whole new can
227+
of worms... Oh well:
228+
</p>
229+
230+
<h3 data-step="9">GUI is hard, apparently</h3>
231+
<p>I took one quick look at Godot's documentation on GUI skinning and noped the hell out of there.</p>
232+
<p>
233+
That's right, it was time for another video tutorial! And I found an <i>amazing</i> one:
234+
<a href="https://www.youtube.com/watch?v=1_OFJLyqlXI" target="_blank">Godot UI Basics - how to build beautiful interfaces that work everywhere (Beginners)</a> by <i>Godotneers</i>. It's an hour
235+
long, which seemed unnecessarily long to me at first (oh, how naive I was!), but now I wish it was twice as long because it's such a good tutorial and covered lots of good stuff.
236+
</p>
237+
<iframe
238+
width="560"
239+
height="315"
240+
aria-label="GUI YouTube Tutorial"
241+
src="https://www.youtube.com/embed/1_OFJLyqlXI?si=eMuj2d2rOof5taPh"
242+
title="YouTube video player"
243+
frameborder="0"
244+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
245+
referrerpolicy="strict-origin-when-cross-origin"
246+
allowfullscreen
247+
></iframe>
248+
<p>Again, I took some notes, and cleaned up all my notes in general (since I had so many at this point), which took about half an hour.</p>
249+
250+
<p class="elapsed-time">Total time elapsed on this day: <b>2.5 hours</b>. Total time elapsed since start: <b>10 hours</b></p>
251+
</section>
252+
253+
<section>
254+
<h2 id="day5">Day 5 - Making a menu</h2>
255+
256+
<h3 data-step="10">Trying my hand at a GUI</h3>
257+
<p>
258+
Again, it was time to practice what I've learned in the video tutorial, so I tinkered around in my tiny project, attempting to make an okay-looking GUI. I made sure to try out everything the
259+
tutorial had taught me. I struggled a bit, but after about an hour I was somewhat satisfied.
260+
</p>
261+
<p>
262+
The whole hour I had not written a single line of code - creating the GUI is really more a process of juggling around nodes and properties in Godot's own UI. This was a bit demotivating to me, but
263+
I already felt like I had a much better overview of it all than the day before, so I had made progress at least.
264+
</p>
265+
266+
<h3 data-step="11">Switching Scenes, Saving Settings</h3>
267+
<p>
268+
One thing I knew I still had to learn was how to switch scenes, e.g. go from the Main Menu to a Settings Menu, or into the first level. This was not covered in any tutorial I've watched up until
269+
that point, so I had to find out for myself. Again, I expanded my tiny project to include a Settings scene just to try my hand at switching scenes.
270+
</p>
271+
<p>
272+
I quickly realised I also had to learn how to make two scenes communicate with each other. When trying to find out how (by googling) I stumbled upon the common pattern of using an Autoload script
273+
for settings.
274+
</p>
275+
<p>
276+
The next logical step was to learn how to save these settings in a file, so that they'd be saved for the next time playing. This was much easier than expected using
277+
<a href="https://docs.godotengine.org/en/4.3/classes/class_configfile.html" target="_blank">ConfigFile</a>.
278+
</p>
279+
<p>
280+
In total, I played around for about an hour, and my 'game' felt much more like a game now that is had a settings screen and actually saved these settings! I also had fun again because I was
281+
working with code again finally!
282+
</p>
283+
284+
<p class="elapsed-time">Total time elapsed on this day: <b>2 hours</b>. Total time elapsed since start: <b>12 hours</b></p>
224285
</section>
225286

287+
<p>Last update: <b>March 9th</b>. Updates are delayed because I don't edit my website every day, sorry.</p>
288+
<!--
226289
<section>
227-
<h2 id="day5">Day 5 - Getting familiar</h2>
290+
<h2 id="day6">Day 6 - Collision course</h2>
291+
292+
<h3 data-step="12">Learning about collisions</h3>
293+
<p>Yea</p>
228294
229-
<h3 data-step="9">Making a Menu</h3>
230-
<h3 data-step="10">Exporting</h3>
295+
<p class="elapsed-time">Total time elapsed on this day: <b>? hours</b>. Total time elapsed since start: <b>12 hours</b></p>
231296
</section>
232-
-->
297+
298+
Taking off the training wheels
299+
<p>On this day I took a break from video tutorials holding my hand.</p>
300+
301+
302+
-->

content/creations/fractals.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<script src="../assets/js/main.js?nocache=20240821"></script>
77
<link rel="stylesheet" href="../assets/main.css" />
88
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
9-
<meta content="utf-8" http-equiv="encoding" />
9+
<meta charset="UTF-8" />
1010
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
1111
<link href="../assets/img/favicon.ico" rel="icon" type="image/x-icon" />
1212

content/creations/picmix.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<script src="../assets/js/main.js?nocache=20240821"></script>
77
<link rel="stylesheet" href="../assets/main.css" />
88
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
9-
<meta content="utf-8" http-equiv="encoding" />
9+
<meta charset="UTF-8" />
1010
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
1111
<link href="../assets/img/favicon.ico" rel="icon" type="image/x-icon" />
1212
<script>

content/layout-generator/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<head>
44
<title>petrapixel's layout generator</title>
55
<meta name="description" content="A layout builder for Neocities and coding beginners." />
6-
<script src="../assets/js/layoutGenerator.js?nocache=index8"></script>
7-
<link rel="stylesheet" href="../assets/layoutGenerator.css" />
6+
<script src="../assets/js/layoutGenerator.js{{ nocache }}"></script>
7+
<link rel="stylesheet" href="../assets/layoutGenerator.css{{ nocache }}" />
88
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
9-
<meta content="utf-8" http-equiv="encoding" />
9+
<meta charset="UTF-8" />
1010
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
1111
<link href="../assets/img/favicon.ico" rel="icon" type="image/x-icon" />
1212

content/layout-generator/old.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<!-- <script src="../assets/js/autoprefixer.js"></script> -->
88
<link rel="stylesheet" href="../assets/layoutGenerator.css" />
99
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
10-
<meta content="utf-8" http-equiv="encoding" />
10+
<meta charset="UTF-8" />
1111
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
1212
<link href="../assets/img/favicon.ico" rel="icon" type="image/x-icon" />
1313

content/layout-generator/test/subpage.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title>TITLE</title>
55
<meta content="SHORT DESCRIPTION OF YOUR PAGE" name="description" />
66
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
7-
<meta content="utf-8" http-equiv="encoding" />
7+
<meta charset="UTF-8" />
88
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
99
<link href="favicon.ico" rel="icon" type="image/x-icon" />
1010
<link href="./style.css" rel="stylesheet" />

content/layout-generator/test/test.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title>TITLE</title>
55
<meta content="SHORT DESCRIPTION OF YOUR PAGE" name="description" />
66
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
7-
<meta content="utf-8" http-equiv="encoding" />
7+
<meta charset="UTF-8" />
88
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
99
<link href="favicon.ico" rel="icon" type="image/x-icon" />
1010

0 commit comments

Comments
 (0)