diff --git a/examples/categories.txt b/examples/categories.txt index bbe30f23ef..cf1e4bf21f 100644 --- a/examples/categories.txt +++ b/examples/categories.txt @@ -7,6 +7,7 @@ renderer input audio +storage camera asyncio pen diff --git a/examples/storage/01-user/README.txt b/examples/storage/01-user/README.txt new file mode 100644 index 0000000000..9cdeb30359 --- /dev/null +++ b/examples/storage/01-user/README.txt @@ -0,0 +1,5 @@ +This example code creates an SDL window and renderer, and waits for the user +to click on the window. By default, the window color is blue; When storage +succeeds, the window turns green, if it fails the window turns red and the +error message is logged. Left clicking will save a game, all other clicks +will load a game. diff --git a/examples/storage/01-user/onmouseover.webp b/examples/storage/01-user/onmouseover.webp new file mode 100644 index 0000000000..9da7690217 Binary files /dev/null and b/examples/storage/01-user/onmouseover.webp differ diff --git a/examples/storage/01-user/thumbnail.png b/examples/storage/01-user/thumbnail.png new file mode 100644 index 0000000000..c27ac0bd6b Binary files /dev/null and b/examples/storage/01-user/thumbnail.png differ