From 463f1c5cdaac2174bf24c638116df71820b2f39f Mon Sep 17 00:00:00 2001 From: Victor Turgeon Date: Tue, 11 Oct 2022 15:41:00 -0400 Subject: [PATCH] Resized enemy --- HUD.tscn | 2 +- Scenes/Enemy.tscn | 5 +++-- Start.gd | 4 ++-- Test_Scene.tscn | 6 +++++- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/HUD.tscn b/HUD.tscn index 5a2c849..9c99460 100644 --- a/HUD.tscn +++ b/HUD.tscn @@ -149,7 +149,7 @@ margin_right = 1062.0 margin_bottom = 653.0 text = "Quit Game" -[node name="MenuMusic" type="AudioStreamPlayer" parent="."] +[node name="MenuMusic" type="AudioStreamPlayer" parent="MenuLayer/Start"] [connection signal="pressed" from="MenuLayer/Start/New Game" to="MenuLayer/Start" method="_on_New_Game_pressed"] [connection signal="pressed" from="MenuLayer/Start/Quit to Desktop" to="MenuLayer/Start" method="_on_Quit_to_Desktop_Button_pressed"] diff --git a/Scenes/Enemy.tscn b/Scenes/Enemy.tscn index bd2e9f2..686c358 100644 --- a/Scenes/Enemy.tscn +++ b/Scenes/Enemy.tscn @@ -9,12 +9,13 @@ [node name="Enemy" type="KinematicBody"] [node name="MeshInstance" type="MeshInstance" parent="."] +transform = Transform( 0.6, 0, 0, 0, 0.6, 0, 0, 0, 0.6, 0, 0, 0 ) mesh = ExtResource( 1 ) [node name="BodyCollision" type="CollisionShape" parent="."] -transform = Transform( 0.914478, 0, 0, 0, 1.50713, 0, 0, 0, 0.383312, 0, 0.642072, 0 ) +transform = Transform( 0.914478, 0, 0, 0, 1.50713, 0, 0, 0, 0.383312, 0, -0.479353, 0 ) shape = SubResource( 1 ) [node name="Head" type="CollisionShape" parent="."] -transform = Transform( 0.761117, 0, 0, 0, 1.04862, 0, 0, 0, 0.761117, 0, 3.5714, 0 ) +transform = Transform( 0.528959, 0, 0, 0, 0.728767, 0, 0, 0, 0.528959, 0, 1.87623, 0 ) shape = SubResource( 2 ) diff --git a/Start.gd b/Start.gd index 3ffa41e..0349e1f 100644 --- a/Start.gd +++ b/Start.gd @@ -7,7 +7,7 @@ onready var QuitDesktop = $"Quit to Desktop" onready var Music = $"MenuMusic" func _ready(): - #Music.play() + Music.play() self.show() get_tree().paused = true QuitGame.hide() @@ -23,7 +23,7 @@ func _on_New_Game_pressed(): Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED) get_tree().paused = false ingame = true - #Music.stop() + Music.stop() func openMenu(): if (ingame): diff --git a/Test_Scene.tscn b/Test_Scene.tscn index 17ba975..c21408c 100644 --- a/Test_Scene.tscn +++ b/Test_Scene.tscn @@ -1,9 +1,10 @@ -[gd_scene load_steps=7 format=2] +[gd_scene load_steps=8 format=2] [ext_resource path="res://Materials/Dark_ProtoMat.tres" type="Material" id=1] [ext_resource path="res://Player.tscn" type="PackedScene" id=2] [ext_resource path="res://Materials/Orange_ProtoMat.tres" type="Material" id=3] [ext_resource path="res://AllSkyFree_Skyboxes/Epic_BlueSunset_EquiRect_flat.png" type="Texture" id=4] +[ext_resource path="res://Scenes/Enemy.tscn" type="PackedScene" id=5] [sub_resource type="PanoramaSky" id=1] panorama = ExtResource( 4 ) @@ -65,3 +66,6 @@ transform = Transform( 1, 0, 0, 0, 0.849579, 0.527461, 0, -0.527461, 0.849579, 0 light_color = Color( 1, 0.924276, 0.869018, 1 ) light_specular = 1.0 shadow_enabled = true + +[node name="Enemy" parent="." instance=ExtResource( 5 )] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.367474, 2.61222, -26.0531 )