Game Data
Location of User Directory
C:\Users\<user>\AppData\Roaming\Godot\app_userdata\<project>Read From a JSON File
Create JSON File
{
"players": {
"PLAYER_1": {
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"favorite_video_games": [
"Super Mario",
"Zelda"
]
},
"PLAYER_2": {
"first_name": "Jane",
"last_name": "Doe",
"email": "[email protected]",
"favorite_video_games": [
"Sonic",
"Starcraft"
]
},
"PLAYER_3": {
"first_name": "Jill",
"last_name": "Smith",
"email": "[email protected]",
"favorite_video_games": [
"Kirby",
"World of Warcraft"
]
}
}
}Create GD Script
Auto Load Import Data GD Script

Create Demo Scene and Script
Play the Scene
Save and Load Character Data From a JSON File
Create Character Class
Create SaveGameAsJSON Class
Create DemoSaveLoad Scene and Script
Test Code



Last updated