Skip to content

Commit c186201

Browse files
committed
Updated Links
1 parent f4e03fe commit c186201

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

docs/Tutorials/ConfigSave Files.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ nav_order: 4
66
---
77

88
# Config/Save Files
9-
You probably need files somewhat files for user configuration or for saving user data to be used in the next session. However, Cube2D Engine supports nothing of a sort but the original idea was to bind [ini.h] & [json] to [wren] for configuration files and save files and previous versions of the engine were using [ini.h] instead of [Game.wren]. I did try to bind [json] to [wren] but my brain just couldn't comprehend the greatness of [json] to be bind-ed into [wren] and as for [ini.h], I never even tried binding it to [wren] so lets see how you do it.
9+
You probably need files somewhat files for user configuration or for saving user data to be used in the next session. However, Cube2D Engine supports nothing of a sort but the original idea was to bind [ini.h] & [json] to [wren] for configuration files and save files and previous versions of the engine were using [ini.h] instead of `Game.wren`. I did try to bind [json] to [wren] but my brain just couldn't comprehend the greatness of [json] to be bind-ed into [wren] and as for [ini.h], I never even tried binding it to [wren] so lets see how you do it.
1010

1111
# Configuration Files (.wren Files)
1212

@@ -46,7 +46,7 @@ I wasn't going to code a json library but luckily for you, someone has already m
4646
You need [wren-json] in your desired scripts directory.
4747

4848
First, here's a .json file
49-
```json
49+
```js
5050
// File: Save.json
5151
{
5252
"Player": {
@@ -98,4 +98,9 @@ class SceneGame is Scene {
9898
If I'm correct, [wren-json] doesn't have a file loading or saving system or nothing of a sort that's why we have to rely on raylib's file management functionality here.
9999

100100
- Q: So why can't we use it for manual user configuration?
101-
- A: [wren-json] stringifys json objects into a single lined .json code and when its saved your user configuration file will become a single lined file and hard for user to configure whereas in non-manual configuration i.e. in game options configuration the single lining doesn't really matter.
101+
- A: [wren-json] stringifys json objects into a single lined .json code and when its saved your user configuration file will become a single lined file and hard for user to configure whereas in non-manual configuration i.e. in game options configuration the single lining doesn't really matter.
102+
103+
[ini.h]: https://giosali.github.io/ini.h/
104+
[json]: https://json.nlohmann.me/
105+
[wren]: https://wren.io
106+
[wren-json]: https://github.com/brandly/wren-json

0 commit comments

Comments
 (0)