added texture

set up tileset from texture
changed import options for texture
master
Zac 4 years ago
parent 2f9ae73f02
commit f01ecb5a9f
  1. 213
      _scenes/tiles.tscn
  2. 110
      assets/tiles.tres
  3. BIN
      textures/tileset.png
  4. 29
      textures/tileset.png.import

@ -0,0 +1,213 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://textures/tileset.png" type="Texture" id=1]
[sub_resource type="RectangleShape2D" id=1]
custom_solver_bias = 0.0
extents = Vector2( 7.98566, 7.99614 )
[node name="tiles" type="Node2D" index="0"]
scale = Vector2( 4, 4 )
[node name="corner_wall" type="Sprite" parent="." index="0"]
editor/display_folded = true
position = Vector2( 38.5071, 100.669 )
scale = Vector2( 4, 4 )
texture = ExtResource( 1 )
vframes = 13
hframes = 13
frame = 4
_sections_unfolded = [ "Animation" ]
__meta__ = {
"_edit_group_": true
}
[node name="StaticBody2D" type="StaticBody2D" parent="corner_wall" index="0"]
editor/display_folded = true
input_pickable = false
collision_layer = 1
collision_mask = 1
constant_linear_velocity = Vector2( 0, 0 )
constant_angular_velocity = 0.0
friction = 1.0
bounce = 0.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="corner_wall/StaticBody2D" index="0"]
shape = SubResource( 1 )
[node name="vertical_wall" type="Sprite" parent="." index="1"]
editor/display_folded = true
position = Vector2( 39.8486, 458.654 )
scale = Vector2( 4, 4 )
texture = ExtResource( 1 )
vframes = 13
hframes = 13
frame = 17
_sections_unfolded = [ "Animation" ]
__meta__ = {
"_edit_group_": true
}
[node name="StaticBody2D" type="StaticBody2D" parent="vertical_wall" index="0"]
editor/display_folded = true
input_pickable = false
collision_layer = 1
collision_mask = 1
constant_linear_velocity = Vector2( 0, 0 )
constant_angular_velocity = 0.0
friction = 1.0
bounce = 0.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="vertical_wall/StaticBody2D" index="0"]
shape = SubResource( 1 )
[node name="horizontal_wall" type="Sprite" parent="." index="2"]
editor/display_folded = true
position = Vector2( 542.365, 105.858 )
scale = Vector2( 4, 4 )
texture = ExtResource( 1 )
vframes = 13
hframes = 13
frame = 5
_sections_unfolded = [ "Animation" ]
__meta__ = {
"_edit_group_": true
}
[node name="StaticBody2D" type="StaticBody2D" parent="horizontal_wall" index="0"]
editor/display_folded = true
input_pickable = false
collision_layer = 1
collision_mask = 1
constant_linear_velocity = Vector2( 0, 0 )
constant_angular_velocity = 0.0
friction = 1.0
bounce = 0.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="horizontal_wall/StaticBody2D" index="0"]
shape = SubResource( 1 )
[node name="bg_corner" type="Sprite" parent="." index="3"]
editor/display_folded = true
position = Vector2( 974.901, 106.431 )
scale = Vector2( 4, 4 )
texture = ExtResource( 1 )
vframes = 13
hframes = 13
frame = 120
_sections_unfolded = [ "Animation" ]
__meta__ = {
"_edit_group_": true
}
[node name="StaticBody2D" type="StaticBody2D" parent="bg_corner" index="0"]
input_pickable = false
collision_layer = 1
collision_mask = 1
constant_linear_velocity = Vector2( 0, 0 )
constant_angular_velocity = 0.0
friction = 1.0
bounce = 0.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="bg_corner/StaticBody2D" index="0"]
shape = SubResource( 1 )
[node name="bg_horizontal" type="Sprite" parent="." index="4"]
editor/display_folded = true
position = Vector2( 1312.75, 116.782 )
scale = Vector2( 4, 4 )
texture = ExtResource( 1 )
vframes = 13
hframes = 13
frame = 121
_sections_unfolded = [ "Animation" ]
__meta__ = {
"_edit_group_": true
}
[node name="StaticBody2D" type="StaticBody2D" parent="bg_horizontal" index="0"]
input_pickable = false
collision_layer = 1
collision_mask = 1
constant_linear_velocity = Vector2( 0, 0 )
constant_angular_velocity = 0.0
friction = 1.0
bounce = 0.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="bg_horizontal/StaticBody2D" index="0"]
shape = SubResource( 1 )
[node name="bg_vertical" type="Sprite" parent="." index="5"]
editor/display_folded = true
position = Vector2( 975.245, 454.022 )
scale = Vector2( 4, 4 )
texture = ExtResource( 1 )
vframes = 13
hframes = 13
frame = 133
_sections_unfolded = [ "Animation" ]
__meta__ = {
"_edit_group_": true
}
[node name="StaticBody2D" type="StaticBody2D" parent="bg_vertical" index="0"]
input_pickable = false
collision_layer = 1
collision_mask = 1
constant_linear_velocity = Vector2( 0, 0 )
constant_angular_velocity = 0.0
friction = 1.0
bounce = 0.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="bg_vertical/StaticBody2D" index="0"]
shape = SubResource( 1 )
[node name="bg_inside" type="Sprite" parent="." index="6"]
editor/display_folded = true
position = Vector2( 1303.76, 454.022 )
scale = Vector2( 4, 4 )
texture = ExtResource( 1 )
vframes = 13
hframes = 13
frame = 134
_sections_unfolded = [ "Animation" ]
__meta__ = {
"_edit_group_": true
}
[node name="StaticBody2D" type="StaticBody2D" parent="bg_inside" index="0"]
input_pickable = false
collision_layer = 1
collision_mask = 1
constant_linear_velocity = Vector2( 0, 0 )
constant_angular_velocity = 0.0
friction = 1.0
bounce = 0.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="bg_inside/StaticBody2D" index="0"]
shape = SubResource( 1 )

