You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When saving the game (in cosmosJourneyer.ts in generateSaveData), create a small screenshot of the game and save it to the save file as a base64 string.
CosmosJourneyer::generateSaveData, call Tools.CreateScreenshotAsync to the base 64 string for the thumbnail (use a small size parameter, we don't want a 4k image data in the save file)
In SaveLoadingPanelContent::createSaveDiv, add an image to display the thumbnail save between the save info on the left and the control buttons on the right.
When saving the game (in
cosmosJourneyer.ts
ingenerateSaveData
), create a small screenshot of the game and save it to the save file as a base64 string.Resource: https://forum.babylonjs.com/t/how-should-i-use-screenshottools-create-screenshot-with-resize-async/55363/2
Then change the loading save panel ui to display the screenshot.
The text was updated successfully, but these errors were encountered: