Skip to content

Commit

Permalink
add missing script
Browse files Browse the repository at this point in the history
  • Loading branch information
ceceppa committed Sep 2, 2024
1 parent 42a5b7e commit d8a7e70
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
41 changes: 41 additions & 0 deletions export_presets.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[preset.0]

name="Web"
platform="Web"
runnable=true
advanced_options=false
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="../apks/Anima.html"
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
encrypt_directory=false
script_export_mode=2

[preset.0.options]

custom_template/debug=""
custom_template/release=""
variant/extensions_support=false
variant/thread_support=false
vram_texture_compression/for_desktop=true
vram_texture_compression/for_mobile=false
html/export_icon=true
html/custom_html_shell=""
html/head_include=""
html/canvas_resize_policy=2
html/focus_canvas_on_start=true
html/experimental_virtual_keyboard=false
progressive_web_app/enabled=false
progressive_web_app/ensure_cross_origin_isolation_headers=true
progressive_web_app/offline_page=""
progressive_web_app/display=1
progressive_web_app/orientation=0
progressive_web_app/icon_144x144=""
progressive_web_app/icon_180x180=""
progressive_web_app/icon_512x512=""
progressive_web_app/background_color=Color(0, 0, 0, 1)
22 changes: 22 additions & 0 deletions tests/test.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
@tool
extends Control

@export var debug_animation: bool = false:
set(value):
debug_animation = value

if not value or not %Label2:
return

_animate()

func _animate():
await (
Anima.Node(%Label2)
.clear()
.anima_animation("bounce", 0.5)
.play()
).animation_completed

func _on_button_pressed():
_animate()

0 comments on commit d8a7e70

Please sign in to comment.