diff --git a/example/README.md b/example/README.md index b2e6716..0dea22a 100644 --- a/example/README.md +++ b/example/README.md @@ -10,49 +10,42 @@ You need these to run the examples: - Clone this Git repo: - MoonBit CLI (`moon`): -- Taskfile CLI (`task`): - Firefly Zero CLI (`ff`): - Firefly Zero emulator (`firefly-emulator`): -To run one of the examples then execute the listed command from the root of -this repository. - -## Example: [font](./font) +To run one of the examples then navigate to its directory and run: ```bash -task example/font:run +ff build + +# replace $NAME with the name shown in the `ff build` output +firefly-emulator --id demo.moonbit-$NAME ``` +## Example: [audio](./audio) + +> *(no screenshot, it only plays some sounds)* + +## Example: [font](./font) + [![font screenshot](./font/screenshot.png)](./font) ## Example: [image](./image) -```bash -task example/image:run -``` - [![image screenshot](./image/screenshot.png)](./image) ## Example: [input](./input) -```bash -task example/input:run -``` - [![input screenshot](./input/screenshot.png)](./input) ## Example: [random](./random) -```bash -task example/random:run -``` - [![random screenshot](./random/screenshot.png)](./random) -## Example: [shapes](./shapes) +## Example: [scores](./scores) -```bash -task example/shapes:run -``` +[![scores screenshot](./scores/screenshot.png)](./scores) + +## Example: [shapes](./shapes) [![shapes screenshot](./shapes/screenshot.png)](./shapes) diff --git a/example/audio/moon.mod.json b/example/audio/moon.mod.json index a1026a6..edc1c21 100644 --- a/example/audio/moon.mod.json +++ b/example/audio/moon.mod.json @@ -1,5 +1,5 @@ { - "name": "firefly/firefly/example/audio", + "name": "example-audio", "deps": { "firefly/firefly": { "path": "../.." diff --git a/example/font/firefly.toml b/example/font/firefly.toml index a4c9bc2..7745638 100644 --- a/example/font/firefly.toml +++ b/example/font/firefly.toml @@ -3,9 +3,9 @@ # SPDX-License-Identifier: CC0-1.0 author_id = "demo" -app_id = "moonbit-text" +app_id = "moonbit-font" author_name = "Demo" -app_name = "Text example (MoonBit)" +app_name = "Font demo (MoonBit)" [files] font = { path = "assets/eg_6x12.fff" } diff --git a/example/font/moon.mod.json b/example/font/moon.mod.json index 79d4c49..6025ef8 100644 --- a/example/font/moon.mod.json +++ b/example/font/moon.mod.json @@ -1,5 +1,5 @@ { - "name": "example-text", + "name": "example-font", "deps": { "firefly/firefly": { "path": "../.." diff --git a/example/scores/screenshot.png b/example/scores/screenshot.png new file mode 100644 index 0000000..953c2c8 Binary files /dev/null and b/example/scores/screenshot.png differ diff --git a/example/scores/screenshot.png.license b/example/scores/screenshot.png.license new file mode 100644 index 0000000..93b4034 --- /dev/null +++ b/example/scores/screenshot.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2025 Kalle Fagerberg + +SPDX-License-Identifier: MIT