Skip to content

Commit

Permalink
Refreshes Retype-generated documentation.
Browse files Browse the repository at this point in the history
Process triggered by iamteles.
  • Loading branch information
Retype GitHub Action committed Sep 29, 2024
1 parent 6aa32f2 commit 38781f9
Show file tree
Hide file tree
Showing 13 changed files with 405 additions and 45 deletions.
8 changes: 4 additions & 4 deletions wiki/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="3.6.0.780963700714">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="3.6.0.780968830494">

<!-- See retype.com -->
<meta name="generator" content="Retype 3.6.0">
Expand All @@ -27,11 +27,11 @@

<script data-cfasync="false">(function () { var el = document.documentElement, m = localStorage.getItem("doc_theme"), wm = window.matchMedia; if (m === "dark" || (!m && wm && wm("(prefers-color-scheme: dark)").matches)) { el.classList.add("dark") } else { el.classList.remove("dark") } })();</script>

<link href="/resources/css/retype.css?v=3.6.0.780963700714" rel="stylesheet">
<link href="/resources/css/retype.css?v=3.6.0.780968830494" rel="stylesheet">

<script data-cfasync="false" src="/resources/js/config.js?v=3.6.0.780963700714" data-turbo-eval="false" defer></script>
<script data-cfasync="false" src="/resources/js/config.js?v=3.6.0.780968830494" data-turbo-eval="false" defer></script>
<script data-cfasync="false" src="/resources/js/retype.js?v=3.6.0" data-turbo-eval="false" defer></script>
<script id="lunr-js" data-cfasync="false" src="/resources/js/lunr.js?v=3.6.0.780963700714" data-turbo-eval="false" defer></script>
<script id="lunr-js" data-cfasync="false" src="/resources/js/lunr.js?v=3.6.0.780968830494" data-turbo-eval="false" defer></script>
</head>
<body>
<div id="docs-app" class="relative text-base antialiased text-gray-700 bg-white font-body dark:bg-dark-850 dark:text-dark-300">
Expand Down
29 changes: 21 additions & 8 deletions wiki/basics/characters/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="3.6.0.780963700714">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="3.6.0.780968830494">

<!-- See retype.com -->
<meta name="generator" content="Retype 3.6.0">
Expand Down Expand Up @@ -32,11 +32,11 @@

<script data-cfasync="false">(function () { var el = document.documentElement, m = localStorage.getItem("doc_theme"), wm = window.matchMedia; if (m === "dark" || (!m && wm && wm("(prefers-color-scheme: dark)").matches)) { el.classList.add("dark") } else { el.classList.remove("dark") } })();</script>

<link href="../../resources/css/retype.css?v=3.6.0.780963700714" rel="stylesheet">
<link href="../../resources/css/retype.css?v=3.6.0.780968830494" rel="stylesheet">

<script data-cfasync="false" src="../../resources/js/config.js?v=3.6.0.780963700714" data-turbo-eval="false" defer></script>
<script data-cfasync="false" src="../../resources/js/config.js?v=3.6.0.780968830494" data-turbo-eval="false" defer></script>
<script data-cfasync="false" src="../../resources/js/retype.js?v=3.6.0" data-turbo-eval="false" defer></script>
<script id="lunr-js" data-cfasync="false" src="../../resources/js/lunr.js?v=3.6.0.780963700714" data-turbo-eval="false" defer></script>
<script id="lunr-js" data-cfasync="false" src="../../resources/js/lunr.js?v=3.6.0.780968830494" data-turbo-eval="false" defer></script>
</head>
<body>
<div id="docs-app" class="relative text-base antialiased text-gray-700 bg-white font-body dark:bg-dark-850 dark:text-dark-300">
Expand Down Expand Up @@ -276,6 +276,7 @@ <h3>
<li><code v-pre>antialiasing</code> allows you to disable smoothing on the character, giving them a more &quot;jagged&quot; look.</li>
<li><code v-pre>isPixelSprite</code> is used to determine if a character is Pixel Art or not. Use this for characters like Senpai or BF-Pixel</li>
<li><code v-pre>deathChar</code> allows you to set a separate character as a death sprite.</li>
<li><code v-pre>isAnimateAtlas</code> determines if the character uses an Atlas as its format. Sprite format guide is in the works so please be patient!</li>
</ul>
<doc-anchor-target id="adding-your-character-to-the-charlist">
<h3>
Expand All @@ -288,13 +289,13 @@ <h3>
<figcaption class="caption"></figcaption>
</figure>
After coding your character, you still need to add it to the engine&#x27;s internal list. Simply go over to CoolUtil.hx, and add your character&#x27;s name to the <code v-pre>charList()</code> function.</p>
<doc-anchor-target id="editing-offsets">
<doc-anchor-target id="finalize-character">
<h3>
<doc-anchor-trigger class="header-anchor-trigger" to="#editing-offsets">#</doc-anchor-trigger>
<span>Editing Offsets</span>
<doc-anchor-trigger class="header-anchor-trigger" to="#finalize-character">#</doc-anchor-trigger>
<span>Finalize Character</span>
</h3>
</doc-anchor-target>
<p>The final step to making a character is to edit their offsets using our custom Character Editor.</p>
<p>The final steps to making a character are to edit their offsets and to configure their Health Icon.</p>
<p>
<div class="mb-6 px-5 py-4 flex justify-between relative border border-gray-300 hover:border-gray-400 dark:border-dark-650 dark:hover:border-dark-450 rounded transition-colors duration-150">
<div class="flex items-center text-blue-500 dark:text-blue-400">
Expand All @@ -308,6 +309,18 @@ <h3>
</div>
<a href="../../editors/offset/" class="absolute block inset-0"></a>
</div>
<div class="mb-6 px-5 py-4 flex justify-between relative border border-gray-300 hover:border-gray-400 dark:border-dark-650 dark:hover:border-dark-450 rounded transition-colors duration-150">
<div class="flex items-center text-blue-500 dark:text-blue-400">
<span class="inline-block mb-px">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" role="presentation" fill="currentColor"><path fill="none" d="M0 0h24v24H0z"/><path d="M19.92 12.38a1 1 0 00-.22-1.09l-7-7a.996.996 0 10-1.41 1.41l5.3 5.3H5c-.55 0-1 .45-1 1s.45 1 1 1h11.59l-5.29 5.29a.996.996 0 000 1.41c.19.2.44.3.7.3s.51-.1.71-.29l7-7c.09-.09.16-.21.21-.33z"/></svg>
</span>
<span class="inline-block font-medium ml-2">Health Icons</span>
</div>
<div class="flex items-center text-xs text-gray-400 dark:text-dark-400">
<span>../../objects/icons/</span>
</div>
<a href="../../objects/icons/" class="absolute block inset-0"></a>
</div>
</p>


