added cave background
This commit is contained in:
parent
080885876c
commit
dec0a6ab69
|
@ -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)
|
||||
|
|
BIN
levels/backgrounds/caveBackground.png
Normal file
BIN
levels/backgrounds/caveBackground.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.3 KiB |
34
levels/backgrounds/caveBackground.png.import
Normal file
34
levels/backgrounds/caveBackground.png.import
Normal file
|
@ -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
|
|
@ -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 = [{
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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 = [{
|
||||
|
|
Loading…
Reference in New Issue
Block a user