Skip to content

Add Tags tutorial + small typo fix #78

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
docs.geode-sdk.org
docs.geode-sdk.org
Binary file added assets/delay_tag.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fadein_tag.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/shake_tag.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions geometrydash/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Geometry Dash
order: 6
---

These pages contain documentation for Geometry Dash.
69 changes: 69 additions & 0 deletions geometrydash/tags.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
title: Tags
order: 1
---

# Tags

In Geometry Dash, there are tags you can use for things such as `FLAlertLayer` or `DialogLayer`. In this documentation, I will show you how to use these tags:

## Color

In Geometry Dash, there are color tags, which change the color of text. Here's a list of all the tags:

| **Tag** | **Color Code** | **Example** |
|---------|----------------|---------------------------------------|
| `<cb>` | `0x4A52E1` | <p style="color: #4A52E1;">Sample</p> |
| `<cg>` | `0x40E348` | <p style="color: #40E348;">Sample</p> |
| `<cl>` | `0x60ABEF` | <p style="color: #60ABEF;">Sample</p> |
| `<cj>` | `0x32C8FF` | <p style="color: #32C8FF;">Sample</p> |
| `<cy>` | `0xFFFF00` | <p style="color: #FFFF00;">Sample</p> |
| `<co>` | `0xFF5A4B` | <p style="color: #FF5A4B;">Sample</p> |
| `<cr>` | `0xFF5A5A` | <p style="color: #FF5A5A;">Sample</p> |
| `<cp>` | `0xFF00FF` | <p style="color: #FF00FF;">Sample</p> |
| `<ca>` | `0x9632FF` | <p style="color: #9632FF;">Sample</p> |
| `<cd>` | `0xFF96FF` | <p style="color: #FF96FF;">Sample</p> |
| `<cc>` | `0xFFFF96` | <p style="color: #FFFF96;">Sample</p> |
| `<cf>` | `0x96FFFF` | <p style="color: #96FFFF;">Sample</p> |
| `<cs>` | `0xFFDC41` | <p style="color: #FFDC41;">Sample</p> |
| `<c>` | `0xFF0000` | <p style="color: #FF0000;">Sample</p> |

To use these tags, follow the syntax below:

```
"Welcome to my <cr>LAIR</c>..."
```

By using `</c>`, you are closing the tag, and it doesn't matter which color tag it is. It will always be `</c>`.

## Delay

In Geometry Dash, there are also delay tags to wait a certain amount of centiseconds (1/100 of a second) before more text appearing. To use this, follow the example below:

```
Wait!<d040> You shouldn't go there<d500>.<d500>.<d500>.
```

In this example, the tag `<d...>` is used. The number next to the `<d` specifies the number of milliseconds to wait. However, this number must be 3 digits. The GIF below shows what this looks like in-game (GIF from GDDocs):

![GIF showing delay tag](/assets/delay_tag.gif)

## Shake

Shake tags make text shake. To use this, please follow the example below:

```
<co>I HAVE SAID TOO MUCH! QUICKLY TO THE <s260>CHOPPER!</s></c>
```

In this example, the syntax for the shake tag is similar to the syntax of the delay tag. This is however based on the intensity of the shaking. For reference, the example above looks like this in the game (GIF from GDDocs):

![GIF showing shake tag](/assets/shake_tag.gif)

# Instant/Fade

Fade Tags are used to fade in a block of text on screen instead of making it appear character by character. Similarly to colour tags, Fade tags have a start and end tag to denote which piece of text should appear instantly. The number is specified in centiseconds, which is 1/100th of a second.

Usage: `Hello, <i100>world!</i>`

![GIF showing fade tag](/assets/fadein_tag.gif)
2 changes: 1 addition & 1 deletion misc/ios.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: iOS Development Setup

# iOS Development Setup

You will have to edit your `CMakeLists.txt` on your exiting mods. Newer created mods will already have this change
You will have to edit your `CMakeLists.txt` on your existing mods. Newer created mods will already have this change
```cmake
# At the beginning of your CMakeLists.txt, change this:
# set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
Expand Down