Skip to content

Commit

Permalink
Doc formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
LavenderSnek committed Sep 9, 2024
1 parent a2bf9ca commit 9754cc3
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/advanced-scripting.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ The kind of variable is determined by how it's declared
```xml
<!-- numConstant = 500 -->
<ActionReference Name="Lorem" numConstant="500"/>

<!-- repeatScript = updated with the mascot's X coordinate each frame after it is first used -->
<!-- repeatScript = updated with the mascot's X coordinate each frame after it is first used -->
<ActionReference Name="Lorem" repeatScript="#{mascot.anchor.x}"/>

<!-- storedScript = the mascot's X coordinate when the variable is first used -->
<!-- storedScript = the mascot's X coordinate when the variable is first used -->
<ActionReference Name="Lorem" storedScript="${mascot.anchor.x}"/>
```

Expand Down Expand Up @@ -233,12 +233,12 @@ mascot/shimeji. It uses `shime28.png` as the image otherwise.
<ActionReference Name="Fall"/>
</Action>

<!--
The Sine wave is completely inaccurate to the parameters.
It looks good enough so ¯\_(ツ)_/¯, ignore the parameter names and just mess w them until it looks right
params: SinA, SinB, Speed
-->
<!--
The Sine wave is completely inaccurate to the parameters.
It looks good enough so ¯\_(ツ)_/¯, ignore the parameter names and just mess w them until it looks right
params: SinA, SinB, Speed
-->
<Action Name="def_SineHover" Type="Move" count="${0}">
<Animation Condition="#{
var roundedSpeed = Speed >= 0 ? Math.ceil(Speed) : Math.floor(Speed);
Expand Down

0 comments on commit 9754cc3

Please sign in to comment.