Update Dog entity with new textures and animations. Add Level 4 scene with game elements and UI components.
This commit is contained in:
parent
f4e2169009
commit
11f8c1d815
14 changed files with 432 additions and 9 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=19 format=3 uid="uid://cdk8rrve1fe3u"]
|
||||
[gd_scene load_steps=20 format=3 uid="uid://cdk8rrve1fe3u"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/scripts/main_menu.gd" id="1_ges7y"]
|
||||
[ext_resource type="Resource" uid="uid://bn4qhonifxne3" path="res://levels/rules/main_menu.tres" id="2_4iepj"]
|
||||
|
|
@ -16,6 +16,7 @@
|
|||
[ext_resource type="PackedScene" uid="uid://cx7cunaspu08a" path="res://entities/DancerDrone.tscn" id="13_fi5ph"]
|
||||
[ext_resource type="PackedScene" uid="uid://dqdi1tpoid80c" path="res://entities/CollectorDrone.tscn" id="14_qpr88"]
|
||||
[ext_resource type="PackedScene" uid="uid://cwutwy11pityw" path="res://ui/LevelCompleteComponent.tscn" id="14_swqxu"]
|
||||
[ext_resource type="PackedScene" uid="uid://cfhoi2rqxa3up" path="res://entities/Dog.tscn" id="19_a6u8t"]
|
||||
[ext_resource type="Texture2D" uid="uid://15wckxixnr8y" path="res://resources/images/logo.png" id="19_jw5rd"]
|
||||
[ext_resource type="Texture2D" uid="uid://c3tl5pihlrd8u" path="res://resources/cursors/navigation_s.png" id="20_fw4ew"]
|
||||
|
||||
|
|
@ -136,6 +137,11 @@ scale = Vector2(0.3, 0.3)
|
|||
unique_name_in_owner = true
|
||||
position = Vector2(1042, 458)
|
||||
|
||||
[node name="Dog" parent="." instance=ExtResource("19_a6u8t")]
|
||||
position = Vector2(1034, 177)
|
||||
rotation = 1.03149
|
||||
distracted = true
|
||||
|
||||
[node name="Beehive" parent="." groups=["beehive"] instance=ExtResource("10_1lp5c")]
|
||||
unique_name_in_owner = true
|
||||
position = Vector2(306, 459)
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ class_name Dog
|
|||
|
||||
var acquired_target : Bee = null
|
||||
var target_timer : float = 0.0
|
||||
var distracted : bool = false
|
||||
@export var distracted : bool = false
|
||||
|
||||
func _ready():
|
||||
death_box.connect("body_entered", Callable(self, "_on_body_entered"))
|
||||
|
|
@ -16,7 +16,7 @@ func _process(delta):
|
|||
target_timer += delta
|
||||
|
||||
# Look at the target
|
||||
rotation = lerp_angle(rotation, rotation + get_angle_to(acquired_target.global_position), 0.25)
|
||||
rotation = lerp_angle(rotation, rotation + get_angle_to(acquired_target.global_position), 0.5)
|
||||
|
||||
if target_timer > 3.0:
|
||||
# Kill the target!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue