204 lines
5 KiB
YAML
204 lines
5 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_1000_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
|
|
- type: image
|
|
source_file: eyesClosed_neutral.png
|
|
duration: 1
|
|
|
|
- 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
|
|
- type: image
|
|
source_file: dizzyFace.png
|
|
duration: 1
|
|
|
|
- name: set corrupt
|
|
description: Animation to be corrupt
|
|
loop_count: 1
|
|
|
|
trigger: Butn_0006_0001
|
|
|
|
overrideable: true
|
|
|
|
graphics:
|
|
- type: transition
|
|
to_file: corruptFace.png
|
|
duration: 10
|
|
- type: image
|
|
source_file: corruptFace.png
|
|
duration: 1
|
|
|
|
- name: set QR
|
|
description: Animation to be confused
|
|
loop_count: 1
|
|
|
|
trigger: Butn_0007_0001
|
|
|
|
overrideable: true
|
|
|
|
graphics:
|
|
- type: transition
|
|
to_file: QRFace.png
|
|
duration: 10
|
|
- type: image
|
|
source_file: QRFace.png
|
|
duration: 1
|
|
|
|
|
|
- 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
|
|
- type: image
|
|
source_file: angryFace.png
|
|
duration: 1
|
|
|
|
- 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
|
|
- type: image
|
|
source_file: loveFace.png
|
|
duration: 1
|
|
|
|
- name: reset to continuous blink
|
|
description: Animation for blinking
|
|
loop_count: 0
|
|
repeat: true
|
|
trigger: Butn_0005_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 # frigeer to be set by timer, not currently in use
|
|
|
|
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: image # hold eye closed
|
|
source_file: neutral.png
|
|
duration: 40
|
|
|
|
- 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
|