Expand Down
65 changes: 58 additions & 7 deletions wiki/basics/stages/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="3.6.0.780963700714">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="3.6.0.780968830494">

<!-- See retype.com -->
<meta name="generator" content="Retype 3.6.0">
Expand All @@ -21,22 +21,22 @@
<meta property="og:url" content="https://doidoteam.github.io/basics/stages/">
<meta property="og:title" content="Custom Stages">
<meta property="og:description" content="FNF: Doido Engine Documentation">
<meta property="og:image" content="https://doidoteam.github.io/img/reloadstage.png">
<meta property="og:image" content="https://doidoteam.github.io/img/stages.png">

<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://doidoteam.github.io/basics/stages/">
<meta property="twitter:title" content="Custom Stages">
<meta property="twitter:description" content="FNF: Doido Engine Documentation">
<meta property="twitter:image" content="https://doidoteam.github.io/img/reloadstage.png">
<meta property="twitter:image" content="https://doidoteam.github.io/img/stages.png">

<script data-cfasync="false">(function () { var el = document.documentElement, m = localStorage.getItem("doc_theme"), wm = window.matchMedia; if (m === "dark" || (!m && wm && wm("(prefers-color-scheme: dark)").matches)) { el.classList.add("dark") } else { el.classList.remove("dark") } })();</script>

<link href="../../resources/css/retype.css?v=3.6.0.780963700714" rel="stylesheet">
<link href="../../resources/css/retype.css?v=3.6.0.780968830494" rel="stylesheet">

