Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
for these commits:
* 91b8d1d
* b06da37
  • Loading branch information
MariusDoe authored Nov 21, 2023
1 parent 5be994d commit d72535d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,12 @@ You can use the `GitAssetLoader` class to access the managed assets in your proj
```smalltalk
| assetLoader form sound |
assetLoader := GitAssetLoader for: 'MyProjectName'.
"by default, the GitAssetLoader imports assets from /assets/"
form := assetLoader loadForm: 'image.png'. "loads /assets/image.png"
"you can change this basePath:"
assetLoader basePath: FSPath root.
sound := assetLoader loadSound: 'jingle.wav' "loads /jingle.wav"
form := assetLoader loadForm: 'image.png'. "loads /image.png"
"you can add a basePath to the GitAssetLoader:"
assetLoader basePath: 'assets'.
sound := assetLoader loadSound: 'jingle.wav'. "loads /assets/jingle.wav"
"you can also set the basePath with a constructor:"
assetLoader := GitAssetLoader for: 'MyProjectName' basePath: 'assets'.
```

### Supported asset types
Expand Down

0 comments on commit d72535d

Please sign in to comment.