123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- [gd_scene load_steps=11 format=3 uid="uid://xwkspajfdmd7"]
- [ext_resource type="Script" path="res://3d_in_2d.gd" id="1"]
- [ext_resource type="Texture2D" uid="uid://q5bonn8iowbc" path="res://robot_demo.png" id="2"]
- [ext_resource type="PackedScene" uid="uid://8nlipuu0ceal" path="res://robot_3d.tscn" id="3"]
- [sub_resource type="ViewportTexture" id="ViewportTexture_2squv"]
- viewport_path = NodePath("SubViewport")
- [sub_resource type="AtlasTexture" id="2"]
- atlas = ExtResource("2")
- region = Rect2(0, 0, 64, 64)
- [sub_resource type="AtlasTexture" id="3"]
- atlas = ExtResource("2")
- region = Rect2(64, 0, 64, 64)
- [sub_resource type="AtlasTexture" id="4"]
- atlas = ExtResource("2")
- region = Rect2(128, 0, 64, 64)
- [sub_resource type="AtlasTexture" id="5"]
- atlas = ExtResource("2")
- region = Rect2(192, 0, 64, 64)
- [sub_resource type="AtlasTexture" id="6"]
- atlas = ExtResource("2")
- region = Rect2(256, 0, 64, 64)
- [sub_resource type="SpriteFrames" id="7"]
- animations = [{
- "frames": [SubResource("2"), SubResource("3"), SubResource("4"), SubResource("5"), SubResource("6")],
- "loop": true,
- "name": &"default",
- "speed": 5.0
- }]
- [node name="3Din2D" type="Node2D"]
- script = ExtResource("1")
- [node name="SubViewport" type="SubViewport" parent="."]
- transparent_bg = true
- msaa_3d = 2
- size = Vector2i(300, 300)
- render_target_update_mode = 4
- [node name="Robot3D" parent="SubViewport" instance=ExtResource("3")]
- [node name="ViewportSprite" type="Sprite2D" parent="."]
- position = Vector2(650, 300)
- texture = SubResource("ViewportTexture_2squv")
- [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
- position = Vector2(350, 300)
- scale = Vector2(3, 3)
- frames = SubResource("7")
- [node name="Camera2D" type="Camera2D" parent="."]
- offset = Vector2(512, 300)
- current = true
|