@ -0,0 +1,110 @@
[gd_resource type="TileSet" load_steps=3 format=2]
[ext_resource path="res://textures/tileset.png" type="Texture" id=1]
[sub_resource type="RectangleShape2D" id=1]
custom_solver_bias = 0.0
extents = Vector2( 7.98566, 7.99614 )
[resource]
0/name = "corner_wall"
0/texture = ExtResource( 1 )
0/tex_offset = Vector2( 0, 0 )
0/modulate = Color( 1, 1, 1, 1 )
0/region = Rect2( 64, 0, 16, 16 )
0/is_autotile = false
0/occluder_offset = Vector2( 8, 8 )
0/navigation_offset = Vector2( 8, 8 )
0/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 8, 8 )
} ]
1/name = "vertical_wall"
1/texture = ExtResource( 1 )
1/tex_offset = Vector2( 0, 0 )
1/modulate = Color( 1, 1, 1, 1 )
1/region = Rect2( 64, 16, 16, 16 )
1/is_autotile = false
1/occluder_offset = Vector2( 8, 8 )
1/navigation_offset = Vector2( 8, 8 )
1/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 8, 8 )
} ]
2/name = "horizontal_wall"
2/texture = ExtResource( 1 )
2/tex_offset = Vector2( 0, 0 )
2/modulate = Color( 1, 1, 1, 1 )
2/region = Rect2( 80, 0, 16, 16 )
2/is_autotile = false
2/occluder_offset = Vector2( 8, 8 )
2/navigation_offset = Vector2( 8, 8 )
2/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 8, 8 )
} ]
3/name = "bg_corner"
3/texture = ExtResource( 1 )
3/tex_offset = Vector2( 0, 0 )
3/modulate = Color( 1, 1, 1, 1 )
3/region = Rect2( 48, 144, 16, 16 )
3/is_autotile = false
3/occluder_offset = Vector2( 8, 8 )
3/navigation_offset = Vector2( 8, 8 )
3/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 8, 8 )
} ]
4/name = "bg_horizontal"
4/texture = ExtResource( 1 )
4/tex_offset = Vector2( 0, 0 )
4/modulate = Color( 1, 1, 1, 1 )
4/region = Rect2( 64, 144, 16, 16 )
4/is_autotile = false
4/occluder_offset = Vector2( 8, 8 )
4/navigation_offset = Vector2( 8, 8 )
4/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 8, 8 )
} ]
5/name = "bg_vertical"
5/texture = ExtResource( 1 )
5/tex_offset = Vector2( 0, 0 )
5/modulate = Color( 1, 1, 1, 1 )
5/region = Rect2( 48, 160, 16, 16 )
5/is_autotile = false
5/occluder_offset = Vector2( 8, 8 )
5/navigation_offset = Vector2( 8, 8 )
5/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 8, 8 )
} ]
6/name = "bg_inside"
6/texture = ExtResource( 1 )
6/tex_offset = Vector2( 0, 0 )
6/modulate = Color( 1, 1, 1, 1 )
6/region = Rect2( 64, 160, 16, 16 )
6/is_autotile = false
6/occluder_offset = Vector2( 8, 8 )
6/navigation_offset = Vector2( 8, 8 )
6/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 8, 8 )
} ]

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

@ -0,0 +1,29 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/tileset.png-c58e1bf82d47fc19d60aef6c7192e952.stex"
[deps]
source_file="res://textures/tileset.png"
dest_files=[ "res://.import/tileset.png-c58e1bf82d47fc19d60aef6c7192e952.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/normal_map=0
flags/repeat=0
flags/filter=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
Loading…
Cancel
Save