-
Notifications
You must be signed in to change notification settings - Fork 2
/
demo.tscn
42 lines (36 loc) · 5.26 KB
/
demo.tscn
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=5 format=2]
[ext_resource path="res://addons/palette/palette.gd" type="Script" id=1]
[ext_resource path="res://sprite.tscn" type="PackedScene" id=2]
[ext_resource path="res://tilemap.tscn" type="PackedScene" id=3]
[ext_resource path="res://icon.png" type="Texture" id=4]
[node name="Node2D" type="Node2D"]
[node name="Label" type="Label" parent="."]
margin_left = 257.393
margin_top = 1.43389
margin_right = 1208.39
margin_bottom = 117.434
text = "Palette Plugin
- Click the palette Node to open it's dock; the plugin paints like a regular Tilemap.
- Click to paint a tile.
- Right click to remove a tile.
- Hold control and click to rotate an already painted tile by 90 degs.
- Add new PackedScenes by adding to the 'Colors' array.
- If a Tilemap is added to the palette, it'll be split up into it's seperate tiles.
- Note! You have to also add the Tilemap scene manually to the node tree.
- There is undo support but it's kinda buggy.
- Double click any PackedScene in the Palette dock to open it's scene in a new tab.
- There's other options like grid snap and stuff you can figure out.
"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Palette" type="Node2D" parent="."]
script = ExtResource( 1 )
brush_overlap_ = true
colors_ = [ ExtResource( 2 ), ExtResource( 3 ) ]
[node name="tilemap" parent="Palette" instance=ExtResource( 3 )]
tile_data = PoolIntArray( 0, 1, 0, 1, 1, 1, 2, 1, 1, 3, 1, 1, 4, 1, 1, 5, 1, 1, 6, 1, 1, 7, 1, 1, 8, 1, 1, 9, 1, 2, 10, 2, 0, 11, 2, 0, 12, 2, 0, 13, 2, 0, 14, 2, 0, 15, 2, 0, 65536, 1, 65536, 65537, 1, 65537, 65538, 1, 3, 65539, 1, 131073, 65540, 1, 131073, 65541, 1, 131073, 65542, 1, 131073, 65543, 1, 4, 65544, 1, 65537, 65545, 1, 65538, 65546, 2, 0, 65547, 2, 2, 65548, 2, 0, 65549, 2, 1, 65550, 2, 2, 65551, 2, 0, 131072, 1, 65536, 131073, 1, 65537, 131074, 1, 65538, 131075, 2, 0, 131076, 2, 0, 131077, 2, 0, 131078, 2, 0, 131079, 1, 65536, 131080, 1, 65537, 131081, 1, 65538, 131082, 2, 0, 131083, 2, 2, 131084, 2, 0, 131085, 2, 0, 131086, 2, 1, 131087, 2, 0, 196608, 1, 65536, 196609, 1, 65537, 196610, 1, 65538, 196611, 2, 0, 196612, 2, 0, 196613, 2, 0, 196614, 2, 0, 196615, 1, 65536, 196616, 1, 65537, 196617, 1, 65538, 196618, 2, 0, 196619, 2, 0, 196620, 2, 0, 196621, 2, 65538, 196622, 2, 2, 196623, 2, 0, 262144, 1, 65536, 262145, 1, 65537, 262146, 1, 65538, 262147, 2, 0, 262148, 2, 0, 262149, 1, 0, 262150, 1, 1, 262151, 1, 65540, 262152, 1, 65537, 262153, 1, 65538, 262154, 2, 0, 262155, 2, 0, 262156, 2, 65536, 262157, 2, 2, 262158, 2, 65537, 262159, 2, 0, 327680, 1, 131072, 327681, 1, 131073, 327682, 1, 131074, 327683, 2, 0, 327684, 2, 0, 327685, 1, 131072, 327686, 1, 131073, 327687, 1, 131073, 327688, 1, 131073, 327689, 1, 131074, 327690, 2, 0, 327691, 2, 0, 327692, 2, 0, 327693, 2, 0, 327694, 2, 0, 327695, 2, 0, 393216, 2, 0, 393217, 2, 0, 393218, 2, 0, 393219, 2, 0, 393220, 2, 0, 393221, 2, 0, 393222, 2, 0, 393223, 2, 0, 393224, 2, 0, 393225, 2, 0, 393226, 2, 0, 393227, 2, 0, 393228, 1, 0, 393229, 1, 2, 393230, 2, 0, 393231, 2, 0, 458752, 2, 0, 458753, 2, 0, 458754, 2, 1, 458755, 2, 1, 458756, 2, 2, 458757, 2, 65536, 458758, 2, 65536, 458759, 2, 65536, 458760, 2, 0, 458761, 2, 0, 458762, 2, 0, 458763, 2, 0, 458764, 1, 131072, 458765, 1, 131074, 458766, 2, 0, 458767, 2, 0, 524288, 2, 0, 524289, 2, 65537, 524290, 2, 65538, 524291, 2, 2, 524292, 2, 65536, 524293, 2, 65538, 524294, 2, 65536, 524295, 2, 0, 524296, 2, 65537, 524297, 2, 0, 524298, 1, 0, 524299, 1, 1, 524300, 1, 2, 524301, 2, 0, 524302, 2, 0, 524303, 2, 0, 589824, 2, 0, 589825, 2, 2, 589826, 2, 65538, 589827, 2, 1, 589828, 2, 65538, 589829, 2, 1, 589830, 2, 2, 589831, 2, 2, 589832, 2, 65536, 589833, 2, 0, 589834, 1, 65536, 589835, 1, 65537, 589836, 1, 65538, 589837, 2, 0, 589838, 2, 2, 589839, 2, 0, 655360, 2, 0, 655361, 2, 2, 655362, 2, 65537, 655363, 2, 1, 655364, 2, 65537, 655365, 2, 0, 655366, 2, 2, 655367, 2, 0, 655368, 2, 0, 655369, 2, 0, 655370, 1, 65536, 655371, 1, 3, 655372, 1, 131074, 655373, 2, 0, 655374, 2, 0, 655375, 2, 0, 720896, 2, 0, 720897, 2, 65538, 720898, 2, 0, 720899, 2, 65536, 720900, 2, 2, 720901, 2, 2, 720902, 2, 65537, 720903, 2, 0, 720904, 2, 0, 720905, 1, 0, 720906, 1, 131076, 720907, 1, 131074, 720908, 2, 0, 720909, 2, 0, 720910, 2, 0, 720911, 2, 0, 786432, 2, 0, 786433, 2, 65536, 786434, 2, 65536, 786435, 2, 0, 786436, 2, 65538, 786437, 2, 0, 786438, 2, 1, 786439, 2, 0, 786440, 1, 0, 786441, 1, 65540, 786442, 1, 65538, 786443, 2, 0, 786444, 2, 0, 786445, 2, 65537, 786446, 2, 65537, 786447, 2, 0, 851968, 2, 0, 851969, 2, 1, 851970, 2, 0, 851971, 2, 0, 851972, 2, 0, 851973, 2, 0, 851974, 2, 65537, 851975, 2, 0, 851976, 1, 131072, 851977, 1, 4, 851978, 1, 65538, 851979, 2, 0, 851980, 2, 65538, 851981, 2, 0, 851982, 2, 65537, 851983, 2, 0, 917504, 2, 0, 917505, 2, 0, 917506, 2, 2, 917507, 2, 1, 917508, 2, 0, 917509, 2, 65537, 917510, 2, 1, 917511, 2, 0, 917512, 2, 0, 917513, 1, 131072, 917514, 1, 131074, 917515, 2, 0, 917516, 2, 0, 917517, 2, 0, 917518, 2, 65538, 917519, 2, 0, 983040, 2, 0, 983041, 2, 0, 983042, 2, 0, 983043, 2, 0, 983044, 2, 0, 983045, 2, 0, 983046, 2, 0, 983047, 2, 0, 983048, 2, 0, 983049, 2, 0, 983050, 2, 0, 983051, 2, 0, 983052, 2, 0, 983053, 2, 0, 983054, 2, 0, 983055, 2, 0 )
[node name="sprite" type="Sprite" parent="Palette" instance=ExtResource( 2 )]
position = Vector2( 136, 88 )
rotation = 1.5708
texture = ExtResource( 4 )