<script data-cfasync="false" src="../../resources/js/config.js?v=3.6.0.780963700714" data-turbo-eval="false" defer></script>
<script data-cfasync="false" src="../../resources/js/config.js?v=3.6.0.780968830494" data-turbo-eval="false" defer></script>
<script data-cfasync="false" src="../../resources/js/retype.js?v=3.6.0" data-turbo-eval="false" defer></script>
<script id="lunr-js" data-cfasync="false" src="../../resources/js/lunr.js?v=3.6.0.780963700714" data-turbo-eval="false" defer></script>
<script id="lunr-js" data-cfasync="false" src="../../resources/js/lunr.js?v=3.6.0.780968830494" data-turbo-eval="false" defer></script>
</head>
<body>
<div id="docs-app" class="relative text-base antialiased text-gray-700 bg-white font-body dark:bg-dark-850 dark:text-dark-300">
Expand Down Expand Up @@ -211,6 +211,11 @@ <h2>
<span>Adding your assets</span>
</h2>
</doc-anchor-target>
<p><figure class="content-center">
<img src="https://doidoteam.github.io/img/stages.png" alt="" width="600">
<figcaption class="caption"></figcaption>
</figure>
</p>
<p>Assets for stages are usually placed in <code v-pre>assets/images/backgrounds/</code>, though you are free to place them wherever you want. No specific configuration is necessary for the assets side.</p>
<doc-anchor-target id="coding-your-stages">
<h2>
Expand All @@ -225,7 +230,7 @@ <h3>
<span>Example Stage</span>
</h3>
</doc-anchor-target>
<p>To add your new stage, you need to add a new case to the switch statement around line 84. Here&#x27;s the basis on how it works. Feel free to copy this into your code and edit it accordingly.</p>
<p>Here is a simple example stage you can use to make your own. Copy this to the switch statement around line 85.</p>
<div class="codeblock-wrapper"><doc-codeblock>
<pre class="language-none"><code v-pre class="language-none">case &quot;stage&quot;:
PlayState.defaultCamZoom = 0.7;
Expand All @@ -237,6 +242,7 @@ <h3>
var bg = new FlxSprite(0, 0).loadGraphic(Paths.image(&quot;backgrounds/stage/image&quot;));
add(bg);</code></pre>
</doc-codeblock></div>
<p>You can add your own sprites like our example <code v-pre>bg</code>, set the positions of each characters and set the <code v-pre>defaultCamZoom</code>.</p>
<p><sup>NOTE: Check out the <a href="https://haxeflixel.com/documentation/flxsprite/">official Flixel documentation</a> for more info on general FlxSprite usage.</sup></p>
<doc-anchor-target id="loading-stage">
<h3>
Expand All @@ -255,6 +261,29 @@ <h2>
<span>Advanced Stage features</span>
</h2>
</doc-anchor-target>
<doc-anchor-target id="gf-version">
<h3>
<doc-anchor-trigger class="header-anchor-trigger" to="#gf-version">#</doc-anchor-trigger>
<span>GF Version</span>
</h3>
</doc-anchor-target>
<p><figure class="content-center">
<img src="https://doidoteam.github.io/img/gfversion.png" alt="" width="400">
<figcaption class="caption"></figcaption>
</figure>
</p>
<p>You can choose which Character is going in the GF position. By default this is &quot;gf&quot; but you can change it to any character you wish.
NOTE: If you want to have no GF, you can set her version to &quot;no-gf&quot;, which is a placeholder empty character.</p>
<doc-anchor-target id="foreground-layer">
<h3>
<doc-anchor-trigger class="header-anchor-trigger" to="#foreground-layer">#</doc-anchor-trigger>
<span>Foreground Layer</span>
</h3>
</doc-anchor-target>
<p>You can choose to render Sprites on a foreground layer (above the characters) by adding the sprite like this:</p>
<div class="codeblock-wrapper"><doc-codeblock>
<pre class="language-none"><code v-pre class="language-none">foreground.add(sprite);</code></pre>
</doc-codeblock></div>
<doc-anchor-target id="animated-sprites">
<h3>
<doc-anchor-trigger class="header-anchor-trigger" to="#animated-sprites">#</doc-anchor-trigger>
Expand All @@ -276,6 +305,28 @@ <h3>

// Play the animation
sprite.animation.play(&quot;idle&quot;);</code></pre>
</doc-codeblock></div>
<doc-anchor-target id="stephit-and-update-functions">
<h3>
<doc-anchor-trigger class="header-anchor-trigger" to="#stephit-and-update-functions">#</doc-anchor-trigger>
<span>stepHit and Update functions</span>
</h3>
</doc-anchor-target>
<p><figure class="content-center">
<img src="https://doidoteam.github.io/img/stephit.png" alt="" width="300">
<figcaption class="caption"></figcaption>
</figure>
You can set your own code to run on the stepHit (in sync with the song) or Update (constant) functions. There is also a conditional in stepHit that allows you to run a smaller beatHit function. This can be useful for animated sprites, for example.
<sup>NOTE: Make sure you initialize your variables in the Stage class to do this.</sup></p>
<doc-anchor-target id="accessing-sprites-from-other-classes-playstate">
<h3>
<doc-anchor-trigger class="header-anchor-trigger" to="#accessing-sprites-from-other-classes-playstate">#</doc-anchor-trigger>
<span>Accessing Sprites from other classes (PlayState)</span>
</h3>
</doc-anchor-target>
<p>You are able to access sprites created in the Stage class from the PlayState or other classes. To do so, you can append <code v-pre>stageBuild</code> to the beginning of the sprite, like so:</p>
<div class="codeblock-wrapper"><doc-codeblock>
<pre class="language-none"><code v-pre class="language-none">stageBuild.sprite.alpha = 0;</code></pre>
</doc-codeblock></div>


Expand Down
8 changes: 4 additions & 4 deletions wiki/editors/offset/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="3.6.0.780963700714">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="3.6.0.780968830494">

<!-- See retype.com -->
<meta name="generator" content="Retype 3.6.0">
Expand Down Expand Up @@ -32,11 +32,11 @@

