Skip to content
Source
Sign inSign up
fuko/rive-preview-player
Open History to see the last commit

scene.rml

75 lines3.5 KB

1<Rive version="1" kind="fragment">
2 <AudioAsset file="whoosh.wav" name="whoosh" id="0:70"/>
3 <AudioAsset file="pop.wav" name="pop" id="0:71"/>
4 <AudioAsset file="ding.wav" volume="0.8" name="ding" id="0:72"/>
5​
6 <Artboard defaultStateMachineId="0:7" styleId="0:5" width="500" height="500" name="Artboard" id="0:2">
7 <LayoutComponentStyle name="Artboard Style" id="0:5"/>
8​
9 <Fill name="Background">
10 <SolidColor colorValue="FF1D1D1D" name="Color"/>
11 </Fill>
12​
13 <Shape x="80" y="250" name="Ball" id="0:14">
14 <Ellipse originX="0.5" originY="0.5" width="70" height="70" name="Path"/>
15 <Fill name="Fill">
16 <SolidColor colorValue="FF57A5E0" name="Color"/>
17 </Fill>
18 </Shape>
19​
20 <AudioEvent assetId="0:70" name="whoosh" id="0:60"/>
21 <AudioEvent assetId="0:71" name="pop" id="0:61"/>
22 <AudioEvent assetId="0:72" name="ding" id="0:62"/>
23​
24 <StateMachine name="State Machine 1" id="0:7">
25 <StateMachineLayer name="Layer 1" id="0:8">
26 <AnyState x="200" y="-120"/>
27 <ExitState x="400" y="-120"/>
28 <EntryState>
29 <StateTransition stateToId="0:12"/>
30 </EntryState>
31 <AnimationState x="200" animationId="0:6" id="0:12"/>
32 </StateMachineLayer>
33 </StateMachine>
34​
35 <LinearAnimation loopValue="loop" fps="60" duration="240" name="Bounce" id="0:6">
36 <KeyedObject objectId="0:14">
37 <KeyedProperty propertyKey="13">
38 <KeyFrameDouble value="80" interpolationType="linear"/>
39 <KeyFrameDouble value="420" interpolationType="linear" frame="60"/>
40 <KeyFrameDouble value="80" interpolationType="linear" frame="120"/>
41 <KeyFrameDouble value="250" interpolationType="linear" frame="180"/>
42 <KeyFrameDouble value="250" interpolationType="linear" frame="240"/>
43 </KeyedProperty>
44 <KeyedProperty propertyKey="16">
45 <KeyFrameDouble value="1" interpolationType="linear" frame="170"/>
46 <KeyFrameDouble value="1.8" interpolationType="linear" frame="190"/>
47 <KeyFrameDouble value="1" interpolationType="linear" frame="220"/>
48 </KeyedProperty>
49 <KeyedProperty propertyKey="17">
50 <KeyFrameDouble value="1" interpolationType="linear" frame="170"/>
51 <KeyFrameDouble value="1.8" interpolationType="linear" frame="190"/>
52 <KeyFrameDouble value="1" interpolationType="linear" frame="220"/>
53 </KeyedProperty>
54 </KeyedObject>
55 <KeyedObject objectId="0:60">
56 <KeyedProperty propertyKey="395">
57 <KeyFrameCallback frame="0"/>
58 <KeyFrameCallback frame="60"/>
59 <KeyFrameCallback frame="120"/>
60 </KeyedProperty>
61 </KeyedObject>
62 <KeyedObject objectId="0:61">
63 <KeyedProperty propertyKey="395">
64 <KeyFrameCallback frame="58"/>
65 <KeyFrameCallback frame="118"/>
66 </KeyedProperty>
67 </KeyedObject>
68 <KeyedObject objectId="0:62">
69 <KeyedProperty propertyKey="395">
70 <KeyFrameCallback frame="185"/>
71 </KeyedProperty>
72 </KeyedObject>
73 </LinearAnimation>
74 </Artboard>
75</Rive>