one_shot_splash
Show the built-in pixel-cat startup intro before your scene.
cargo run --example one_shot_splashUse this page when you want working code faster than API descriptions. Start with a playable WebAssembly demo, then jump to the matching Rust example when you are ready to copy the shape into your own project.
Clone the engine repository first:
git clone https://github.com/Arion-Dsh/spottedcat.git
cd spottedcatThese are compiled from Rust to WebAssembly and embedded in the docs:
one_shot_splashShow the built-in pixel-cat startup intro before your scene.
cargo run --example one_shot_splashinput_exampleMove with WASD / arrow keys and render live text feedback.
cargo run --example input_examplergb_imageCreate raw RGBA image data and draw it as a Spottedcat image.
cargo run --example rgb_imageimage_shader_templateUse 2D shader template hooks, runtime uniforms, extra textures, and history.
cargo run --example image_shader_templatetouch_testInspect touch phases for mobile-style interaction.
cargo run --example touch_testgltf_loaderLoad GLTF models and material data.
cargo run --example gltf_loader --features gltfanimated_gltfPlay animated GLTF content.
cargo run --example animated_gltf --features gltffog_worldAdd distance and height fog to a 3D scene.
cargo run --example fog_world --features "model-3d effects"metal_sphereStyle a model with a custom shader.
cargo run --example metal_sphere --features model-3dinstancing_testDraw many copies of a model efficiently.
cargo run --example instancing_test --features model-3dexamples/wasm/flappy_catShowcase sourceexamples/wasm/showcase_demosWebAssembly starterexamples/wasm/wasm_demoAndroidexamples/androidiOSexamples/ios| If you want to... | Start with |
|---|---|
| Build a complete mini-game | Flappy Cat |
| Learn the update / draw loop | input_example |
| Draw pixels or sprites | rgb_image |
| Add 2D visual effects | image_shader_template |
| Load models | gltf_loader |
| Add atmosphere | fog_world |
| Ship with the built-in cat intro | one_shot_splash |