mirror of
https://github.com/Steffo99/hella-farm.git
synced 2024-11-21 07:34:22 +00:00
Add summoning animation
This commit is contained in:
parent
7861c3d44d
commit
7e7eba4869
10 changed files with 126 additions and 26 deletions
|
@ -5,7 +5,7 @@ This project uses the following external assets:
|
|||
| File | URL | License |
|
||||
|------|-------|-----|
|
||||
| `./icon.svg` | Godot icon | MIT license |
|
||||
| `./temp/tollbell.mp3` | https://freesound.org/people/sdroliasnick/sounds/731270/ | CC0 |
|
||||
| `./entities/summoning_circle_pentagram.mp3` | https://freesound.org/people/sdroliasnick/sounds/731270/ | CC0 |
|
||||
| `./entities/sheep_drag.wav` | https://freesound.org/people/michaelperfect/sounds/710298/ | CC0 |
|
||||
| `./temp/click&pop.wav` | https://freesound.org/people/GammaGool/sounds/730488/ | CC0 |
|
||||
| `./entities/monocle_drag.wav` | https://freesound.org/people/NovaSoundTechnology/sounds/727104/ | CC0 |
|
||||
|
|
|
@ -37,3 +37,9 @@ bus/6/mute = false
|
|||
bus/6/bypass_fx = false
|
||||
bus/6/volume_db = 0.0
|
||||
bus/6/send = &"Sounds"
|
||||
bus/7/name = &"SacrificeSounds"
|
||||
bus/7/solo = false
|
||||
bus/7/mute = false
|
||||
bus/7/bypass_fx = false
|
||||
bus/7/volume_db = 0.0
|
||||
bus/7/send = &"Sounds"
|
||||
|
|
19
entities/summoning_circle_pentagram.mp3.import
Normal file
19
entities/summoning_circle_pentagram.mp3.import
Normal file
|
@ -0,0 +1,19 @@
|
|||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
uid="uid://bwfscrmf25vkv"
|
||||
path="res://.godot/imported/summoning_circle_pentagram.mp3-700160f9c7ec1f1582c401056de18c0d.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://entities/summoning_circle_pentagram.mp3"
|
||||
dest_files=["res://.godot/imported/summoning_circle_pentagram.mp3-700160f9c7ec1f1582c401056de18c0d.mp3str"]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
||||
bpm=0
|
||||
beat_count=0
|
||||
bar_beats=4
|
|
@ -1,8 +1,10 @@
|
|||
[gd_scene load_steps=10 format=3 uid="uid://cgpwig0rd08vh"]
|
||||
[gd_scene load_steps=12 format=3 uid="uid://cgpwig0rd08vh"]
|
||||
|
||||
[ext_resource type="Script" path="res://behaviours/summoning_circle.gd" id="1_l5mec"]
|
||||
[ext_resource type="PackedScene" uid="uid://tx1qi6ahlxjp" path="res://behaviours/spawner.tscn" id="2_xq0wr"]
|
||||
[ext_resource type="AudioStream" uid="uid://bwfscrmf25vkv" path="res://entities/summoning_circle_pentagram.mp3" id="3_5v22t"]
|
||||
[ext_resource type="Texture2D" uid="uid://n0wj20mduwy8" path="res://entities/summoning_circle_pentagram.png" id="3_stpdd"]
|
||||
[ext_resource type="PackedScene" uid="uid://baqbdtmtugh3d" path="res://entities/summoning_circle_pentagram_particles.tscn" id="4_oygmc"]
|
||||
[ext_resource type="PackedScene" uid="uid://ddpo03rb6068c" path="res://entities/sacrifice_stone.tscn" id="4_qyef2"]
|
||||
[ext_resource type="PackedScene" uid="uid://ufjnfj3itypj" path="res://behaviours/summoning_recipe.tscn" id="5_jbk35"]
|
||||
[ext_resource type="PackedScene" uid="uid://4d3ksr3171x4" path="res://entities/imp.tscn" id="6_utwxo"]
|
||||
|
@ -20,23 +22,29 @@ position = Vector2(2, 4)
|
|||
scale = Vector2(2, 2)
|
||||
texture = ExtResource("3_stpdd")
|
||||
|
||||
[node name="SacrificeSound" type="AudioStreamPlayer2D" parent="."]
|
||||
stream = ExtResource("3_5v22t")
|
||||
bus = &"SacrificeSounds"
|
||||
|
||||
[node name="SacrificeParticles" parent="." instance=ExtResource("4_oygmc")]
|
||||
|
||||
[node name="Stones" type="Node2D" parent="."]
|
||||
y_sort_enabled = true
|
||||
|
||||
[node name="StoneUp" parent="Stones" instance=ExtResource("4_qyef2")]
|
||||
position = Vector2(0, -76)
|
||||
position = Vector2(0, -60)
|
||||
|
||||
[node name="StoneTopLeft" parent="Stones" instance=ExtResource("4_qyef2")]
|
||||
position = Vector2(-92, -32)
|
||||
position = Vector2(-92, -16)
|
||||
|
||||
[node name="StoneTopRight" parent="Stones" instance=ExtResource("4_qyef2")]
|
||||
position = Vector2(92, -32)
|
||||
position = Vector2(92, -16)
|
||||
|
||||
[node name="StoneBottomLeft" parent="Stones" instance=ExtResource("4_qyef2")]
|
||||
position = Vector2(-75, 62)
|
||||
position = Vector2(-75, 78)
|
||||
|
||||
[node name="StoneBottomRight" parent="Stones" instance=ExtResource("4_qyef2")]
|
||||
position = Vector2(75, 62)
|
||||
position = Vector2(75, 78)
|
||||
|
||||
[node name="Recipes" type="Node" parent="."]
|
||||
|
||||
|
@ -82,6 +90,8 @@ scene = ExtResource("8_jtxan")
|
|||
[node name="Cthulhu" parent="Spawners" instance=ExtResource("2_xq0wr")]
|
||||
scene = ExtResource("9_wli14")
|
||||
|
||||
[connection signal="recipe_matched" from="." to="SacrificeSound" method="play" unbinds=2]
|
||||
[connection signal="recipe_matched" from="." to="SacrificeParticles" method="emit" unbinds=2]
|
||||
[connection signal="matched" from="Recipes/FiveTopHats" to="Spawners/Watcher" method="spawn" unbinds=1]
|
||||
[connection signal="matched" from="Recipes/FiveMonocles" to="Spawners/Watcher" method="spawn" unbinds=1]
|
||||
[connection signal="matched" from="Recipes/ASkull" to="Spawners/Chupacabra" method="spawn" unbinds=1]
|
||||
|
|
BIN
entities/summoning_circle_pentagram_particle.png
(Stored with Git LFS)
Normal file
BIN
entities/summoning_circle_pentagram_particle.png
(Stored with Git LFS)
Normal file
Binary file not shown.
34
entities/summoning_circle_pentagram_particle.png.import
Normal file
34
entities/summoning_circle_pentagram_particle.png.import
Normal file
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://66ncgcvmy31y"
|
||||
path="res://.godot/imported/summoning_circle_pentagram_particle.png-6240335ade5ad1a93dcaa95428ed56f1.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://entities/summoning_circle_pentagram_particle.png"
|
||||
dest_files=["res://.godot/imported/summoning_circle_pentagram_particle.png-6240335ade5ad1a93dcaa95428ed56f1.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
6
entities/summoning_circle_pentagram_particles.gd
Normal file
6
entities/summoning_circle_pentagram_particles.gd
Normal file
|
@ -0,0 +1,6 @@
|
|||
extends GPUParticles2D
|
||||
class_name SummoningCirclePentagramParticles
|
||||
|
||||
|
||||
func emit():
|
||||
emitting = true
|
41
entities/summoning_circle_pentagram_particles.tscn
Normal file
41
entities/summoning_circle_pentagram_particles.tscn
Normal file
|
@ -0,0 +1,41 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://baqbdtmtugh3d"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://66ncgcvmy31y" path="res://entities/summoning_circle_pentagram_particle.png" id="1_rig2w"]
|
||||
[ext_resource type="Script" path="res://entities/summoning_circle_pentagram_particles.gd" id="2_u6u0k"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_7fg1u"]
|
||||
colors = PackedColorArray(0.902281, 0.270634, 0.223239, 1, 0.678553, 0.184161, 0.270634, 1)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_l2xt1"]
|
||||
gradient = SubResource("Gradient_7fg1u")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_0ctbi"]
|
||||
lifetime_randomness = 0.2
|
||||
particle_flag_disable_z = true
|
||||
emission_shape = 1
|
||||
emission_sphere_radius = 72.0
|
||||
direction = Vector3(0, -1, 0)
|
||||
spread = 10.0
|
||||
initial_velocity_min = 90.0
|
||||
initial_velocity_max = 120.0
|
||||
gravity = Vector3(0, -100, 0)
|
||||
radial_accel_min = 100.0
|
||||
radial_accel_max = 200.0
|
||||
scale_min = 2.0
|
||||
scale_max = 2.0
|
||||
color_ramp = SubResource("GradientTexture1D_l2xt1")
|
||||
|
||||
[node name="Particles" type="GPUParticles2D"]
|
||||
z_index = 5
|
||||
texture_filter = 1
|
||||
emitting = false
|
||||
amount = 1024
|
||||
process_material = SubResource("ParticleProcessMaterial_0ctbi")
|
||||
texture = ExtResource("1_rig2w")
|
||||
lifetime = 2.0
|
||||
one_shot = true
|
||||
explosiveness = 0.98
|
||||
randomness = 0.1
|
||||
fixed_fps = 60
|
||||
draw_order = 2
|
||||
script = ExtResource("2_u6u0k")
|
|
@ -1,19 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
uid="uid://bwfscrmf25vkv"
|
||||
path="res://.godot/imported/tollbell.mp3-eacf00af005e4b329c6241109d68c18b.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://temp/tollbell.mp3"
|
||||
dest_files=["res://.godot/imported/tollbell.mp3-eacf00af005e4b329c6241109d68c18b.mp3str"]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
||||
bpm=0
|
||||
beat_count=0
|
||||
bar_beats=4
|
Loading…
Reference in a new issue