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`(%7z`#(?#BiUH!O_ptmyLme;s5{t{}~t@{e0b8 zK#~j~08z1lg@Gw7z(OI1iGiWOg<&qERs+)mM!UCVJHl2jS5;oX!Dt}cnVI*nJW<+# z^9}R;oH_0LZd&r!ZYq-do$|!?+sPBvZzoUqep_Af{Wd@6`#B3zA3Z@4{vf~f*2f}b z)pJ~8P!0LP#0b$07q)+nZ04NyeRocOLAA=o;S;i%6TaUzoHh^DVYS>Z%l05!mCCFy z4s$2Os)oOM*Sk@ydZdKv{Pzb0&^$ZwzYRn)JPe-2F9-V_F090kVrKikn>|}lo$vf2 z-g_%bNNGq`>_iFI8g?}2r#u%#bABB|18V5c>Hmr5{Ov}6ZBgQCq5!({&!nO`U*73g z?0OWd98MoaiD(f9hJXLJDA)i0d1U`D*8dHA`TsB36}|Zy^RdgfdY3bErZARg9%uli zGF%vx78}sgVhRHT11K$KFflNcI3vAU1_s6()26)>FB5!wfPvB0{MBi%|5v9? z{l8jQ`+rze_`fw<*8h#njQ_Ri(*CchOY5;o$LxCMmWiw@juopq0>+F=4~|gNabWoO zzkl=pugW~J{r~@;JNS3@?~4xw(w|=LY2EU`NB93?m4}ToiVnC^AVeIL4$IKeVGkE1 z9mX*+Fl@n-4(k|*N{KC1#|S0R=!dg{P}1!tH9QGEH6&NEDZz`*EzMjGT)22WQ%mvv4FO#qoqLRA0& literal 0 HcmV?d00001