designed map
This commit is contained in:
BIN
assets/chest_opened.png
Normal file
BIN
assets/chest_opened.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 362 B |
BIN
assets/dot.png
Normal file
BIN
assets/dot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 215 B |
BIN
assets/maze.png
BIN
assets/maze.png
Binary file not shown.
|
Before Width: | Height: | Size: 520 B After Width: | Height: | Size: 473 B |
16
scene/chest.tscn
Normal file
16
scene/chest.tscn
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
[gd_scene load_steps=4 format=3 uid="uid://c267u62jmp3dq"]
|
||||||
|
|
||||||
|
[ext_resource type="Texture2D" uid="uid://b0h7llq1qb706" path="res://assets/chest.png" id="1_dmyxo"]
|
||||||
|
[ext_resource type="Script" path="res://scripts/chest.gd" id="1_nilcj"]
|
||||||
|
|
||||||
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_miucj"]
|
||||||
|
size = Vector2(14, 14)
|
||||||
|
|
||||||
|
[node name="Chest" type="StaticBody2D"]
|
||||||
|
script = ExtResource("1_nilcj")
|
||||||
|
|
||||||
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||||
|
texture = ExtResource("1_dmyxo")
|
||||||
|
|
||||||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
|
shape = SubResource("RectangleShape2D_miucj")
|
||||||
File diff suppressed because one or more lines are too long
@@ -1,11 +1,7 @@
|
|||||||
[gd_scene load_steps=5 format=3 uid="uid://cd57rr2jffwqu"]
|
[gd_scene load_steps=4 format=3 uid="uid://cd57rr2jffwqu"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://player.gd" id="1_yhpqp"]
|
[ext_resource type="Script" path="res://scripts/player.gd" id="1_yhpqp"]
|
||||||
[ext_resource type="Texture2D" uid="uid://bsrmtons1ov7x" path="res://assets/maze.png" id="2_1jodf"]
|
[ext_resource type="Texture2D" uid="uid://d32ory5gus4lm" path="res://assets/dot.png" id="2_up8am"]
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id="AtlasTexture_75d0y"]
|
|
||||||
atlas = ExtResource("2_1jodf")
|
|
||||||
region = Rect2(48, 0, 16, 16)
|
|
||||||
|
|
||||||
[sub_resource type="CircleShape2D" id="CircleShape2D_c7wcn"]
|
[sub_resource type="CircleShape2D" id="CircleShape2D_c7wcn"]
|
||||||
radius = 6.0
|
radius = 6.0
|
||||||
@@ -14,7 +10,7 @@ radius = 6.0
|
|||||||
script = ExtResource("1_yhpqp")
|
script = ExtResource("1_yhpqp")
|
||||||
|
|
||||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||||
texture = SubResource("AtlasTexture_75d0y")
|
texture = ExtResource("2_up8am")
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
shape = SubResource("CircleShape2D_c7wcn")
|
shape = SubResource("CircleShape2D_c7wcn")
|
||||||
|
|||||||
1
scripts/chest.gd
Normal file
1
scripts/chest.gd
Normal file
@@ -0,0 +1 @@
|
|||||||
|
extends StaticBody2D
|
||||||
Reference in New Issue
Block a user