summaryrefslogtreecommitdiff
path: root/src/Main.tscn
blob: 54715650b644e4dcd989c878fe1d1be874a7ff32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[gd_scene load_steps=6 format=2]

[ext_resource path="res://entities/actors/snake/scenes/Snake.tscn" type="PackedScene" id=1]
[ext_resource path="res://addons/GifMaker/GifRecorder.gd" type="Script" id=2]
[ext_resource path="res://addons/GifMaker/GifRectangle.gd" type="Script" id=3]
[ext_resource path="res://main.gd" type="Script" id=4]
[ext_resource path="res://screen_recorder.gd" type="Script" id=5]

[node name="Main" type="Node2D"]
script = ExtResource( 4 )

[node name="Snake" parent="." instance=ExtResource( 1 )]

[node name="Camera" type="Camera2D" parent="."]
current = true
zoom = Vector2( 0.5, 0.5 )

[node name="ScreenRecorder" type="CanvasLayer" parent="."]
script = ExtResource( 5 )

[node name="Control" type="Control" parent="ScreenRecorder"]
anchor_right = 1.0
anchor_bottom = 1.0

[node name="GifRectangle" type="ReferenceRect" parent="ScreenRecorder/Control"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -64.0
margin_top = -64.0
margin_right = 64.0
margin_bottom = 64.0
script = ExtResource( 3 )

[node name="GifRecorder" type="Viewport" parent="ScreenRecorder/Control"]
size = Vector2( 128, 128 )
script = ExtResource( 2 )
render_type = 1
seconds = 2.0
autostart = true
capture_node_path = NodePath("../GifRectangle")