diff --git a/collectables/crystal/collect_crystal.gd b/collectables/crystal/collect_crystal.gd index 569ed18..d51ccf9 100644 --- a/collectables/crystal/collect_crystal.gd +++ b/collectables/crystal/collect_crystal.gd @@ -10,7 +10,6 @@ func _ready(): func _on_body_entered(body: Node2D) -> void: if body.name == "player": emit_signal("crystal_picked_up") - queue_free() else: @@ -19,5 +18,5 @@ func _on_body_entered(body: Node2D) -> void: func _on_mouse_collision_input_event(viewport: Node, event: InputEvent, shape_idx: int) -> void: print("mouse entered") if Input.is_mouse_button_pressed(MOUSE_BUTTON_LEFT): - var destination = get_global_mouse_position() + var destination: Vector2 = get_global_mouse_position() global_position = global_position.move_toward(destination, 1.0) diff --git a/levels/backgrounds/caveBackground.png b/levels/backgrounds/caveBackground.png new file mode 100644 index 0000000..554413e Binary files /dev/null and b/levels/backgrounds/caveBackground.png differ diff --git a/levels/backgrounds/caveBackground.png.import b/levels/backgrounds/caveBackground.png.import new file mode 100644 index 0000000..ce15645 --- /dev/null +++ b/levels/backgrounds/caveBackground.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cgef6lu3bn5xv" +path="res://.godot/imported/caveBackground.png-0844683d40b0f745dbf257d095d9166b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://levels/backgrounds/caveBackground.png" +dest_files=["res://.godot/imported/caveBackground.png-0844683d40b0f745dbf257d095d9166b.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 diff --git a/levels/levelFinal/core/core.tscn b/levels/levelFinal/core/core.tscn index d31e38c..c6c70b0 100644 --- a/levels/levelFinal/core/core.tscn +++ b/levels/levelFinal/core/core.tscn @@ -7,7 +7,7 @@ [ext_resource type="Texture2D" uid="uid://ch6720bqxcsmf" path="res://levels/levelFinal/core/coreSprites/planetCore_0004.png" id="4_c0dob"] [ext_resource type="Texture2D" uid="uid://cd3n7wtnkho61" path="res://levels/levelFinal/core/coreSprites/planetCore_0005.png" id="5_v2s1a"] [ext_resource type="Texture2D" uid="uid://bykh05626og5c" path="res://levels/levelFinal/core/coreSprites/planetCore_0006.png" id="6_in0ky"] -[ext_resource type="Script" uid="uid://jeddvfkorpxu" path="res://levels/levelOne/animation_player.gd" id="8_d4a53"] +[ext_resource type="Script" path="res://levels/levelOne/animation_player.gd" id="8_d4a53"] [sub_resource type="SpriteFrames" id="SpriteFrames_macrm"] animations = [{ diff --git a/levels/levelOne/exitZone.tscn b/levels/levelOne/exitZone.tscn index 56118fa..33f6490 100644 --- a/levels/levelOne/exitZone.tscn +++ b/levels/levelOne/exitZone.tscn @@ -1,7 +1,7 @@ [gd_scene load_steps=8 format=3 uid="uid://dxojtfoa4jbe"] [ext_resource type="Script" uid="uid://c3qi2ffmxsl8i" path="res://levels/levelOne/exit_zone.gd" id="1_2uwmc"] -[ext_resource type="Script" uid="uid://jeddvfkorpxu" path="res://levels/levelOne/animation_player.gd" id="2_h31ej"] +[ext_resource type="Script" path="res://levels/levelOne/animation_player.gd" id="2_h31ej"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_jhhth"] size = Vector2(32, 29) diff --git a/levels/levelThree/exitZone3.tscn b/levels/levelThree/exitZone3.tscn index eea1df7..1eb98d5 100644 --- a/levels/levelThree/exitZone3.tscn +++ b/levels/levelThree/exitZone3.tscn @@ -1,7 +1,7 @@ [gd_scene load_steps=8 format=3 uid="uid://iui8sgglpc55"] [ext_resource type="Script" uid="uid://b0brgicfdcox0" path="res://levels/levelThree/exit_zone3.gd" id="1_pekjb"] -[ext_resource type="Script" uid="uid://jeddvfkorpxu" path="res://levels/levelOne/animation_player.gd" id="2_ofyjg"] +[ext_resource type="Script" path="res://levels/levelOne/animation_player.gd" id="2_ofyjg"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_jhhth"] size = Vector2(32, 29) diff --git a/levels/levelTwo/exitZone2.tscn b/levels/levelTwo/exitZone2.tscn index 7297b80..93621cb 100644 --- a/levels/levelTwo/exitZone2.tscn +++ b/levels/levelTwo/exitZone2.tscn @@ -1,7 +1,7 @@ [gd_scene load_steps=8 format=3 uid="uid://c0h3r0ot5jeds"] [ext_resource type="Script" uid="uid://b2wo3pho6jsk3" path="res://levels/levelTwo/exit_zone2.gd" id="1_i04ng"] -[ext_resource type="Script" uid="uid://jeddvfkorpxu" path="res://levels/levelOne/animation_player.gd" id="2_qxd85"] +[ext_resource type="Script" path="res://levels/levelOne/animation_player.gd" id="2_qxd85"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_jhhth"] size = Vector2(32, 29) diff --git a/planets/planetThree/planetThree.tscn b/planets/planetThree/planetThree.tscn index a082ed1..13421c1 100644 --- a/planets/planetThree/planetThree.tscn +++ b/planets/planetThree/planetThree.tscn @@ -23,7 +23,7 @@ [ext_resource type="Texture2D" uid="uid://jssqmb4832pr" path="res://player/smallPlayer/playerSprites/playerSprite_0008.png" id="14_s7fta"] [ext_resource type="Texture2D" uid="uid://dxeg6715vly1v" path="res://player/smallPlayer/playerSprites/playerSprite_0009.png" id="15_hrtuk"] [ext_resource type="Texture2D" uid="uid://b8eut6fnru722" path="res://player/smallPlayer/playerSprites/playerSprite_0010.png" id="16_2huu8"] -[ext_resource type="Script" uid="uid://jeddvfkorpxu" path="res://levels/levelOne/animation_player.gd" id="24_ho6ck"] +[ext_resource type="Script" path="res://levels/levelOne/animation_player.gd" id="24_ho6ck"] [sub_resource type="SpriteFrames" id="SpriteFrames_hrtuk"] animations = [{