From f8dc19e65ae7dce717f421cb34bf1d5ac68918f7 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 19 Jun 2026 00:10:56 -0400 Subject: [PATCH] examples/storage/01-user: Set up for web builds. --- examples/categories.txt | 1 + examples/storage/01-user/README.txt | 5 +++++ examples/storage/01-user/onmouseover.webp | Bin 0 -> 1982 bytes examples/storage/01-user/thumbnail.png | Bin 0 -> 283 bytes 4 files changed, 6 insertions(+) create mode 100644 examples/storage/01-user/README.txt create mode 100644 examples/storage/01-user/onmouseover.webp create mode 100644 examples/storage/01-user/thumbnail.png 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 0000000000000000000000000000000000000000..9da7690217103f27b06c543b63bf1b73f861bf71 GIT binary patch literal 1982 zcmWIYbaUIr&cG1v>J$(bU=hK^z`(!+#Pv)J_Zb-+{XBiyfV}@ezyRd=y0w5L!2qIS z0}BHaP@h5$P`to}VJ@Rq1JeUWySHUK!d5OK|@yo$}hYKsQqnHT{v7Rlc&Ubzh@4Xczq%;Hzm{QsBiir##U`Pk)Ky~~+7Qy9xL4>Uj%8deIF78}sgVhT_t zC@p3H#Y>zKX|Z5!SQ7&Sr& z?B5q33Zy^1+|#<{fsgM0#VQXQWfUE-CO^0!C>@rerNbUzAqq-|aX|4cc+z1VFi{eb z5?iW{5lW!Z4`&6Tq}xqucoOnx3LG3M5MJ~|08^rr|NsA7`;7Yo>i_>)nqkO(Siw7! Of#nM4CSX~K6954Ioikwo literal 0 HcmV?d00001 diff --git a/examples/storage/01-user/thumbnail.png b/examples/storage/01-user/thumbnail.png new file mode 100644 index 0000000000000000000000000000000000000000..c27ac0bd6bf8894fe66319febedd95bfc32a0e29 GIT binary patch literal 283 zcmeAS@N?(olHy`uVBq!ia0y~yU}|7sV0^&H3>4v)_gfC6m;-!5Tp1YtcU4>p2XZw^ zTq83ZIZVg{1d