155 lines
4 KiB
YAML
155 lines
4 KiB
YAML
animations:
|
|
- name: example animation
|
|
description: This is the example animation to showcase some of the options
|
|
loop_count: 1 # Number of loops (1 for single play, 0 for infinite)
|
|
|
|
# Define the trigger for this animation.
|
|
# In this case, it triggers when a button is pressed.
|
|
trigger: Butn_0001_0001 #Button 1 pressed
|
|
|
|
# Specify whether this animation can be overridden by another animation.
|
|
overrideable: true
|
|
|
|
graphics:
|
|
- type: transition
|
|
to_file: animation1_frame1.png # Specify the new PNG image for the transition
|
|
duration: 10 # The amount of frames the transition will take.
|
|
|
|
- type: image
|
|
source_file: animation1_frame1.png
|
|
duration: 10 # The amount of frames the image will be shown.
|
|
# This is the initial frame of the animation.
|
|
|
|
- type: transition
|
|
to_file: animation1_frame2.png
|
|
duration: 10 # The amount of frames the transition will take.
|
|
# This is a transition from the initial frame to the next frame.
|
|
# Transitions can be used to create smooth animations.
|
|
|
|
# You can add more graphics elements as needed for this animation.
|
|
|
|
# Additional comments or configuration options for Animation1 can go here.
|
|
# For example, you can specify the duration, sound effects, or other details.
|
|
|
|
- name: set closed
|
|
description: Animation to close eyes
|
|
loop_count: 1
|
|
|
|
trigger: Butn_0001_0001
|
|
|
|
overrideable: true
|
|
|
|
graphics:
|
|
- type: transition
|
|
to_file: eyesClosed_neutral.png
|
|
duration: 10
|
|
|
|
- name: set confusion
|
|
description: Animation to be confused
|
|
loop_count: 1
|
|
|
|
trigger: Butn_0002_0001
|
|
|
|
overrideable: true
|
|
|
|
graphics:
|
|
- type: transition
|
|
to_file: dizzyFace.png
|
|
duration: 10
|
|
|
|
- name: set angry
|
|
description: Animation to be confused
|
|
loop_count: 1
|
|
|
|
trigger: Butn_0003_0001
|
|
|
|
overrideable: true
|
|
|
|
graphics:
|
|
- type: transition
|
|
to_file: angryFace.png
|
|
duration: 10
|
|
|
|
- name: set love
|
|
description: Animation for love eyes
|
|
loop_count: 1
|
|
|
|
trigger: Butn_0004_0001
|
|
|
|
overrideable: true
|
|
|
|
graphics:
|
|
- type: transition
|
|
to_file: loveFace.png
|
|
duration: 10
|
|
|
|
- name: reset to continuous blink
|
|
description: Animation for blinking
|
|
loop_count: 0
|
|
|
|
trigger: Butn_0004_0001
|
|
|
|
overrideable: true
|
|
|
|
graphics:
|
|
- type: transition # close the eye from whatever the current state
|
|
to_file: eyesClosed_neutral.png
|
|
duration: 6
|
|
|
|
- type: image # hold eye closed
|
|
source_file: eyesClosed_neutral.png
|
|
duration: 10
|
|
|
|
- type: transition # open the eye again from being closed
|
|
to_file: neutral.png
|
|
duration: 6
|
|
|
|
- type: image # hold eye closed
|
|
source_file: neutral.png
|
|
duration: 400
|
|
|
|
- name: blink
|
|
description: Animation for a blink
|
|
loop_count: 1
|
|
|
|
trigger: blinkTimer #Button 2 pressed
|
|
|
|
overrideable: true # blink can be interupted at any time
|
|
|
|
graphics:
|
|
- type: transition # close the eye from whatever the current state
|
|
to_file: eyesClosed_neutral.png
|
|
duration: 6
|
|
|
|
- type: image # hold eye closed
|
|
source_file: eyesClosed_neutral.png
|
|
duration: 10
|
|
|
|
- type: transition # open the eye again from being closed
|
|
to_file: neutral.png
|
|
duration: 6
|
|
|
|
- name: boot
|
|
description: boot with blinking
|
|
loop_count: 0
|
|
|
|
trigger: boot
|
|
|
|
overrideable: true # blink can be interupted at any time
|
|
|
|
graphics:
|
|
- type: transition # close the eye from whatever the current state
|
|
to_file: eyesClosed_neutral.png
|
|
duration: 6
|
|
|
|
- type: image # hold eye closed
|
|
source_file: eyesClosed_neutral.png
|
|
duration: 10
|
|
|
|
- type: transition # open the eye again from being closed
|
|
to_file: neutral.png
|
|
duration: 6
|
|
|
|
- type: image # hold eye closed
|
|
source_file: neutral.png
|
|
duration: 400
|