diff --git a/project.godot b/project.godot index b08f0018..ab5b0b9a 100644 --- a/project.godot +++ b/project.godot @@ -11,7 +11,7 @@ config_version=5 [application] config/name="pronto" -run/main_scene="res://prototypes/game-shadows-of-surveillance/game-shadows-of-surveillance.tscn" +run/main_scene="res://prototypes/game-shadows-of-surveillance/levels/game-shadows-of-surveillance.tscn" config/features=PackedStringArray("4.2", "Forward Plus") run/low_processor_mode=true config/icon="res://icon.svg" diff --git a/prototypes/game-shadows-of-surveillance/10.png b/prototypes/game-shadows-of-surveillance/assets/10.png similarity index 100% rename from prototypes/game-shadows-of-surveillance/10.png rename to prototypes/game-shadows-of-surveillance/assets/10.png diff --git a/prototypes/game-shadows-of-surveillance/10.png.import b/prototypes/game-shadows-of-surveillance/assets/10.png.import similarity index 70% rename from prototypes/game-shadows-of-surveillance/10.png.import rename to prototypes/game-shadows-of-surveillance/assets/10.png.import index d46f78f3..3b5f2fa5 100644 --- a/prototypes/game-shadows-of-surveillance/10.png.import +++ b/prototypes/game-shadows-of-surveillance/assets/10.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://bhjxc5s34c3cu" -path="res://.godot/imported/10.png-21bb3e1511466bd58cb39629e4bca525.ctex" +path="res://.godot/imported/10.png-45bea63df15292014782e821e9ab3d65.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://prototypes/game-shadows-of-surveillance/10.png" -dest_files=["res://.godot/imported/10.png-21bb3e1511466bd58cb39629e4bca525.ctex"] +source_file="res://prototypes/game-shadows-of-surveillance/assets/10.png" +dest_files=["res://.godot/imported/10.png-45bea63df15292014782e821e9ab3d65.ctex"] [params] diff --git a/scenes/6.png b/prototypes/game-shadows-of-surveillance/assets/6.png similarity index 100% rename from scenes/6.png rename to prototypes/game-shadows-of-surveillance/assets/6.png diff --git a/scenes/6.png.import b/prototypes/game-shadows-of-surveillance/assets/6.png.import similarity index 71% rename from scenes/6.png.import rename to prototypes/game-shadows-of-surveillance/assets/6.png.import index 516481e1..23ee72c6 100644 --- a/scenes/6.png.import +++ b/prototypes/game-shadows-of-surveillance/assets/6.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://ej3g6agmjf0x" -path="res://.godot/imported/6.png-c06dffe52f4b8d6980da99e3e1977693.ctex" +path="res://.godot/imported/6.png-6cbe04fbd7c14277d5f29bae4a16fc9e.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/6.png" -dest_files=["res://.godot/imported/6.png-c06dffe52f4b8d6980da99e3e1977693.ctex"] +source_file="res://prototypes/game-shadows-of-surveillance/assets/6.png" +dest_files=["res://.godot/imported/6.png-6cbe04fbd7c14277d5f29bae4a16fc9e.ctex"] [params] diff --git a/scenes/david_player1.png b/prototypes/game-shadows-of-surveillance/assets/david_player1.png similarity index 100% rename from scenes/david_player1.png rename to prototypes/game-shadows-of-surveillance/assets/david_player1.png diff --git a/scenes/david_player1.png.import b/prototypes/game-shadows-of-surveillance/assets/david_player1.png.import similarity index 67% rename from scenes/david_player1.png.import rename to prototypes/game-shadows-of-surveillance/assets/david_player1.png.import index c3801b39..9b123706 100644 --- a/scenes/david_player1.png.import +++ b/prototypes/game-shadows-of-surveillance/assets/david_player1.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://b6etujec8ohme" -path="res://.godot/imported/david_player1.png-598717f91a06f9a7a46ac286cb4c4d33.ctex" +path="res://.godot/imported/david_player1.png-366922ae9d473647fbb9f31b070220b4.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/david_player1.png" -dest_files=["res://.godot/imported/david_player1.png-598717f91a06f9a7a46ac286cb4c4d33.ctex"] +source_file="res://prototypes/game-shadows-of-surveillance/assets/david_player1.png" +dest_files=["res://.godot/imported/david_player1.png-366922ae9d473647fbb9f31b070220b4.ctex"] [params] diff --git a/scenes/drone.png b/prototypes/game-shadows-of-surveillance/assets/drone.png similarity index 100% rename from scenes/drone.png rename to prototypes/game-shadows-of-surveillance/assets/drone.png diff --git a/scenes/drone.png.import b/prototypes/game-shadows-of-surveillance/assets/drone.png.import similarity index 69% rename from scenes/drone.png.import rename to prototypes/game-shadows-of-surveillance/assets/drone.png.import index 1ad1563b..9c8f91fa 100644 --- a/scenes/drone.png.import +++ b/prototypes/game-shadows-of-surveillance/assets/drone.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://dn1e3hoeursu" -path="res://.godot/imported/drone.png-9944b21944f7dbd30dc9e145ede24a7f.ctex" +path="res://.godot/imported/drone.png-ffb3ce28db64229a0e8878bb81d544af.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/drone.png" -dest_files=["res://.godot/imported/drone.png-9944b21944f7dbd30dc9e145ede24a7f.ctex"] +source_file="res://prototypes/game-shadows-of-surveillance/assets/drone.png" +dest_files=["res://.godot/imported/drone.png-ffb3ce28db64229a0e8878bb81d544af.ctex"] [params] diff --git a/scenes/laserRed01.png b/prototypes/game-shadows-of-surveillance/assets/laserRed01.png similarity index 100% rename from scenes/laserRed01.png rename to prototypes/game-shadows-of-surveillance/assets/laserRed01.png diff --git a/scenes/laserRed01.png.import b/prototypes/game-shadows-of-surveillance/assets/laserRed01.png.import similarity index 68% rename from scenes/laserRed01.png.import rename to prototypes/game-shadows-of-surveillance/assets/laserRed01.png.import index 92270d3b..c05a272e 100644 --- a/scenes/laserRed01.png.import +++ b/prototypes/game-shadows-of-surveillance/assets/laserRed01.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://cooutieukq5fx" -path="res://.godot/imported/laserRed01.png-b302d850d42954e1f780d8ff592eed6a.ctex" +path="res://.godot/imported/laserRed01.png-1765a06ebebe11626f2f566345fcbbca.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/laserRed01.png" -dest_files=["res://.godot/imported/laserRed01.png-b302d850d42954e1f780d8ff592eed6a.ctex"] +source_file="res://prototypes/game-shadows-of-surveillance/assets/laserRed01.png" +dest_files=["res://.godot/imported/laserRed01.png-1765a06ebebe11626f2f566345fcbbca.ctex"] [params] diff --git a/scenes/ole_player2.jpg b/prototypes/game-shadows-of-surveillance/assets/ole_player2.jpg similarity index 100% rename from scenes/ole_player2.jpg rename to prototypes/game-shadows-of-surveillance/assets/ole_player2.jpg diff --git a/scenes/ole_player2.jpg.import b/prototypes/game-shadows-of-surveillance/assets/ole_player2.jpg.import similarity index 68% rename from scenes/ole_player2.jpg.import rename to prototypes/game-shadows-of-surveillance/assets/ole_player2.jpg.import index 287f3901..ee52e1e7 100644 --- a/scenes/ole_player2.jpg.import +++ b/prototypes/game-shadows-of-surveillance/assets/ole_player2.jpg.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://chiivrwridrdd" -path="res://.godot/imported/ole_player2.jpg-e2390b3e11a7d2fcc4124125725eadc8.ctex" +path="res://.godot/imported/ole_player2.jpg-e794bf253aba94cd82a06e9834649f4f.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://scenes/ole_player2.jpg" -dest_files=["res://.godot/imported/ole_player2.jpg-e2390b3e11a7d2fcc4124125725eadc8.ctex"] +source_file="res://prototypes/game-shadows-of-surveillance/assets/ole_player2.jpg" +dest_files=["res://.godot/imported/ole_player2.jpg-e794bf253aba94cd82a06e9834649f4f.ctex"] [params] diff --git a/prototypes/game-shadows-of-surveillance/assets/thumbnail.png b/prototypes/game-shadows-of-surveillance/assets/thumbnail.png new file mode 100644 index 00000000..a6c75e44 Binary files /dev/null and b/prototypes/game-shadows-of-surveillance/assets/thumbnail.png differ diff --git a/prototypes/game-shadows-of-surveillance/thumbnail.png.import b/prototypes/game-shadows-of-surveillance/assets/thumbnail.png.import similarity index 68% rename from prototypes/game-shadows-of-surveillance/thumbnail.png.import rename to prototypes/game-shadows-of-surveillance/assets/thumbnail.png.import index 535d69b0..da2dd52a 100644 --- a/prototypes/game-shadows-of-surveillance/thumbnail.png.import +++ b/prototypes/game-shadows-of-surveillance/assets/thumbnail.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://fk1ulnsrwyon" -path="res://.godot/imported/thumbnail.png-4decdd16a2263ffe18c5c2388d77a903.ctex" +path="res://.godot/imported/thumbnail.png-59c49cd5c778afc16f9183932f7a96ed.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://prototypes/game-shadows-of-surveillance/thumbnail.png" -dest_files=["res://.godot/imported/thumbnail.png-4decdd16a2263ffe18c5c2388d77a903.ctex"] +source_file="res://prototypes/game-shadows-of-surveillance/assets/thumbnail.png" +dest_files=["res://.godot/imported/thumbnail.png-59c49cd5c778afc16f9183932f7a96ed.ctex"] [params] diff --git a/prototypes/game-shadows-of-surveillance/tilemap.png b/prototypes/game-shadows-of-surveillance/assets/tilemap.png similarity index 100% rename from prototypes/game-shadows-of-surveillance/tilemap.png rename to prototypes/game-shadows-of-surveillance/assets/tilemap.png diff --git a/prototypes/game-shadows-of-surveillance/tilemap.png.import b/prototypes/game-shadows-of-surveillance/assets/tilemap.png.import similarity index 69% rename from prototypes/game-shadows-of-surveillance/tilemap.png.import rename to prototypes/game-shadows-of-surveillance/assets/tilemap.png.import index 14c300f7..4b4fe477 100644 --- a/prototypes/game-shadows-of-surveillance/tilemap.png.import +++ b/prototypes/game-shadows-of-surveillance/assets/tilemap.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://bdve8nywhrdlw" -path="res://.godot/imported/tilemap.png-c21f45507889f24a3e40940c0b9d9912.ctex" +path="res://.godot/imported/tilemap.png-602cc89718f1d4f50d1ce2e8ba8935ce.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://prototypes/game-shadows-of-surveillance/tilemap.png" -dest_files=["res://.godot/imported/tilemap.png-c21f45507889f24a3e40940c0b9d9912.ctex"] +source_file="res://prototypes/game-shadows-of-surveillance/assets/tilemap.png" +dest_files=["res://.godot/imported/tilemap.png-602cc89718f1d4f50d1ce2e8ba8935ce.ctex"] [params] diff --git a/prototypes/game-shadows-of-surveillance/tilemap_packed.png b/prototypes/game-shadows-of-surveillance/assets/tilemap_packed.png similarity index 100% rename from prototypes/game-shadows-of-surveillance/tilemap_packed.png rename to prototypes/game-shadows-of-surveillance/assets/tilemap_packed.png diff --git a/prototypes/game-shadows-of-surveillance/tilemap_packed.png.import b/prototypes/game-shadows-of-surveillance/assets/tilemap_packed.png.import similarity index 67% rename from prototypes/game-shadows-of-surveillance/tilemap_packed.png.import rename to prototypes/game-shadows-of-surveillance/assets/tilemap_packed.png.import index 3387e2ff..bfae6f2b 100644 --- a/prototypes/game-shadows-of-surveillance/tilemap_packed.png.import +++ b/prototypes/game-shadows-of-surveillance/assets/tilemap_packed.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://bq6gt543ylrs6" -path="res://.godot/imported/tilemap_packed.png-419ac89aa0aaaf7534778e86f9dcf5b9.ctex" +path="res://.godot/imported/tilemap_packed.png-0753c552bba01e3794ca0398cdb6d8d8.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://prototypes/game-shadows-of-surveillance/tilemap_packed.png" -dest_files=["res://.godot/imported/tilemap_packed.png-419ac89aa0aaaf7534778e86f9dcf5b9.ctex"] +source_file="res://prototypes/game-shadows-of-surveillance/assets/tilemap_packed.png" +dest_files=["res://.godot/imported/tilemap_packed.png-0753c552bba01e3794ca0398cdb6d8d8.ctex"] [params] diff --git a/scenes/bullet.tscn b/prototypes/game-shadows-of-surveillance/characters/bullet.tscn similarity index 71% rename from scenes/bullet.tscn rename to prototypes/game-shadows-of-surveillance/characters/bullet.tscn index 1f3c3587..55cd02c6 100644 --- a/scenes/bullet.tscn +++ b/prototypes/game-shadows-of-surveillance/characters/bullet.tscn @@ -1,7 +1,7 @@ [gd_scene load_steps=4 format=3 uid="uid://boqn5yw22tcj7"] -[ext_resource type="Texture2D" uid="uid://cooutieukq5fx" path="res://scenes/laserRed01.png" id="1_4l3sk"] -[ext_resource type="Script" path="res://scenes/bullet.gd" id="1_qyq4p"] +[ext_resource type="Script" path="res://prototypes/game-shadows-of-surveillance/scripts/bullet.gd" id="1_qyq4p"] +[ext_resource type="Texture2D" uid="uid://cooutieukq5fx" path="res://prototypes/game-shadows-of-surveillance/assets/laserRed01.png" id="2_xmq7n"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_cn71r"] size = Vector2(57, 10) @@ -11,7 +11,7 @@ script = ExtResource("1_qyq4p") [node name="Sprite2D" type="Sprite2D" parent="."] rotation = 1.5708 -texture = ExtResource("1_4l3sk") +texture = ExtResource("2_xmq7n") [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2(-2.5, 0) diff --git a/scenes/character.tscn b/prototypes/game-shadows-of-surveillance/characters/character.tscn similarity index 100% rename from scenes/character.tscn rename to prototypes/game-shadows-of-surveillance/characters/character.tscn diff --git a/prototypes/game-shadows-of-surveillance/characters/drone.tscn b/prototypes/game-shadows-of-surveillance/characters/drone.tscn new file mode 100644 index 00000000..8991d6f0 --- /dev/null +++ b/prototypes/game-shadows-of-surveillance/characters/drone.tscn @@ -0,0 +1,126 @@ +[gd_scene load_steps=18 format=3 uid="uid://ds24wbrnr7tta"] + +[ext_resource type="Script" path="res://addons/pronto/helpers/Behavior.gd" id="1_1yuyd"] +[ext_resource type="Texture2D" uid="uid://dn1e3hoeursu" path="res://prototypes/game-shadows-of-surveillance/assets/drone.png" id="2_fdysg"] +[ext_resource type="Script" path="res://addons/pronto/behaviors/MoveBehavior.gd" id="3_bsdfp"] +[ext_resource type="Material" uid="uid://b5akcj0c3kh4w" path="res://addons/pronto/icons/icon_outline_material.tres" id="4_7xmif"] +[ext_resource type="Script" path="res://addons/pronto/behaviors/AlwaysBehavior.gd" id="5_kgvfr"] +[ext_resource type="Script" path="res://addons/pronto/helpers/ConnectionScript.gd" id="6_r5j4j"] +[ext_resource type="Script" path="res://addons/pronto/helpers/Connection.gd" id="7_4ojfr"] + +[sub_resource type="CircleShape2D" id="CircleShape2D_kvhpb"] + +[sub_resource type="Image" id="Image_0553x"] +data = { +"data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 233, 233, 233, 23, 224, 224, 224, 198, 225, 225, 225, 199, 224, 224, 224, 24, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 233, 233, 233, 23, 224, 224, 224, 213, 224, 224, 224, 255, 224, 224, 224, 255, 225, 225, 225, 215, 224, 224, 224, 24, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 226, 226, 226, 103, 224, 224, 224, 255, 224, 224, 224, 212, 224, 224, 224, 209, 224, 224, 224, 255, 224, 224, 224, 107, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 226, 226, 226, 103, 232, 232, 232, 22, 230, 230, 230, 20, 224, 224, 224, 105, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 233, 233, 233, 23, 225, 225, 225, 109, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 107, 224, 224, 224, 24, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 233, 233, 233, 23, 224, 224, 224, 213, 224, 224, 224, 255, 225, 225, 225, 108, 255, 255, 255, 0, 225, 225, 225, 76, 224, 224, 224, 229, 224, 224, 224, 228, 224, 224, 224, 74, 255, 255, 255, 0, 224, 224, 224, 105, 224, 224, 224, 255, 225, 225, 225, 215, 224, 224, 224, 24, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 197, 224, 224, 224, 255, 224, 224, 224, 211, 231, 231, 231, 21, 255, 255, 255, 0, 224, 224, 224, 229, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 228, 255, 255, 255, 0, 230, 230, 230, 20, 224, 224, 224, 208, 224, 224, 224, 255, 224, 224, 224, 201, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 195, 224, 224, 224, 255, 225, 225, 225, 215, 224, 224, 224, 24, 255, 255, 255, 0, 224, 224, 224, 228, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 227, 255, 255, 255, 0, 233, 233, 233, 23, 224, 224, 224, 213, 224, 224, 224, 255, 224, 224, 224, 198, 255, 255, 255, 0, 255, 255, 255, 0, 231, 231, 231, 21, 224, 224, 224, 210, 224, 224, 224, 255, 224, 224, 224, 107, 255, 255, 255, 0, 224, 224, 224, 74, 224, 224, 224, 228, 224, 224, 224, 227, 224, 224, 224, 72, 255, 255, 255, 0, 226, 226, 226, 103, 224, 224, 224, 255, 224, 224, 224, 212, 232, 232, 232, 22, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 231, 231, 231, 21, 224, 224, 224, 105, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 226, 226, 226, 103, 232, 232, 232, 22, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 107, 224, 224, 224, 24, 232, 232, 232, 22, 225, 225, 225, 109, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 105, 224, 224, 224, 255, 225, 225, 225, 215, 224, 224, 224, 211, 224, 224, 224, 255, 225, 225, 225, 108, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 231, 231, 231, 21, 224, 224, 224, 210, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 212, 232, 232, 232, 22, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 231, 231, 231, 21, 224, 224, 224, 194, 224, 224, 224, 196, 232, 232, 232, 22, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0), +"format": "RGBA8", +"height": 16, +"mipmaps": false, +"width": 16 +} + +[sub_resource type="ImageTexture" id="ImageTexture_1i6xe"] +image = SubResource("Image_0553x") + +[sub_resource type="GDScript" id="GDScript_6kxwn"] +script/source = "@tool +extends U +@warning_ignore(\"unused_parameter\") +func run(delta, from: Node2D, to: Node2D): + var player = get_parent().get_parent().get_parent().get_node(\"Player2\") + var random_x = randf_range(-50, 50) + var random_y = randf_range(-50, 50) + return (player.position - to.get_parent().position + Vector2(random_x, random_y)).normalized() +" + +[sub_resource type="Resource" id="Resource_htvxy"] +script = ExtResource("6_r5j4j") +nested_script = SubResource("GDScript_6kxwn") +argument_names = ["delta", "from", "to"] +return_value = true + +[sub_resource type="GDScript" id="GDScript_jvn02"] +script/source = "@tool +extends U +@warning_ignore(\"unused_parameter\") +func run(delta, from: Node2D, to: Node2D): + return true +" + +[sub_resource type="Resource" id="Resource_lsqwp"] +script = ExtResource("6_r5j4j") +nested_script = SubResource("GDScript_jvn02") +argument_names = ["delta", "from", "to"] +return_value = true + +[sub_resource type="Resource" id="Resource_81ot0"] +script = ExtResource("7_4ojfr") +signal_name = "always" +to = NodePath("..") +more_references = [] +invoke = "move_direction" +arguments = [SubResource("Resource_htvxy")] +only_if = SubResource("Resource_lsqwp") +deferred = false +enabled = true +trigger = "" + +[sub_resource type="Image" id="Image_uhih4"] +data = { +"data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 160, 230, 230, 230, 10, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 213, 225, 225, 225, 42, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 76, 224, 224, 224, 189, 224, 224, 224, 238, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 245, 224, 224, 224, 96, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 135, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 245, 226, 226, 226, 95, 255, 255, 255, 0, 255, 255, 255, 1, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 226, 226, 226, 77, 224, 224, 224, 255, 224, 224, 224, 253, 225, 225, 225, 117, 224, 224, 224, 32, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 212, 225, 225, 225, 42, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 129, 225, 225, 225, 68, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 189, 224, 224, 224, 255, 224, 224, 224, 113, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 159, 230, 230, 230, 10, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 73, 224, 224, 224, 255, 225, 225, 225, 183, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 242, 224, 224, 224, 255, 224, 224, 224, 24, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 25, 224, 224, 224, 255, 224, 224, 224, 237, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 243, 224, 224, 224, 254, 233, 233, 233, 23, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 229, 229, 229, 29, 224, 224, 224, 255, 224, 224, 224, 236, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 188, 224, 224, 224, 255, 225, 225, 225, 68, 255, 255, 255, 0, 255, 255, 255, 0, 230, 230, 230, 10, 224, 224, 224, 160, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 120, 224, 224, 224, 255, 224, 224, 224, 181, 255, 255, 255, 0, 255, 255, 255, 0, 227, 227, 227, 71, 225, 225, 225, 126, 255, 255, 255, 0, 255, 255, 255, 0, 226, 226, 226, 43, 224, 224, 224, 213, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 34, 225, 225, 225, 124, 224, 224, 224, 254, 224, 224, 224, 255, 226, 226, 226, 70, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 96, 224, 224, 224, 245, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 225, 225, 225, 125, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 226, 226, 226, 95, 224, 224, 224, 245, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 237, 224, 224, 224, 185, 227, 227, 227, 71, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 42, 224, 224, 224, 213, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 230, 230, 230, 10, 225, 225, 225, 159, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0), +"format": "RGBA8", +"height": 16, +"mipmaps": false, +"width": 16 +} + +[sub_resource type="ImageTexture" id="ImageTexture_r1157"] +image = SubResource("Image_uhih4") + +[node name="Enemy" type="CharacterBody2D" groups=["enemy"]] +position = Vector2(870, 309) +scale = Vector2(0.274855, 0.274855) + +[node name="_Node2D_19803" type="Node2D" parent="."] +script = ExtResource("1_1yuyd") + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +position = Vector2(7.27649, -10.9149) +scale = Vector2(8.32211, 8.32211) +shape = SubResource("CircleShape2D_kvhpb") + +[node name="_Node2D_19804" type="Node2D" parent="CollisionShape2D"] +script = ExtResource("1_1yuyd") + +[node name="Sprite2D" type="Sprite2D" parent="."] +texture = ExtResource("2_fdysg") + +[node name="_Node2D_19805" type="Node2D" parent="Sprite2D"] +script = ExtResource("1_1yuyd") + +[node name="MoveBehavior" type="Node2D" parent="."] +position = Vector2(4.34964e-06, -49.7541) +script = ExtResource("3_bsdfp") +max_velocity = 100.0 +acceleration = 20.0 + +[node name="_TextureRect_19799" type="TextureRect" parent="MoveBehavior"] +material = ExtResource("4_7xmif") +offset_left = -8.0 +offset_top = -8.0 +offset_right = -8.0 +offset_bottom = -8.0 +texture = SubResource("ImageTexture_1i6xe") + +[node name="AlwaysBehavior" type="Node2D" parent="MoveBehavior"] +position = Vector2(-35.1815, 14.5728) +script = ExtResource("5_kgvfr") +metadata/pronto_connections = [SubResource("Resource_81ot0")] + +[node name="_TextureRect_19798" type="TextureRect" parent="MoveBehavior/AlwaysBehavior"] +material = ExtResource("4_7xmif") +offset_left = -8.0 +offset_top = -8.0 +offset_right = -8.0 +offset_bottom = -8.0 +texture = SubResource("ImageTexture_r1157") diff --git a/scenes/player1.tscn b/prototypes/game-shadows-of-surveillance/characters/player1.tscn similarity index 90% rename from scenes/player1.tscn rename to prototypes/game-shadows-of-surveillance/characters/player1.tscn index e899378a..a1db43a1 100644 --- a/scenes/player1.tscn +++ b/prototypes/game-shadows-of-surveillance/characters/player1.tscn @@ -1,6 +1,6 @@ [gd_scene load_steps=4 format=3 uid="uid://c5c24526dtufn"] -[ext_resource type="Texture2D" uid="uid://b6etujec8ohme" path="res://scenes/david_player1.png" id="1_3bxhg"] +[ext_resource type="Texture2D" uid="uid://b6etujec8ohme" path="res://prototypes/game-shadows-of-surveillance/assets/david_player1.png" id="1_3bxhg"] [ext_resource type="Script" path="res://addons/pronto/behaviors/PlatformerControllerBehavior.gd" id="2_4o648"] [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_h8f81"] diff --git a/scenes/player2.tscn b/prototypes/game-shadows-of-surveillance/characters/player2.tscn similarity index 67% rename from scenes/player2.tscn rename to prototypes/game-shadows-of-surveillance/characters/player2.tscn index bd28a135..d7e47d30 100644 --- a/scenes/player2.tscn +++ b/prototypes/game-shadows-of-surveillance/characters/player2.tscn @@ -1,21 +1,21 @@ [gd_scene load_steps=6 format=3 uid="uid://dxp4mlvvs0g2"] -[ext_resource type="Script" path="res://addons/pronto/behaviors/PlatformerControllerBehavior.gd" id="1_vl5ip"] -[ext_resource type="Script" path="res://scenes/player2.gd" id="1_vm6uo"] -[ext_resource type="Texture2D" uid="uid://chiivrwridrdd" path="res://scenes/ole_player2.jpg" id="2_0d7en"] -[ext_resource type="Texture2D" uid="uid://ca3jyudumrgbl" path="res://LightSprite.png" id="4_qvm50"] +[ext_resource type="Script" path="res://prototypes/game-shadows-of-surveillance/scripts/player2.gd" id="1_1dw13"] +[ext_resource type="Texture2D" uid="uid://chiivrwridrdd" path="res://prototypes/game-shadows-of-surveillance/assets/ole_player2.jpg" id="2_s085l"] +[ext_resource type="Script" path="res://addons/pronto/behaviors/PlatformerControllerBehavior.gd" id="3_mgoso"] +[ext_resource type="Texture2D" uid="uid://ch6w3mr4w7ueu" path="res://LightSprite.png" id="4_u5jrv"] [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_7cbuj"] height = 248.062 [node name="Player2" type="CharacterBody2D" groups=["player"]] scale = Vector2(0.258, 0.258) -script = ExtResource("1_vm6uo") +script = ExtResource("1_1dw13") [node name="OlePlayer2" type="Sprite2D" parent="."] position = Vector2(7.75194, 7.75195) scale = Vector2(0.269467, 0.269467) -texture = ExtResource("2_0d7en") +texture = ExtResource("2_s085l") [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2(11.6279, 38.7597) @@ -24,7 +24,7 @@ shape = SubResource("CapsuleShape2D_7cbuj") [node name="PlatformerControllerBehavior" type="Node2D" parent="."] position = Vector2(576, 324) -script = ExtResource("1_vl5ip") +script = ExtResource("3_mgoso") player = 1 [node name="Marker2D" type="Marker2D" parent="."] @@ -32,4 +32,4 @@ position = Vector2(-54.2636, 38.7597) [node name="Flashlight" type="PointLight2D" parent="." groups=["light"]] position = Vector2(3.87598, 31.0078) -texture = ExtResource("4_qvm50") +texture = ExtResource("4_u5jrv") diff --git a/prototypes/game-shadows-of-surveillance/game-shadows-of-surveillance.tscn b/prototypes/game-shadows-of-surveillance/levels/game-shadows-of-surveillance.tscn similarity index 90% rename from prototypes/game-shadows-of-surveillance/game-shadows-of-surveillance.tscn rename to prototypes/game-shadows-of-surveillance/levels/game-shadows-of-surveillance.tscn index 990fac4a..f395d1f6 100644 --- a/prototypes/game-shadows-of-surveillance/game-shadows-of-surveillance.tscn +++ b/prototypes/game-shadows-of-surveillance/levels/game-shadows-of-surveillance.tscn @@ -1,9 +1,9 @@ [gd_scene load_steps=5 format=3 uid="uid://c83unhh8aqtco"] [ext_resource type="Script" path="res://addons/pronto/behaviors/ExportBehavior.gd" id="1"] -[ext_resource type="Script" path="res://prototypes/game-shadows-of-surveillance/game-shadows-of-surveillance.gd" id="1_odj0a"] -[ext_resource type="PackedScene" uid="uid://dyvtu758xr2so" path="res://scenes/level.tscn" id="3_3xcs3"] -[ext_resource type="PackedScene" uid="uid://nrfvxvrpbboq" path="res://scenes/level2.tscn" id="4_bj0tv"] +[ext_resource type="Script" path="res://prototypes/game-shadows-of-surveillance/scripts/game-shadows-of-surveillance.gd" id="1_odj0a"] +[ext_resource type="PackedScene" uid="uid://dyvtu758xr2so" path="res://prototypes/game-shadows-of-surveillance/levels/level.tscn" id="3_3xcs3"] +[ext_resource type="PackedScene" uid="uid://nrfvxvrpbboq" path="res://prototypes/game-shadows-of-surveillance/levels/level2.tscn" id="4_bj0tv"] [node name="Game" type="Node2D"] script = ExtResource("1_odj0a") diff --git a/scenes/level.tscn b/prototypes/game-shadows-of-surveillance/levels/level.tscn similarity index 97% rename from scenes/level.tscn rename to prototypes/game-shadows-of-surveillance/levels/level.tscn index 52a22ec0..5f31dd66 100644 --- a/scenes/level.tscn +++ b/prototypes/game-shadows-of-surveillance/levels/level.tscn @@ -1,10 +1,10 @@ [gd_scene load_steps=8 format=3 uid="uid://dyvtu758xr2so"] -[ext_resource type="Texture2D" uid="uid://bhjxc5s34c3cu" path="res://prototypes/game-shadows-of-surveillance/10.png" id="1_elldh"] +[ext_resource type="Texture2D" uid="uid://bhjxc5s34c3cu" path="res://prototypes/game-shadows-of-surveillance/assets/10.png" id="1_elldh"] [ext_resource type="Script" path="res://scenes/LightSwitch.gd" id="2_4klox"] [ext_resource type="Script" path="res://addons/pronto/behaviors/PlaceholderBehavior.gd" id="3_euvp3"] [ext_resource type="TileSet" uid="uid://dp12gfueqor5q" path="res://tileset.tres" id="3_r5ys7"] -[ext_resource type="PackedScene" uid="uid://c5c24526dtufn" path="res://scenes/player1.tscn" id="3_x2hlg"] +[ext_resource type="PackedScene" uid="uid://c5c24526dtufn" path="res://prototypes/game-shadows-of-surveillance/characters/player1.tscn" id="3_x2hlg"] [ext_resource type="Texture2D" uid="uid://dn87bxukebfvu" path="res://icon.svg" id="4_rqfal"] [ext_resource type="Script" path="res://addons/pronto/behaviors/CollisionBehavior.gd" id="6_i4obq"] diff --git a/prototypes/game-shadows-of-surveillance/levels/level2.tscn b/prototypes/game-shadows-of-surveillance/levels/level2.tscn new file mode 100644 index 00000000..07da952c --- /dev/null +++ b/prototypes/game-shadows-of-surveillance/levels/level2.tscn @@ -0,0 +1,27 @@ +[gd_scene load_steps=6 format=3 uid="uid://nrfvxvrpbboq"] + +[ext_resource type="Texture2D" uid="uid://ej3g6agmjf0x" path="res://prototypes/game-shadows-of-surveillance/assets/6.png" id="1_j6sv0"] +[ext_resource type="PackedScene" uid="uid://4j52c4ucysq5" path="res://Tilemap.tscn" id="2_llo4g"] +[ext_resource type="TileSet" uid="uid://dp12gfueqor5q" path="res://tileset.tres" id="3_ko4tt"] +[ext_resource type="PackedScene" uid="uid://ds24wbrnr7tta" path="res://prototypes/game-shadows-of-surveillance/characters/drone.tscn" id="4_m1bym"] +[ext_resource type="PackedScene" uid="uid://dxp4mlvvs0g2" path="res://prototypes/game-shadows-of-surveillance/characters/player2.tscn" id="5_a7n2h"] + +[node name="Level2" type="Node2D"] + +[node name="6" type="Sprite2D" parent="."] +position = Vector2(578, 319) +scale = Vector2(2.01189, 2.01189) +texture = ExtResource("1_j6sv0") + +[node name="CanvasModulate" type="CanvasModulate" parent="6" groups=["dark"]] +visible = false +color = Color(0, 0, 0, 1) + +[node name="TileMap" parent="." instance=ExtResource("2_llo4g")] +tile_set = ExtResource("3_ko4tt") +layer_0/tile_data = PackedInt32Array(1966089, 0, 0, 1966090, 65536, 0, 1966091, 65536, 0, 1966092, 65536, 0, 1966093, 65536, 0, 1966094, 65536, 0, 1966095, 65536, 0, 1966096, 65536, 0, 1966097, 65536, 0, 1966098, 65536, 0, 1966099, 65536, 0, 1966100, 65536, 0, 1966101, 65536, 0, 1966102, 65536, 0, 1966103, 65536, 0, 1966104, 65536, 0, 1966105, 65536, 0, 1966106, 65536, 0, 1966107, 65536, 0, 1966108, 65536, 0, 1966109, 65536, 0, 1966110, 131072, 0, 2031646, 131072, 1, 2097182, 131072, 1, 2162718, 131072, 1, 2031625, 0, 1, 2097161, 0, 1, 2162697, 0, 1, 2031626, 65536, 1, 2031627, 65536, 1, 2097164, 65536, 1, 2097165, 65536, 1, 2097166, 65536, 1, 2097167, 65536, 1, 2097168, 65536, 1, 2162705, 65536, 1, 2162706, 65536, 1, 2162707, 65536, 1, 2162708, 65536, 1, 2162709, 65536, 1, 2162710, 65536, 1, 2162711, 65536, 1, 2162712, 65536, 1, 2162713, 65536, 1, 2162714, 65536, 1, 2162715, 65536, 1, 2162716, 65536, 1, 2162717, 65536, 1, 2097181, 65536, 1, 2031645, 65536, 1, 2031644, 65536, 1, 2031643, 65536, 1, 2031642, 65536, 1, 2031641, 65536, 1, 2031640, 65536, 1, 2031639, 65536, 1, 2031638, 65536, 1, 2031637, 65536, 1, 2031636, 65536, 1, 2031635, 65536, 1, 2097170, 65536, 1, 2097169, 65536, 1, 2097163, 65536, 1, 2031629, 65536, 1, 2031628, 65536, 1, 2031630, 65536, 1, 2031631, 65536, 1, 2031632, 65536, 1, 2031633, 65536, 1, 2031634, 65536, 1, 2097171, 65536, 1, 2097172, 65536, 1, 2097173, 65536, 1, 2097174, 65536, 1, 2097175, 65536, 1, 2097176, 65536, 1, 2097177, 65536, 1, 2097178, 65536, 1, 2097179, 65536, 1, 2097180, 65536, 1, 2162704, 65536, 1, 2162703, 65536, 1, 2097162, 65536, 1, 2162698, 65536, 1, 2162699, 65536, 1, 2162701, 65536, 1, 2162702, 65536, 1, 2162700, 65536, 1, 1966115, 0, 0, 1966116, 65536, 0, 1966128, 65536, 0, 1966117, 65536, 0, 1966118, 65536, 0, 2031655, 65536, 1, 2031656, 65536, 1, 2031657, 65536, 1, 2031658, 65536, 1, 2031659, 65536, 1, 2031660, 65536, 1, 2031661, 65536, 1, 2031662, 65536, 1, 2031663, 65536, 1, 2031664, 65536, 1, 2031665, 65536, 1, 2031666, 65536, 1, 1966119, 65536, 0, 1966120, 65536, 0, 1966121, 65536, 0, 1966122, 65536, 0, 1966123, 65536, 0, 1966124, 65536, 0, 1966125, 65536, 0, 1966126, 65536, 0, 1966127, 65536, 0, 1966129, 65536, 0, 1966130, 65536, 0, 1966131, 65536, 0, 1966132, 65536, 0, 1966133, 65536, 0, 1966134, 65536, 0, 1966135, 65536, 0, 1966136, 65536, 0, 1966137, 65536, 0, 1966138, 65536, 0, 1966139, 65536, 0, 2031652, 65536, 1, 2031653, 65536, 1, 2031654, 65536, 1, 2031667, 65536, 1, 2031668, 65536, 1, 2031669, 65536, 1, 2031670, 65536, 1, 2031671, 65536, 1, 2031672, 65536, 1, 2031673, 65536, 1, 2031674, 65536, 1, 2097210, 65536, 1, 2162746, 65536, 1, 2162745, 65536, 1, 2162744, 65536, 1, 2097207, 65536, 1, 2097206, 65536, 1, 2097205, 65536, 1, 2097204, 65536, 1, 2097203, 65536, 1, 2097202, 65536, 1, 2097201, 65536, 1, 2097200, 65536, 1, 2097199, 65536, 1, 2097198, 65536, 1, 2097197, 65536, 1, 2097196, 65536, 1, 2097195, 65536, 1, 2097194, 65536, 1, 2097193, 65536, 1, 2097192, 65536, 1, 2097191, 65536, 1, 2097190, 65536, 1, 2097189, 65536, 1, 2097188, 65536, 1, 2097187, 0, 1, 2162723, 0, 1, 2162724, 65536, 1, 2162725, 65536, 1, 2162726, 65536, 1, 2162727, 65536, 1, 2162732, 65536, 1, 2162733, 65536, 1, 2162734, 65536, 1, 2162735, 65536, 1, 2162736, 65536, 1, 2162737, 65536, 1, 2162738, 65536, 1, 2162739, 65536, 1, 2162740, 65536, 1, 2162741, 65536, 1, 2162742, 65536, 1, 2162743, 65536, 1, 2097209, 65536, 1, 2097208, 65536, 1, 2162731, 65536, 1, 2162730, 65536, 1, 2162729, 65536, 1, 2162728, 65536, 1, 2031675, 65536, 1, 2097211, 65536, 1, 2162747, 65536, 1, 2031651, 0, 1, 2228259, 0, 1, 2031676, 131072, 1, 2097212, 131072, 1, 2162748, 131072, 1, 2228284, 131072, 1, 2293820, 131072, 1, 1966140, 131072, 0) + +[node name="Enemy" parent="." instance=ExtResource("4_m1bym")] + +[node name="Player2" parent="." instance=ExtResource("5_a7n2h")] +position = Vector2(297, 304) diff --git a/scenes/LightSwitch.gd b/prototypes/game-shadows-of-surveillance/scripts/LightSwitch.gd similarity index 100% rename from scenes/LightSwitch.gd rename to prototypes/game-shadows-of-surveillance/scripts/LightSwitch.gd diff --git a/scenes/bullet.gd b/prototypes/game-shadows-of-surveillance/scripts/bullet.gd similarity index 100% rename from scenes/bullet.gd rename to prototypes/game-shadows-of-surveillance/scripts/bullet.gd diff --git a/prototypes/game-shadows-of-surveillance/game-shadows-of-surveillance.gd b/prototypes/game-shadows-of-surveillance/scripts/game-shadows-of-surveillance.gd similarity index 100% rename from prototypes/game-shadows-of-surveillance/game-shadows-of-surveillance.gd rename to prototypes/game-shadows-of-surveillance/scripts/game-shadows-of-surveillance.gd diff --git a/scenes/player2.gd b/prototypes/game-shadows-of-surveillance/scripts/player2.gd similarity index 100% rename from scenes/player2.gd rename to prototypes/game-shadows-of-surveillance/scripts/player2.gd diff --git a/prototypes/game-shadows-of-surveillance/thumbnail.png b/prototypes/game-shadows-of-surveillance/thumbnail.png deleted file mode 100644 index 99f4253f..00000000 Binary files a/prototypes/game-shadows-of-surveillance/thumbnail.png and /dev/null differ diff --git a/scenes/level2.tscn b/scenes/level2.tscn deleted file mode 100644 index 7eef46f2..00000000 --- a/scenes/level2.tscn +++ /dev/null @@ -1,95 +0,0 @@ -[gd_scene load_steps=16 format=3 uid="uid://nrfvxvrpbboq"] - -[ext_resource type="Texture2D" uid="uid://ej3g6agmjf0x" path="res://scenes/6.png" id="1_sm2i4"] -[ext_resource type="PackedScene" path="res://Tilemap.tscn" id="2_7nhks"] -[ext_resource type="TileSet" uid="uid://dp12gfueqor5q" path="res://tileset.tres" id="3_34qp1"] -[ext_resource type="PackedScene" uid="uid://dxp4mlvvs0g2" path="res://scenes/player2.tscn" id="3_lafji"] -[ext_resource type="Texture2D" uid="uid://bm7wvm5fbbm4b" path="res://scenes/drone.png" id="6_yo0f5"] -[ext_resource type="Script" path="res://addons/pronto/behaviors/MoveBehavior.gd" id="7_ooonu"] -[ext_resource type="Script" path="res://addons/pronto/behaviors/AlwaysBehavior.gd" id="8_wsqn2"] -[ext_resource type="Script" path="res://addons/pronto/helpers/ConnectionScript.gd" id="9_6atqn"] -[ext_resource type="Script" path="res://addons/pronto/helpers/Connection.gd" id="10_wl7i3"] - -[sub_resource type="CircleShape2D" id="CircleShape2D_kvhpb"] - -[sub_resource type="GDScript" id="GDScript_6kxwn"] -script/source = "@tool -extends U -@warning_ignore(\"unused_parameter\") -func run(delta, from: Node2D, to: Node2D): - var player = get_parent().get_parent().get_parent().get_node(\"Player2\") - var random_x = randf_range(-50, 50) - var random_y = randf_range(-50, 50) - return (player.position - to.get_parent().position + Vector2(random_x, random_y)).normalized() -" - -[sub_resource type="Resource" id="Resource_htvxy"] -script = ExtResource("9_6atqn") -nested_script = SubResource("GDScript_6kxwn") -argument_names = ["delta", "from", "to"] -return_value = true - -[sub_resource type="GDScript" id="GDScript_jvn02"] -script/source = "@tool -extends U -@warning_ignore(\"unused_parameter\") -func run(delta, from: Node2D, to: Node2D): - return true -" - -[sub_resource type="Resource" id="Resource_lsqwp"] -script = ExtResource("9_6atqn") -nested_script = SubResource("GDScript_jvn02") -argument_names = ["delta", "from", "to"] -return_value = true - -[sub_resource type="Resource" id="Resource_81ot0"] -script = ExtResource("10_wl7i3") -signal_name = "always" -to = NodePath("..") -more_references = [] -invoke = "move_direction" -arguments = [SubResource("Resource_htvxy")] -only_if = SubResource("Resource_lsqwp") -deferred = false -enabled = true -trigger = "" - -[node name="Level2" type="Node2D"] - -[node name="6" type="Sprite2D" parent="."] -position = Vector2(578, 319) -scale = Vector2(2.01189, 2.01189) -texture = ExtResource("1_sm2i4") - -[node name="CanvasModulate" type="CanvasModulate" parent="6" groups=["dark"]] -color = Color(0, 0, 0, 1) - -[node name="TileMap" parent="." instance=ExtResource("2_7nhks")] -tile_set = ExtResource("3_34qp1") - -[node name="Enemy" type="CharacterBody2D" parent="." groups=["enemy"]] -position = Vector2(637, 360) -scale = Vector2(0.274855, 0.274855) - -[node name="CollisionShape2D" type="CollisionShape2D" parent="Enemy"] -position = Vector2(7.27649, -10.9149) -scale = Vector2(8.32211, 8.32211) -shape = SubResource("CircleShape2D_kvhpb") - -[node name="Sprite2D" type="Sprite2D" parent="Enemy"] -texture = ExtResource("6_yo0f5") - -[node name="MoveBehavior" type="Node2D" parent="Enemy"] -position = Vector2(4.34964e-06, -49.7541) -script = ExtResource("7_ooonu") -max_velocity = 100.0 -acceleration = 20.0 - -[node name="AlwaysBehavior" type="Node2D" parent="Enemy/MoveBehavior"] -position = Vector2(-35.1815, 14.5728) -script = ExtResource("8_wsqn2") -metadata/pronto_connections = [SubResource("Resource_81ot0")] - -[node name="Player2" parent="." instance=ExtResource("3_lafji")] -position = Vector2(297, 304) diff --git a/tileset.tres b/tileset.tres index 10b1204b..c86ea664 100644 --- a/tileset.tres +++ b/tileset.tres @@ -1,6 +1,6 @@ [gd_resource type="TileSet" load_steps=3 format=3 uid="uid://dp12gfueqor5q"] -[ext_resource type="Texture2D" uid="uid://bq6gt543ylrs6" path="res://prototypes/game-shadows-of-surveillance/tilemap_packed.png" id="1_g80l8"] +[ext_resource type="Texture2D" uid="uid://bq6gt543ylrs6" path="res://prototypes/game-shadows-of-surveillance/assets/tilemap_packed.png" id="1_g80l8"] [sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_abbh2"] texture = ExtResource("1_g80l8")