Get a tile for the tilemap of the correct size
This commit is contained in:
parent
862fb41a32
commit
7b5d7f5ee7
BIN
Assets/TestTile.png
Normal file
BIN
Assets/TestTile.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
35
Assets/TestTile.png.import
Normal file
35
Assets/TestTile.png.import
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/TestTile.png-f25e43c55ebf25b13707fee90777f4c7.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Assets/TestTile.png"
|
||||||
|
dest_files=[ "res://.import/TestTile.png-f25e43c55ebf25b13707fee90777f4c7.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=true
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=true
|
||||||
|
svg/scale=1.0
|
@ -1,10 +1,11 @@
|
|||||||
[gd_scene load_steps=7 format=2]
|
[gd_scene load_steps=8 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://icon.png" type="Texture" id=1]
|
[ext_resource path="res://icon.png" type="Texture" id=1]
|
||||||
[ext_resource path="res://Characters/Player.tscn" type="PackedScene" id=2]
|
[ext_resource path="res://Characters/Player.tscn" type="PackedScene" id=2]
|
||||||
[ext_resource path="res://Scenes/BattleScene.gd" type="Script" id=3]
|
[ext_resource path="res://Scenes/BattleScene.gd" type="Script" id=3]
|
||||||
[ext_resource path="res://UI/CardView.tscn" type="PackedScene" id=4]
|
[ext_resource path="res://UI/CardView.tscn" type="PackedScene" id=4]
|
||||||
[ext_resource path="res://UI/DiceView.tscn" type="PackedScene" id=5]
|
[ext_resource path="res://UI/DiceView.tscn" type="PackedScene" id=5]
|
||||||
|
[ext_resource path="res://Assets/TestTile.png" type="Texture" id=6]
|
||||||
|
|
||||||
[sub_resource type="TileSet" id=1]
|
[sub_resource type="TileSet" id=1]
|
||||||
0/name = "icon.png 0"
|
0/name = "icon.png 0"
|
||||||
@ -21,6 +22,26 @@
|
|||||||
0/shape_one_way_margin = 0.0
|
0/shape_one_way_margin = 0.0
|
||||||
0/shapes = [ ]
|
0/shapes = [ ]
|
||||||
0/z_index = 0
|
0/z_index = 0
|
||||||
|
1/name = "TestTile.png 1"
|
||||||
|
1/texture = ExtResource( 6 )
|
||||||
|
1/tex_offset = Vector2( 16, 0 )
|
||||||
|
1/modulate = Color( 1, 1, 1, 1 )
|
||||||
|
1/region = Rect2( 0, 0, 160, 64 )
|
||||||
|
1/tile_mode = 0
|
||||||
|
1/occluder_offset = Vector2( 0, 0 )
|
||||||
|
1/navigation_offset = Vector2( 0, 0 )
|
||||||
|
1/shape_offset = Vector2( 0, 0 )
|
||||||
|
1/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
1/shape_one_way = false
|
||||||
|
1/shape_one_way_margin = 1.0
|
||||||
|
1/shapes = [ {
|
||||||
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
|
"one_way": false,
|
||||||
|
"one_way_margin": 1.0,
|
||||||
|
"shape": null,
|
||||||
|
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
} ]
|
||||||
|
1/z_index = 0
|
||||||
|
|
||||||
[node name="BattleScene" type="Node2D"]
|
[node name="BattleScene" type="Node2D"]
|
||||||
script = ExtResource( 3 )
|
script = ExtResource( 3 )
|
||||||
@ -32,7 +53,7 @@ cell_size = Vector2( 128, 64 )
|
|||||||
cell_custom_transform = Transform2D( 128, 0, 32, 64, 0, 0 )
|
cell_custom_transform = Transform2D( 128, 0, 32, 64, 0, 0 )
|
||||||
centered_textures = true
|
centered_textures = true
|
||||||
format = 1
|
format = 1
|
||||||
tile_data = PoolIntArray( 65540, 0, 0, 131074, 0, 0, 131075, 0, 0, 131076, 0, 0, 131077, 0, 0, 131078, 0, 0, 196610, 0, 0, 196611, 0, 0, 196612, 0, 0, 196613, 0, 0, 196614, 0, 0, 262144, 0, 0, 262145, 0, 0, 262146, 0, 0, 262147, 0, 0, 262148, 0, 0, 262149, 0, 0, 262150, 0, 0, 327681, 0, 0, 327682, 0, 0, 327683, 0, 0, 327684, 0, 0, 327685, 0, 0, 327686, 0, 0, 393217, 0, 0, 393218, 0, 0, 393219, 0, 0, 393220, 0, 0, 393221, 0, 0, 393222, 0, 0, 458754, 0, 0, 458755, 0, 0, 458756, 0, 0, 458757, 0, 0, 524291, 0, 0, 524292, 0, 0 )
|
tile_data = PoolIntArray( 65538, 1, 0, 65539, 1, 0, 65540, 1, 0, 65541, 1, 0, 131074, 1, 0, 131075, 1, 0, 131076, 1, 0, 131077, 1, 0, 131078, 0, 0, 196610, 1, 0, 196611, 1, 0, 196612, 1, 0, 196613, 1, 0, 196614, 0, 0, 262144, 0, 0, 262145, 0, 0, 262146, 1, 0, 262147, 1, 0, 262148, 1, 0, 262149, 0, 0, 262150, 0, 0, 327681, 0, 0, 327682, 0, 0, 327683, 0, 0, 327684, 0, 0, 327685, 0, 0, 327686, 0, 0, 393217, 0, 0, 393218, 0, 0, 393219, 0, 0, 393220, 0, 0, 393221, 0, 0, 393222, 0, 0, 458754, 0, 0, 458755, 0, 0, 458756, 0, 0, 458757, 0, 0, 524291, 0, 0, 524292, 0, 0 )
|
||||||
|
|
||||||
[node name="Player" parent="." instance=ExtResource( 2 )]
|
[node name="Player" parent="." instance=ExtResource( 2 )]
|
||||||
|
|
||||||
@ -45,7 +66,6 @@ drag_margin_v_enabled = true
|
|||||||
drag_margin_left = 0.3
|
drag_margin_left = 0.3
|
||||||
drag_margin_top = 0.05
|
drag_margin_top = 0.05
|
||||||
drag_margin_right = 0.3
|
drag_margin_right = 0.3
|
||||||
editor_draw_drag_margin = true
|
|
||||||
|
|
||||||
[node name="UI" type="CanvasLayer" parent="."]
|
[node name="UI" type="CanvasLayer" parent="."]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user