[gd_scene load_steps=10 format=3 uid="uid://cypj35yv5auuc"] [ext_resource type="Script" uid="uid://dbrblyk7xttpj" path="res://objects/portal/portal.gd" id="1_v7atq"] [ext_resource type="Texture2D" uid="uid://dtwp3ohanw2sn" path="res://assets/textures/portal/portal.png" id="2_ah4id"] [ext_resource type="Texture2D" uid="uid://cv7rv8wlhpbg1" path="res://assets/textures/portal/portal_normal.png" id="3_ah4id"] [ext_resource type="Texture2D" uid="uid://h45qkvmrh0ey" path="res://assets/textures/portal/portal_light.png" id="4_xxtm7"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_v7atq"] size = Vector2(16, 16) [sub_resource type="Animation" id="Animation_0po8f"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite2D:rotation") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [0.0] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("LightPivot:rotation") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [0.0] } [sub_resource type="Animation" id="Animation_xxtm7"] resource_name = "spin" loop_mode = 1 step = 0.25 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite2D:rotation") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 1), "transitions": PackedFloat32Array(1, 1), "update": 0, "values": [0.0, 12.5664] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("LightPivot:rotation") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0, 1), "transitions": PackedFloat32Array(1, 1), "update": 0, "values": [0.0, -6.28319] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_6y8yo"] _data = { &"RESET": SubResource("Animation_0po8f"), &"spin": SubResource("Animation_xxtm7") } [sub_resource type="CanvasTexture" id="CanvasTexture_xxtm7"] diffuse_texture = ExtResource("2_ah4id") normal_texture = ExtResource("3_ah4id") [node name="Portal" type="Node2D" node_paths=PackedStringArray("sprite")] script = ExtResource("1_v7atq") sprite = NodePath("Sprite2D") [node name="PlayerDetector" type="Area2D" parent="."] collision_layer = 0 collision_mask = 16 monitorable = false [node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerDetector"] shape = SubResource("RectangleShape2D_v7atq") [node name="AnimationPlayer" type="AnimationPlayer" parent="."] libraries = { &"": SubResource("AnimationLibrary_6y8yo") } autoplay = "spin" [node name="Sprite2D" type="Sprite2D" parent="."] modulate = Color(0.627451, 0.12549, 0.941176, 1) self_modulate = Color(1, 1, 1, 0.75) light_mask = 32 texture = SubResource("CanvasTexture_xxtm7") [node name="LightPivot" type="Node2D" parent="."] position = Vector2(-4, 4) [node name="PointLight2D" type="PointLight2D" parent="LightPivot"] position = Vector2(4, 0) range_item_cull_mask = 32 texture = ExtResource("4_xxtm7") texture_scale = 2.0 height = 4.0 [connection signal="body_entered" from="PlayerDetector" to="." method="_on_player_detector_body_entered"] [connection signal="body_exited" from="PlayerDetector" to="." method="_on_player_detector_body_exited"]