Adds new animations and background
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
extends Node2D
|
||||
|
||||
@export var input_name = ""
|
||||
@export var color_mix:Color = Color(1,1,1)
|
||||
const ENEMY = preload("res://Scenes/Worm/enemy.tscn")
|
||||
const DISTANCE = 40
|
||||
var red_button = false
|
||||
@@ -51,11 +50,7 @@ func red_out():
|
||||
$AnimatedSprite2D.play("red_out")
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
match $AnimatedSprite2D.animation:
|
||||
"default", "pressed":
|
||||
$AnimatedSprite2D.modulate = color_mix
|
||||
_:
|
||||
$AnimatedSprite2D.modulate = Color(1,1,1)
|
||||
pass
|
||||
|
||||
func spawn_enemy():
|
||||
if(trans):
|
||||
|
@@ -3,7 +3,7 @@
|
||||
[ext_resource type="Script" path="res://Scenes/Button/button.gd" id="1_fkyus"]
|
||||
[ext_resource type="Texture2D" uid="uid://cmnangp78o1y6" path="res://Assets/Buttons/IMG_3394.png" id="2_jyhi7"]
|
||||
[ext_resource type="Texture2D" uid="uid://8ce1ggql35ki" path="res://Assets/Buttons/IMG_3403.png" id="3_1lg6b"]
|
||||
[ext_resource type="Texture2D" uid="uid://e40ep7k06vl7" path="res://Assets/Buttons/IMG_3395.png" id="4_ho636"]
|
||||
[ext_resource type="Texture2D" uid="uid://c4efcnd8qyo2p" path="res://Assets/Buttons/IMG_3495.png" id="4_dyrxo"]
|
||||
[ext_resource type="Texture2D" uid="uid://cdilvc7bopjtg" path="res://Assets/Buttons/IMG_3393.png" id="5_wgvcg"]
|
||||
[ext_resource type="Texture2D" uid="uid://cqmf1i4v81bl6" path="res://Assets/Buttons/IMG_3402.png" id="6_lmv6p"]
|
||||
[ext_resource type="Texture2D" uid="uid://iujiv0je2v1i" path="res://Assets/Explosion/IMG_3416.png" id="7_dr88a"]
|
||||
@@ -34,7 +34,7 @@ animations = [{
|
||||
"texture": ExtResource("3_1lg6b")
|
||||
}, {
|
||||
"duration": 2.0,
|
||||
"texture": ExtResource("4_ho636")
|
||||
"texture": ExtResource("4_dyrxo")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_1lg6b")
|
||||
|
BIN
Scenes/background.png
Normal file
BIN
Scenes/background.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.5 MiB |
34
Scenes/background.png.import
Normal file
34
Scenes/background.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b4d0kcmvv4qcx"
|
||||
path="res://.godot/imported/background.png-4f13debe3191332d191b6668ea7cf1f3.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Scenes/background.png"
|
||||
dest_files=["res://.godot/imported/background.png-4f13debe3191332d191b6668ea7cf1f3.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,7 +6,7 @@ var dialog_step = 0
|
||||
var is_dialog_active = false
|
||||
signal dialogue_over
|
||||
|
||||
func start():
|
||||
func start_dialog_1():
|
||||
visible = true
|
||||
is_dialog_active = true
|
||||
dialogue = load_dialogue()
|
||||
@@ -25,8 +25,7 @@ func _unhandled_input(event: InputEvent) -> void:
|
||||
handle_dialog_change()
|
||||
|
||||
func handle_dialog_change():
|
||||
$NinePatchRect/Name.text = dialogue[dialog_step].name
|
||||
$NinePatchRect/Text.text = dialogue[dialog_step].text
|
||||
$Text.text = dialogue[dialog_step].text
|
||||
|
||||
|
||||
func load_dialogue():
|
||||
|
Reference in New Issue
Block a user