<script data-cfasync="false">(function () { var el = document.documentElement, m = localStorage.getItem("doc_theme"), wm = window.matchMedia; if (m === "dark" || (!m && wm && wm("(prefers-color-scheme: dark)").matches)) { el.classList.add("dark") } else { el.classList.remove("dark") } })();</script>

<link href="../../resources/css/retype.css?v=3.6.0.780963700714" rel="stylesheet">
<link href="../../resources/css/retype.css?v=3.6.0.780968830494" rel="stylesheet">

<script data-cfasync="false" src="../../resources/js/config.js?v=3.6.0.780963700714" data-turbo-eval="false" defer></script>
<script data-cfasync="false" src="../../resources/js/config.js?v=3.6.0.780968830494" data-turbo-eval="false" defer></script>
<script data-cfasync="false" src="../../resources/js/retype.js?v=3.6.0" data-turbo-eval="false" defer></script>
<script id="lunr-js" data-cfasync="false" src="../../resources/js/lunr.js?v=3.6.0.780963700714" data-turbo-eval="false" defer></script>
<script id="lunr-js" data-cfasync="false" src="../../resources/js/lunr.js?v=3.6.0.780968830494" data-turbo-eval="false" defer></script>
</head>
<body>
<div id="docs-app" class="relative text-base antialiased text-gray-700 bg-white font-body dark:bg-dark-850 dark:text-dark-300">
Expand Down
8 changes: 4 additions & 4 deletions wiki/extras/showcase/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="3.6.0.780963700714">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="3.6.0.780968830494">

<!-- See retype.com -->
<meta name="generator" content="Retype 3.6.0">
Expand All @@ -30,11 +30,11 @@

<script data-cfasync="false">(function () { var el = document.documentElement, m = localStorage.getItem("doc_theme"), wm = window.matchMedia; if (m === "dark" || (!m && wm && wm("(prefers-color-scheme: dark)").matches)) { el.classList.add("dark") } else { el.classList.remove("dark") } })();</script>

<link href="../../resources/css/retype.css?v=3.6.0.780963700714" rel="stylesheet">
<link href="../../resources/css/retype.css?v=3.6.0.780968830494" rel="stylesheet">

<script data-cfasync="false" src="../../resources/js/config.js?v=3.6.0.780963700714" data-turbo-eval="false" defer></script>
<script data-cfasync="false" src="../../resources/js/config.js?v=3.6.0.780968830494" data-turbo-eval="false" defer></script>
<script data-cfasync="false" src="../../resources/js/retype.js?v=3.6.0" data-turbo-eval="false" defer></script>
<script id="lunr-js" data-cfasync="false" src="../../resources/js/lunr.js?v=3.6.0.780963700714" data-turbo-eval="false" defer></script>
<script id="lunr-js" data-cfasync="false" src="../../resources/js/lunr.js?v=3.6.0.780968830494" data-turbo-eval="false" defer></script>
</head>
<body>
<div id="docs-app" class="relative text-base antialiased text-gray-700 bg-white font-body dark:bg-dark-850 dark:text-dark-300">
Expand Down
8 changes: 4 additions & 4 deletions wiki/getting-started/build/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="3.6.0.780963700714">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="3.6.0.780968830494">

<!-- See retype.com -->
<meta name="generator" content="Retype 3.6.0">
Expand All @@ -30,11 +30,11 @@

<script data-cfasync="false">(function () { var el = document.documentElement, m = localStorage.getItem("doc_theme"), wm = window.matchMedia; if (m === "dark" || (!m && wm && wm("(prefers-color-scheme: dark)").matches)) { el.classList.add("dark") } else { el.classList.remove("dark") } })();</script>

<link href="../../resources/css/retype.css?v=3.6.0.780963700714" rel="stylesheet">
<link href="../../resources/css/retype.css?v=3.6.0.780968830494" rel="stylesheet">

<script data-cfasync="false" src="../../resources/js/config.js?v=3.6.0.780963700714" data-turbo-eval="false" defer></script>
<script data-cfasync="false" src="../../resources/js/config.js?v=3.6.0.780968830494" data-turbo-eval="false" defer></script>
<script data-cfasync="false" src="../../resources/js/retype.js?v=3.6.0" data-turbo-eval="false" defer></script>
<script id="lunr-js" data-cfasync="false" src="../../resources/js/lunr.js?v=3.6.0.780963700714" data-turbo-eval="false" defer></script>
<script id="lunr-js" data-cfasync="false" src="../../resources/js/lunr.js?v=3.6.0.780968830494" data-turbo-eval="false" defer></script>
</head>
<body>
<div id="docs-app" class="relative text-base antialiased text-gray-700 bg-white font-body dark:bg-dark-850 dark:text-dark-300">
Expand Down
Loading

0 comments on commit 38781f9

Please sign in to comment.