Fix once more the description of @image-url in the tutorial

PR #669 changed the wording, but the tutorial uses the sixtyfps! macro
for which that wording was fine.
Instead, be more explicit about chere the file is looked up in both situation
This commit is contained in:
Olivier Goffart 2021-11-23 11:15:50 +01:00
parent 865f574808
commit 7a88902d4e

View file

@ -14,8 +14,10 @@ We copy the following code inside of the `sixtyfps!` macro:
```
Inside the <span class="hljs-built_in">Rectangle</span> we place an <span class="hljs-built_in">Image</span> element that
loads an icon with the <span class="hljs-built_in">@image-url()</span> macro. The path is relative to the folder in which
the .60 file is located. This icon and others we're going to use later need to be installed first. You can download a
loads an icon with the <span class="hljs-built_in">@image-url()</span> macro.
When using the `sixtyfps!` macro, the path is relative to the folder in which the Cargo.toml is located.
When using .60 files, it is relative to the folder of the .60 file containing it.
This icon and others we're going to use later need to be installed first. You can download a
[Zip archive](https://sixtyfps.io/blog/memory-game-tutorial/icons.zip) that we have prepared and extract it with the
following two commands: