2024-01-27 23:30:23 +01:00
|
|
|
[gd_scene load_steps=13 format=3 uid="uid://b1nm5h3yccr16"]
|
2024-01-26 21:07:19 +01:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://scenes/World.gd" id="1_gtcjp"]
|
2024-01-27 01:41:29 +01:00
|
|
|
[ext_resource type="PackedScene" uid="uid://bfyjtfdko3l7o" path="res://entities/Player.tscn" id="2_a343a"]
|
2024-01-27 00:05:04 +01:00
|
|
|
[ext_resource type="Texture2D" uid="uid://bnsrnuuq28p4d" path="res://assets/textures/player_draw_mask.png" id="4_dipd5"]
|
2024-01-27 01:15:01 +01:00
|
|
|
[ext_resource type="Texture2D" uid="uid://vcebfpqo2ko7" path="res://assets/textures/player_bomb_mask.png" id="5_17c1g"]
|
2024-01-27 18:03:18 +01:00
|
|
|
[ext_resource type="PackedScene" path="res://scenes/PixelCountComputeShader.tscn" id="6_75vqy"]
|
2024-01-27 17:06:32 +01:00
|
|
|
[ext_resource type="PackedScene" uid="uid://7a2ma10hq0qa" path="res://scenes/PlatformA.tscn" id="6_83plb"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://bnmtyc1kkt6ku" path="res://scenes/PlatformB.tscn" id="7_cld3m"]
|
2024-01-27 18:03:18 +01:00
|
|
|
[ext_resource type="PackedScene" uid="uid://cc521i07ajufm" path="res://entities/SpawnPoint.tscn" id="8_ykvyf"]
|
2024-01-27 15:58:16 +01:00
|
|
|
|
|
|
|
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_5gauv"]
|
|
|
|
sky_energy_multiplier = 5.0
|
|
|
|
|
|
|
|
[sub_resource type="Sky" id="Sky_qfldx"]
|
|
|
|
sky_material = SubResource("ProceduralSkyMaterial_5gauv")
|
2024-01-26 21:07:19 +01:00
|
|
|
|
|
|
|
[sub_resource type="Environment" id="Environment_f3jci"]
|
2024-01-27 15:58:16 +01:00
|
|
|
background_mode = 2
|
|
|
|
sky = SubResource("Sky_qfldx")
|
2024-01-26 21:07:19 +01:00
|
|
|
ambient_light_source = 3
|
|
|
|
ambient_light_energy = 2.64
|
|
|
|
|
2024-01-27 00:05:04 +01:00
|
|
|
[sub_resource type="World3D" id="World3D_s7kgt"]
|
2024-01-26 21:07:19 +01:00
|
|
|
|
2024-01-27 00:05:04 +01:00
|
|
|
[node name="World" type="Node3D"]
|
|
|
|
script = ExtResource("1_gtcjp")
|
2024-01-26 21:07:19 +01:00
|
|
|
|
2024-01-27 15:58:16 +01:00
|
|
|
[node name="ScoreUpdateTimer" type="Timer" parent="."]
|
|
|
|
wait_time = 0.33
|
|
|
|
autostart = true
|
|
|
|
|
|
|
|
[node name="PixelCountComputeShader" parent="." instance=ExtResource("6_75vqy")]
|
|
|
|
paint_viewport_path = NodePath("../WorldColoringViewport")
|
|
|
|
|
2024-01-27 01:41:29 +01:00
|
|
|
[node name="Player1" parent="." instance=ExtResource("2_a343a")]
|
2024-01-27 15:58:16 +01:00
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.121184, 0)
|
|
|
|
color = Color(1, 0, 0, 1)
|
2024-01-27 01:41:29 +01:00
|
|
|
coloring_sprite_path = NodePath("../WorldColoringViewport/Player1Sprite")
|
|
|
|
coloring_bomb_sprite_path = NodePath("../WorldColoringViewport/Player1BombSprite")
|
|
|
|
|
|
|
|
[node name="Player2" parent="." instance=ExtResource("2_a343a")]
|
2024-01-27 15:58:16 +01:00
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, -0.121184, 0)
|
|
|
|
color = Color(0, 0, 1, 1)
|
2024-01-27 01:41:29 +01:00
|
|
|
move_right_action = "move_right_p2"
|
|
|
|
move_left_action = "move_left_p2"
|
|
|
|
move_down_action = "move_down_p2"
|
|
|
|
move_up_action = "move_up_p2"
|
|
|
|
dash_action = "dash_p2"
|
|
|
|
bomb_action = "bomb_p2"
|
|
|
|
coloring_sprite_path = NodePath("../WorldColoringViewport/Player2Sprite")
|
|
|
|
coloring_bomb_sprite_path = NodePath("../WorldColoringViewport/Player2BombSprite")
|
2024-01-26 21:07:19 +01:00
|
|
|
|
|
|
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
|
|
|
environment = SubResource("Environment_f3jci")
|
|
|
|
|
|
|
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
|
|
|
transform = Transform3D(-4.37114e-08, -0.528438, 0.848972, 0, 0.848972, 0.528438, -1, 2.30988e-08, -3.71097e-08, 0.936448, 2.01321, 1.19116)
|
|
|
|
shadow_enabled = true
|
|
|
|
|
|
|
|
[node name="Camera3D" type="Camera3D" parent="."]
|
2024-01-27 01:15:01 +01:00
|
|
|
transform = Transform3D(1, 0, 0, 0, 0.305147, 0.952305, 0, -0.952305, 0.305147, 0, 10, 3.10854)
|
2024-01-27 00:05:04 +01:00
|
|
|
|
|
|
|
[node name="Sprite3D" type="Sprite3D" parent="."]
|
|
|
|
transform = Transform3D(20, 0, 0, 0, -8.74228e-07, 50, 0, -20, -2.18557e-06, 0, 0, 0)
|
|
|
|
modulate = Color(1, 1, 1, 0.32549)
|
|
|
|
|
|
|
|
[node name="WorldColoringViewport" type="SubViewport" parent="."]
|
|
|
|
own_world_3d = true
|
|
|
|
world_3d = SubResource("World3D_s7kgt")
|
|
|
|
transparent_bg = true
|
2024-01-27 01:15:01 +01:00
|
|
|
handle_input_locally = false
|
2024-01-27 15:58:16 +01:00
|
|
|
size = Vector2i(1024, 1024)
|
2024-01-27 00:05:04 +01:00
|
|
|
render_target_clear_mode = 1
|
|
|
|
render_target_update_mode = 4
|
|
|
|
|
2024-01-27 01:15:01 +01:00
|
|
|
[node name="Player1Sprite" type="Sprite2D" parent="WorldColoringViewport"]
|
2024-01-27 15:58:16 +01:00
|
|
|
modulate = Color(0.117647, 0.564706, 1, 1)
|
|
|
|
position = Vector2(500, 500)
|
2024-01-27 01:15:01 +01:00
|
|
|
texture = ExtResource("4_dipd5")
|
|
|
|
|
|
|
|
[node name="Player1BombSprite" type="Sprite2D" parent="WorldColoringViewport"]
|
2024-01-27 01:41:29 +01:00
|
|
|
visible = false
|
2024-01-27 15:58:16 +01:00
|
|
|
modulate = Color(0.117647, 0.564706, 1, 1)
|
|
|
|
position = Vector2(500, 500)
|
2024-01-27 01:41:29 +01:00
|
|
|
texture = ExtResource("5_17c1g")
|
|
|
|
|
|
|
|
[node name="Player2Sprite" type="Sprite2D" parent="WorldColoringViewport"]
|
2024-01-27 15:58:16 +01:00
|
|
|
modulate = Color(0.878431, 0, 0.980392, 1)
|
|
|
|
position = Vector2(530, 500)
|
2024-01-27 01:41:29 +01:00
|
|
|
texture = ExtResource("4_dipd5")
|
|
|
|
|
|
|
|
[node name="Player2BombSprite" type="Sprite2D" parent="WorldColoringViewport"]
|
|
|
|
visible = false
|
2024-01-27 15:58:16 +01:00
|
|
|
modulate = Color(0.878431, 0, 0.980392, 1)
|
|
|
|
position = Vector2(530, 500)
|
2024-01-27 01:15:01 +01:00
|
|
|
texture = ExtResource("5_17c1g")
|
|
|
|
|
2024-01-27 00:05:04 +01:00
|
|
|
[node name="Level" type="Node3D" parent="."]
|
2024-01-27 18:03:18 +01:00
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.76534, 0, 5.93242)
|
2024-01-27 00:05:04 +01:00
|
|
|
|
2024-01-27 17:06:32 +01:00
|
|
|
[node name="Platforms" parent="Level" instance=ExtResource("6_83plb")]
|
2024-01-27 02:07:15 +01:00
|
|
|
|
2024-01-27 17:06:32 +01:00
|
|
|
[node name="Platforms2" parent="Level" instance=ExtResource("6_83plb")]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.68666, 0, 5.21494)
|
2024-01-27 02:07:15 +01:00
|
|
|
|
2024-01-27 17:06:32 +01:00
|
|
|
[node name="Platforms3" parent="Level" instance=ExtResource("6_83plb")]
|
2024-01-27 23:12:04 +01:00
|
|
|
transform = Transform3D(0.768741, 0, -0.63956, 0, 1, 0, 0.63956, 0, 0.768741, 8.83345, 0, 2.90911)
|
2024-01-27 02:07:15 +01:00
|
|
|
|
2024-01-27 17:06:32 +01:00
|
|
|
[node name="Platforms4" parent="Level" instance=ExtResource("6_83plb")]
|
|
|
|
transform = Transform3D(-0.99988, 0, -0.0155154, 0, 1, 0, 0.0155154, 0, -0.99988, 13.9505, -4.76837e-07, -0.629952)
|
2024-01-27 02:07:15 +01:00
|
|
|
|
2024-01-27 17:06:32 +01:00
|
|
|
[node name="Platforms5" parent="Level" instance=ExtResource("6_83plb")]
|
|
|
|
transform = Transform3D(-0.99988, 0, -0.0155154, 0, 1, 0, 0.0155154, 0, -0.99988, 6.40327, 0, -5.73714)
|
2024-01-27 02:07:15 +01:00
|
|
|
|
2024-01-27 17:06:32 +01:00
|
|
|
[node name="Platforms6" parent="Level" instance=ExtResource("6_83plb")]
|
|
|
|
transform = Transform3D(-0.91991, 0, -0.392128, 0, 1, 0, 0.392128, 0, -0.91991, 17.1955, -4.76837e-07, -5.8158)
|
2024-01-27 02:07:15 +01:00
|
|
|
|
2024-01-27 17:06:32 +01:00
|
|
|
[node name="Platforms7" parent="Level" instance=ExtResource("6_83plb")]
|
|
|
|
transform = Transform3D(-0.91991, 0, -0.392128, 0, 1, 0, 0.392128, 0, -0.91991, 8.27811, 0, -7.69307)
|
2024-01-27 02:07:15 +01:00
|
|
|
|
2024-01-27 17:06:32 +01:00
|
|
|
[node name="Platforms8" parent="Level" instance=ExtResource("7_cld3m")]
|
|
|
|
transform = Transform3D(0.769634, 0, 0.638486, 0, 1, 0, -0.638486, 0, 0.769634, -1.18219, 0, -6.89363)
|
2024-01-27 02:07:15 +01:00
|
|
|
|
2024-01-27 17:06:32 +01:00
|
|
|
[node name="Platforms9" parent="Level" instance=ExtResource("7_cld3m")]
|
2024-01-27 18:03:18 +01:00
|
|
|
transform = Transform3D(0.330663, 0, -0.943749, 0, 1, 0, 0.943749, 0, 0.330663, 3.64812, -9.53674e-07, -15.7327)
|
|
|
|
|
|
|
|
[node name="Platforms10" parent="Level" instance=ExtResource("6_83plb")]
|
|
|
|
transform = Transform3D(-0.851736, 0, 0.523971, 0, 1, 0, -0.523971, 0, -0.851736, 15.3333, 0, -12.1468)
|
|
|
|
|
|
|
|
[node name="SpawnPointPlayer1" parent="Level" instance=ExtResource("8_ykvyf")]
|
|
|
|
|
|
|
|
[node name="SpawnPointPlayer2" parent="Level" instance=ExtResource("8_ykvyf")]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.48618, 0, -11.2001)
|
|
|
|
player_index = 1
|
|
|
|
|
|
|
|
[node name="SpawnPointPlayer3" parent="Level" instance=ExtResource("8_ykvyf")]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.55561, 0, 3.26255)
|