From ac3b0682be368fc85f711dee155edf6dcd716b5f Mon Sep 17 00:00:00 2001 From: Ategon Date: Fri, 13 Sep 2024 21:16:28 -0400 Subject: [PATCH] Add new tileset --- Main.tscn | 70 +++++++++++++++-------------------- TIleSet.tres | 54 +++++++++++++++++++++++++++ tile_map.gd | 88 ++++++++++++++++++++++---------------------- tiles-v3.png | Bin 0 -> 1869 bytes tiles-v3.png.import | 34 +++++++++++++++++ ui/building_icon.gd | 5 --- ui/building_menu.gd | 2 - 7 files changed, 161 insertions(+), 92 deletions(-) create mode 100644 TIleSet.tres create mode 100644 tiles-v3.png create mode 100644 tiles-v3.png.import diff --git a/Main.tscn b/Main.tscn index 728be01..55384f3 100644 --- a/Main.tscn +++ b/Main.tscn @@ -1,46 +1,12 @@ -[gd_scene load_steps=14 format=3 uid="uid://5ske2hm55rce"] +[gd_scene load_steps=8 format=4 uid="uid://5ske2hm55rce"] [ext_resource type="Theme" uid="uid://d035h7upxrw3h" path="res://theme.tres" id="1_xbn5h"] -[ext_resource type="Texture2D" uid="uid://bsrh0u02bckhy" path="res://iso_building.png" id="3_qa5pv"] -[ext_resource type="Texture2D" uid="uid://bvn5lewpp7pmd" path="res://iso_tile.png" id="4_7pks7"] -[ext_resource type="Texture2D" uid="uid://bdmao1k7ngu2m" path="res://basic_tiles.png" id="4_h72lx"] +[ext_resource type="TileSet" uid="uid://dhy53lakrlutm" path="res://TIleSet.tres" id="2_68wnv"] [ext_resource type="PackedScene" uid="uid://dykc1mgg5uopw" path="res://components/Cursor/MouseHandler.tscn" id="5_6lpdu"] [ext_resource type="Script" path="res://tile_map.gd" id="5_v47eg"] [ext_resource type="PackedScene" uid="uid://byyyhq3x8t2d8" path="res://InfoWindow.tscn" id="7_f4xfy"] [ext_resource type="PackedScene" uid="uid://b22pr3istdhcv" path="res://ui/BuildingMenu.tscn" id="7_hnxcf"] -[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_dxrqb"] -texture = ExtResource("4_7pks7") -margins = Vector2i(16, 16) -1:1/0 = 0 -0:0/0 = 0 - -[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_j7eew"] -texture = ExtResource("3_qa5pv") -margins = Vector2i(15, 14) -texture_region_size = Vector2i(18, 20) -1:1/0 = 0 -0:0/0 = 0 - -[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_w6tof"] -texture = ExtResource("4_h72lx") -1:3/0 = 0 -3:3/0 = 0 -1:6/0 = 0 -3:6/0 = 0 -1:7/0 = 0 -3:7/0 = 0 -1:1/0 = 0 -3:1/0 = 0 - -[sub_resource type="TileSet" id="TileSet_2mye8"] -tile_shape = 1 -tile_layout = 5 -tile_size = Vector2i(16, 8) -sources/0 = SubResource("TileSetAtlasSource_dxrqb") -sources/1 = SubResource("TileSetAtlasSource_j7eew") -sources/2 = SubResource("TileSetAtlasSource_w6tof") - [sub_resource type="RectangleShape2D" id="RectangleShape2D_57goo"] size = Vector2(324, 314) @@ -53,10 +19,36 @@ offset_right = 40.0 offset_bottom = 40.0 theme = ExtResource("1_xbn5h") +[node name="A5" type="TileMapLayer" parent="."] +tile_map_data = PackedByteArray("AAAiAAQAAwABAAMAAAAjAAQAAwABAAMAAAAkAAQAAwABAAMAAAAlAAQAAwABAAMAAAAmAAQAAwABAAMAAAAnAAQAAwABAAMAAAAnAAMAAwABAAMAAAAoAAMAAwABAAMAAAAoAAQAAwABAAMAAAAoAAIAAwABAAMAAAAoAAEAAwABAAMAAAAoAAAAAwABAAMAAAAoAP//AwABAAMAAAAoAP7/AwABAAMAAAAnAP7/AwABAAMAAAAmAP7/AwABAAMAAAAlAP7/AwABAAMAAAAkAP7/AwABAAMAAAAjAP7/AwABAAMAAAAiAP7/AwABAAMAAAAiAP//AwABAAMAAAAiAAAAAwABAAMAAAAiAAEAAwABAAMAAAAiAAIAAwABAAMAAAAjAAIAAwABAAMAAAAiAAMAAwABAAMAAAAjAAMAAwABAAMAAAAkAAIAAwABAAMAAAAlAAIAAwABAAMAAAAmAAIAAwABAAMAA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AuAP7/AwABAAMAAAAuAP//AwABAAMAAAAuAAAAAwABAAMAAAAuAAEAAwABAAMAAAAuAAIAAwABAAMAAAAuAAMAAwABAAMAAAAuAAQAAwABAAMAAAAuAAUAAwABAAMAAAAuAAYAAwABAAMAAAAuAAcAAwABAAMAAAAuAAgAAwABAAMAAAAuAAkAAwABAAMAAAAuAAoAAwABAAMAAAAuAAsAAwABAAMAAAAvAP7/AwABAAMAAAAvAP//AwABAAMAAAAvAAAAAwABAAMAAAAvAAEAAwABAAMAAAAvAAIAAwABAAMAAAAvAAMAAwABAAMAAAAvAAQAAwABAAMAAAAvAAUAAwABAAMAAAAvAAYAAwABAAMAAAAvAAcAAwABAAMAAAAvAAgAAwABAAMAAAAvAAkAAwABAAMAAAAvAAoAAwABAAMAAAAvAAsAAwABAAMAAAAiAAwAAwABAAMAAAAjAAwAAwABAAMAAAAkAAwAAwABAAMAAAAlAAwAAwABAAMAAAAmAAwAAwABAAMAAAAnAAwAAwABAAMAAAAoAAwAAwABAAMAAAApAAwAAwABAAMAAAAqAAwAAwABAAMAAAArAAwAAwABAAMAAAAsAAwAAwABAAMAAAAtAAwAAwABAAMAAAAuAAwAAwABAAMAAAAvAAwAAwABAAMAAAAwAP7/AwABAAMAAAAwAP//AwABAAMAAAAwAAAAAwABAAMAAAAwAAEAAwABAAMAAAAwAAIAAwABAAMAAAAwAAMAAwABAAMAAAAwAAQAAwABAAMAAAAwAAUAAwABAAMAAAAwAAYAAwABAAMAAAAwAAcAAwABAAMAAAAwAAgAAwABAAMAAAAwAAkAAwABAAMAAAAwAAoAAwABAAMAAAAwAAsAAwABAAMAAAAwAAwAAwABAAMAAAA=") +tile_set = ExtResource("2_68wnv") + +[node name="A4" type="TileMapLayer" parent="."] +tile_map_data = PackedByteArray("AAAgAP//AwADAAEAAAAhAP//AwADAAEAAAAiAP//AwADAAEAAAAjAP//AwADAAEAAAAjAP7/AwADAAEAAAAjAP3/AwADAAEAAAAjAPz/AwADAAEAAAAgAAAAAwADAAEAAAAhAAAAAwADAAEAAAAiAAAAAwADAAEAAAAjAAAAAwADAAEAAAAkAP//AwADAAEAAAAkAP7/AwADAAEAAAAkAP3/AwADAAEAAAAkAPz/AwADAAEAAAAiAPz/AwADAAEAAAAiAP3/AwADAAEAAAAiAP7/AwADAAEAAAAkAAAAAwADAAEAAAAhAAIAAwADAAEAAAAiAAIAAwADAAEAAAAjAAIAAwADAAEAAAAkAAIAAwADAAEAAAAkAAEAAwADAAEAAAAlAAEAAwADAAEAAAAlAAIAAwADAAEAAAAmAAIAAwADAAEAAAAmAAEAAwADAAEAAAAmAAAAAwADAAEAAAAmAP//AwADAAEAAAAmAP7/AwADAAEAAAAmAP3/AwADAAEAAAA=") +tile_set = ExtResource("2_68wnv") + +[node name="A3" type="TileMapLayer" parent="."] +tile_map_data = PackedByteArray("AAAgAP7/AwAFAAEAAAAhAP7/AwAFAAEAAAAiAP7/AwAFAAEAAAAiAP3/AwAFAAEAAAAiAPz/AwAFAAEAAAAgAPz/AwAFAAEAAAAgAP3/AwAFAAEAAAAhAP3/AwAFAAEAAAAhAPz/AwAFAAEAAAAgAP//AwAFAAEAAAAhAP//AwAFAAEAAAAiAP//AwAFAAEAAAAjAP//AwAFAAEAAAAjAP7/AwAFAAEAAAAjAP3/AwAFAAEAAAAjAPz/AwAFAAEAAAAkAPz/AwAFAAEAAAAkAP3/AwAFAAEAAAAkAP7/AwAFAAEAAAAkAP//AwAFAAEAAAAjAAAAAwAFAAEAAAAiAAAAAwAFAAEAAAAhAAAAAwAFAAEAAAAgAAAAAwAFAAEAAAAkAAAAAwAFAAEAAAA=") +tile_set = ExtResource("2_68wnv") + +[node name="A2" type="TileMapLayer" parent="."] +tile_map_data = PackedByteArray("AAAfAP3/AwAHAAEAAAAgAP3/AwAHAAEAAAAhAP3/AwAHAAEAAAAhAPz/AwAHAAEAAAAhAPv/AwAHAAEAAAAfAP7/AwAHAAEAAAAgAP7/AwAHAAEAAAAhAP7/AwAHAAEAAAAiAP7/AwAHAAEAAAAiAP3/AwAHAAEAAAAiAPz/AwAHAAEAAAAiAPv/AwAHAAEAAAAfAPz/AwAHAAEAAAAfAPv/AwAHAAEAAAAgAPv/AwAHAAEAAAAgAPz/AwAHAAEAAAA=") +tile_set = ExtResource("2_68wnv") + +[node name="A" type="TileMapLayer" parent="."] +tile_map_data = PackedByteArray("AAAfAPz/AwAJAAEAAAAgAPz/AwAJAAEAAAAgAPv/AwAJAAEAAAAgAPr/AwAJAAEAAAAeAPr/AwAJAAEAAAAeAPv/AwAJAAEAAAAfAPr/AwAJAAEAAAAeAPz/AwAJAAEAAAAfAPv/AwAJAAEAAAA=") +tile_set = ExtResource("2_68wnv") + +[node name="TopLevel" type="TileMapLayer" parent="."] +tile_map_data = PackedByteArray("AAAdAPn/AwALAAEAAAAdAPr/AwALAAEAAAAeAPr/AwALAAEAAAAeAPn/AwALAAEAAAA=") +tile_set = ExtResource("2_68wnv") + [node name="TileMap" type="TileMap" parent="."] -tile_set = SubResource("TileSet_2mye8") +visible = false +tile_set = ExtResource("2_68wnv") rendering_quadrant_size = 128 format = 2 +layer_0/tile_data = PackedInt32Array(65535, 327683, 1, 131071, 327683, 1, 0, 327683, 1, 65536, 327683, 1) layer_1/name = "Layer1" layer_2/name = "Layer2" layer_3/name = "Layer3" @@ -71,10 +63,6 @@ position = Vector2(319, 177) rotation = 0.750492 shape = SubResource("RectangleShape2D_57goo") -[node name="Camera2D" type="Camera2D" parent="."] -position = Vector2(-48, -46) -offset = Vector2(50, 150) - [node name="CanvasLayer" type="CanvasLayer" parent="."] [node name="InfoWindow" parent="CanvasLayer" instance=ExtResource("7_f4xfy")] diff --git a/TIleSet.tres b/TIleSet.tres new file mode 100644 index 0000000..69e2264 --- /dev/null +++ b/TIleSet.tres @@ -0,0 +1,54 @@ +[gd_resource type="TileSet" load_steps=9 format=3 uid="uid://dhy53lakrlutm"] + +[ext_resource type="Texture2D" uid="uid://bvn5lewpp7pmd" path="res://iso_tile.png" id="1_sa4j6"] +[ext_resource type="Texture2D" uid="uid://bsrh0u02bckhy" path="res://iso_building.png" id="2_bubm3"] +[ext_resource type="Texture2D" uid="uid://bdmao1k7ngu2m" path="res://basic_tiles.png" id="3_rchy6"] +[ext_resource type="Texture2D" uid="uid://w1abxk1m0fae" path="res://tiles-v3.png" id="4_p6xw0"] + +[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_dxrqb"] +texture = ExtResource("1_sa4j6") +margins = Vector2i(16, 16) +1:1/0 = 0 +0:0/0 = 0 + +[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_j7eew"] +texture = ExtResource("2_bubm3") +margins = Vector2i(15, 14) +texture_region_size = Vector2i(18, 20) +1:1/0 = 0 +0:0/0 = 0 + +[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_w6tof"] +texture = ExtResource("3_rchy6") +1:3/0 = 0 +3:3/0 = 0 +1:6/0 = 0 +3:6/0 = 0 +1:7/0 = 0 +3:7/0 = 0 +1:1/0 = 0 +3:1/0 = 0 + +[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_5o051"] +texture = ExtResource("4_p6xw0") +1:1/0 = 0 +1:3/0 = 0 +3:3/0 = 0 +3:1/0 = 0 +5:1/0 = 0 +5:3/0 = 0 +11:3/0 = 0 +11:1/0 = 0 +9:1/0 = 0 +7:1/0 = 0 +7:3/0 = 0 +9:3/0 = 0 + +[resource] +tile_shape = 1 +tile_layout = 5 +tile_size = Vector2i(16, 8) +sources/0 = SubResource("TileSetAtlasSource_dxrqb") +sources/1 = SubResource("TileSetAtlasSource_j7eew") +sources/2 = SubResource("TileSetAtlasSource_w6tof") +sources/3 = SubResource("TileSetAtlasSource_5o051") diff --git a/tile_map.gd b/tile_map.gd index 3b16b85..dbed799 100644 --- a/tile_map.gd +++ b/tile_map.gd @@ -31,50 +31,50 @@ func _ready(): Triggerer.listen("select_building", select_building) Triggerer.listen("drag_building", drag_building) - for x in GridSize: - for y in GridSize: - var layer_number: int - var x_value: int = abs(GridSize/2 - x) - var y_value: int = abs(GridSize/2 - y) - var max_value: int = maxi(x_value, y_value) - match max_value: - 16,15: - layer_number = 1 - 14: - layer_number = generate_percentage([3,1]) - 13: - layer_number = generate_percentage([2,1]) - 12: - layer_number = generate_percentage([1,1]) - 11: - layer_number = generate_percentage([1,2,1]) - 10: - layer_number = generate_percentage([0,3,2]) - 9: - layer_number = generate_percentage([0,1,1]) - 8: - layer_number = generate_percentage([0,1,2,1]) - 7: - layer_number = generate_percentage([0,0,3,2]) - 6: - layer_number = generate_percentage([0,0,1,1]) - 5: - layer_number = generate_percentage([0,0,1,2,1]) - 4: - layer_number = generate_percentage([0,0,0,3,2]) - 3: - layer_number = generate_percentage([0,0,0,1,1]) - 2: - layer_number = generate_percentage([0,0,0,1,2]) - 1,0: - layer_number = 5 - print("x- ",x," y- ",y," layer- ",layer_number) - for layer in layer_number: - set_cell(layer, Vector2(x, y), 2, Vector2i(1, 1), 0) - Dic[str(Vector2(x,y))] = { - "Layer": layer_number, - "Placed": false - } + #for x in GridSize: + #for y in GridSize: + #var layer_number: int + #var x_value: int = abs(GridSize/2 - x) + #var y_value: int = abs(GridSize/2 - y) + #var max_value: int = maxi(x_value, y_value) + #match max_value: + #16,15: + #layer_number = 1 + #14: + #layer_number = generate_percentage([3,1]) + #13: + #layer_number = generate_percentage([2,1]) + #12: + #layer_number = generate_percentage([1,1]) + #11: + #layer_number = generate_percentage([1,2,1]) + #10: + #layer_number = generate_percentage([0,3,2]) + #9: + #layer_number = generate_percentage([0,1,1]) + #8: + #layer_number = generate_percentage([0,1,2,1]) + #7: + #layer_number = generate_percentage([0,0,3,2]) + #6: + #layer_number = generate_percentage([0,0,1,1]) + #5: + #layer_number = generate_percentage([0,0,1,2,1]) + #4: + #layer_number = generate_percentage([0,0,0,3,2]) + #3: + #layer_number = generate_percentage([0,0,0,1,1]) + #2: + #layer_number = generate_percentage([0,0,0,1,2]) + #1,0: + #layer_number = 5 + #print("x- ",x," y- ",y," layer- ",layer_number) + #for layer in layer_number: + #set_cell(layer, Vector2(x, y), 2, Vector2i(1, 1), 0) + #Dic[str(Vector2(x,y))] = { + #"Layer": layer_number, + #"Placed": false + #} func _process(delta): if Input.is_action_just_released("lclick"): diff --git a/tiles-v3.png b/tiles-v3.png new file mode 100644 index 0000000000000000000000000000000000000000..8dbe439e7fd0234a80bbb38a88193c5f534c9bc5 GIT binary patch literal 1869 zcmZ{lc{JN;7sr3rkXp_t(+)Bb%`r;V)EcRMOU%R?iq~{GwRT#hw%V7@pcoa=8X?q6 zP+E*BN|02It*mz<(w{8U-Fg{%!eH<+pN)e2rHWAoffP6wQLf4J~L7NI$;q1z)^ zEqXX^UZSHT##fQ-+s)34TTk9&neCBEw*;ksFSB-B=Q>%5^Rp$97YBIa_FuH=GzZ;6 z-<&HKUVJE~)kPCq>Wry8XFt{YYQ5a1;YE7q=q$Zczm-?>;+MDVwQ@SolxQCJ6QjcH z^SgC4_4>;Y%Q%B#UKssO^6lI3t@(<$XtrVg(7l}Hh3p?Tc?CKeG;cL5jMp_=1Rms0 z^?9O`8%?ThKPR;0%iZ#jRNgjm)*+X_yyXFt>T)gspI-?r_C(u+Prz-9m3AfX`U!SR z(zthf)Njv?3FF^K{%ZDicM}DbwnP>AhYl~cNSz3tZVKo`m}XkooZoWcGz0H553XH` zsrnIOnZfUeN&#{~{3Hn07b_2h2%_$-@aBUl?)UCNfE$S4ccOZH!hyxqEvJI=Fw0!frFkRim zwM+qD0I40@%9RYrtV{{hAx|>>f%o4K0uXiUhV%cb)=61lL(a)S-K#Dsit3FfFlWZ! zjLz!92XS{Q#MsO>LEI#a2nGSwF(ciNm!yDoSbKUTd#V1vtnZX2zBh{cCN%*a#(ea6 zSjOV|$FB)lIFj6NOZg*#bX@RNW@I^nL_KT-Qr`s{o`Pn=lRVlwh zo?r3OaHEOK`194uLFFNCWRjhO;gGP~O_1?ddA|UC6-|vuC2!~rBh||qHF!ryM{wg* z&mijvY_X`&uSeb@V(6JhW@iNHTY@_uV#ZqU@8xLRnYCS z4M>Ow3`;NLaP4?Sa^}+4Bad?v?3brUTq#tLZuF_&xvOW0Pwx2m7+sfVV_frA@3O-^ zG`FUoUt{kJjyqv~*l`=72cjwyX^9j33f`wFR9E^$50B~)BosEdOdlQX>X8bndq*?M z^!dUbJvf%RLb8njqjl6vv1k`Dr}WB5uv3y^Kmi!VQXc1F`g{<`8azpyAk!bTq~>l% zDWbaVQ)+QhKcj!Pu6|9gg$a0zwDiUjFsdelEFB=KqdMOHB>7_Eye9%_3^&#o#A&)u zb#@n1IPEh+vjol|*~_E@*~%NtNWa24x6?Fy{Y89LOTgx7k)qz}+IdgdU*>W@HJdM@L5@F>g zskN5;5A&kq11H2Y6pd{5B>v%hU0^Mun{4|bxm>mricWbn6^k~T98T?zs zcpI6X9jLkfOg~R!H5ASm9Nb$+8?iq@B}r)f(Q}6$9R|Ms|1j>ph`L{$jw@ zS_KC72uR)Jf{?R`ZcE&;lpSW;l(8}OTFMHZ5uZ;F_Rq6yjp^GaQXjG{QWR1d1wR;i z(~eZ1EFMkw=j9BwyvzGs-$jw?`QO5BcyCZngXt#tm{jjN3BcTrpnzhj9K+m%;uk77 zA=OL0(c{dOPFsRpe^5Yo;kN`)ufkwN1yoI@s5#}aq8Aa7ispj;WdEDhR4<{c&rF@wSWKhj@bdI~eMP@CIM*6`CRXbv1_pf0-MOHMn>Vf8NLta>?qhorx&0pxTNINO?;oUn=t-4qUB0siqY{7AGa&WP4u)T5r|1d9#ZvX%Q literal 0 HcmV?d00001 diff --git a/tiles-v3.png.import b/tiles-v3.png.import new file mode 100644 index 0000000..acb28a5 --- /dev/null +++ b/tiles-v3.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://w1abxk1m0fae" +path="res://.godot/imported/tiles-v3.png-c6fefb34fcf2e018f876a1e8a690296d.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://tiles-v3.png" +dest_files=["res://.godot/imported/tiles-v3.png-c6fefb34fcf2e018f876a1e8a690296d.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/ui/building_icon.gd b/ui/building_icon.gd index 72596df..46b524b 100644 --- a/ui/building_icon.gd +++ b/ui/building_icon.gd @@ -16,17 +16,12 @@ func _on_mouse_handler_hovered() -> void: func _on_mouse_handler_unhovered() -> void: - print(key) - print("DRAG 1") if clicked: - print("DRAG") Triggerer.trigger("drag_building", { "key": key }) clicked = false func _on_mouse_handler_released() -> void: - print("SELECT 1") if clicked: - print("SELECT") Triggerer.trigger("select_building", { "key": key }) clicked = false diff --git a/ui/building_menu.gd b/ui/building_menu.gd index be89a7a..6a8a94b 100644 --- a/ui/building_menu.gd +++ b/ui/building_menu.gd @@ -50,8 +50,6 @@ func swap_to_tab(index): if i > 0: spacers[i - 1].visible = false - - print(icons.map(func(icon): return icon.key)) func _on_building_tab_clicked() -> void: