This directory contains an example application which draws an animated bouncing ball using Scenic.
main.cc: Main entrypoint for the component binary
Start an emulator instance:
$ ./third_party/fuchsia-sdk/tools/x64/ffx product-bundle get workstation.qemu-x64 $ ./third_party/fuchsia-sdk/tools/x64/ffx emu start workstation.qemu-x64
Start a local package repository instance:
$ ./third_party/fuchsia-sdk/tools/x64/fserve --image workstation.qemu-x64-release
Note: This sample requires an image configuration that supports graphical sessions, such as
Run the build script to compile and package the sample:
Publish the FAR package to your local package repository:
$ ./third_party/fuchsia-sdk/tools/x64/fpublish out/x64/bouncing_ball.far
Launch the sample component using
ffx session add. This resolves the component from the package repository and adds it to the session manager:
$ ./third_party/fuchsia-sdk/tools/x64/ffx session add fuchsia-pkg://fuchsia.com/bouncing_ball#meta/bouncing_ball.cm
Verify that you can see the bouncing ball animation on your display.
If you have an input device attached, click the button to restart the animation.