diff options
| author | tpart <tpart120@proton.me> | 2026-03-11 21:55:18 +0100 |
|---|---|---|
| committer | tpart <tpart120@proton.me> | 2026-03-11 21:56:00 +0100 |
| commit | 0533310feadd076be01e4b1747ab4a7e53fccce8 (patch) | |
| tree | 3fb94f450ea44d051c5058d629f3b2cd6161b9fd | |
| parent | 4a9314f235bd3c556cec4f70177d8f7438d59559 (diff) | |
| download | hurrycurry-0533310feadd076be01e4b1747ab4a7e53fccce8.tar hurrycurry-0533310feadd076be01e4b1747ab4a7e53fccce8.tar.bz2 hurrycurry-0533310feadd076be01e4b1747ab4a7e53fccce8.tar.zst | |
Add map-selector model
| -rw-r--r-- | client/map/tile_factory.gd | 1 | ||||
| -rw-r--r-- | client/map/tiles/button/map.svg | 4 | ||||
| -rw-r--r-- | client/map/tiles/button/map.svg.import | 45 | ||||
| -rw-r--r-- | client/map/tiles/map_selector.res | bin | 0 -> 2788 bytes | |||
| -rw-r--r-- | client/map/tiles/map_selector.tscn | 9 | ||||
| -rw-r--r-- | data/maps/lobby.yaml | 2 |
6 files changed, 60 insertions, 1 deletions
diff --git a/client/map/tile_factory.gd b/client/map/tile_factory.gd index ae8b9d49..aec67c53 100644 --- a/client/map/tile_factory.gd +++ b/client/map/tile_factory.gd @@ -74,6 +74,7 @@ func produce(raw_name: String, position: Vector2i, neighbors: Array, below_tile_ "freezer": return Freezer.new(ctx) "grass": return Grass.new(ctx) "lamp": return Lamp.new(ctx) + "map-selector": return GenericTile.new(ctx, preload("res://map/tiles/map_selector.tscn")) "oven": return Oven.new(ctx) "path": return Path.new(ctx) "rolling-board": return RollingBoard.new(ctx) diff --git a/client/map/tiles/button/map.svg b/client/map/tiles/button/map.svg new file mode 100644 index 00000000..11146ddd --- /dev/null +++ b/client/map/tiles/button/map.svg @@ -0,0 +1,4 @@ +<svg xmlns="http://www.w3.org/2000/svg" height="128px" viewBox="0 -960 960 960" width="128px"> + <rect width="960" height="960" x="0" y="-960" fill="#0053C1"/> + <path fill="#FFFFFF" d="m612-94-263-93-170 69q-30 14-57-3.5T95-173v-558q0-21 12-38t32-24l210-73 263 92 169-69q30-13 57.5 4t27.5 51v565q0 20-12.5 34.5T822-168L612-94Zm-34-112v-484l-196-66v484l196 66Zm60 0 133-43v-492l-133 51v484Zm-449-15 133-51v-484l-133 44v491Zm449-469v484-484Zm-316-66v484-484Z"/> +</svg> diff --git a/client/map/tiles/button/map.svg.import b/client/map/tiles/button/map.svg.import new file mode 100644 index 00000000..c2471747 --- /dev/null +++ b/client/map/tiles/button/map.svg.import @@ -0,0 +1,45 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dnbivk0cko3kn" +path.s3tc="res://.godot/imported/map.svg-83021c6555bc23e5e8a2e0aa8351ba08.s3tc.ctex" +path.etc2="res://.godot/imported/map.svg-83021c6555bc23e5e8a2e0aa8351ba08.etc2.ctex" +metadata={ +"imported_formats": ["s3tc_bptc", "etc2_astc"], +"vram_texture": true +} + +[deps] + +source_file="res://map/tiles/button/map.svg" +dest_files=["res://.godot/imported/map.svg-83021c6555bc23e5e8a2e0aa8351ba08.s3tc.ctex", "res://.godot/imported/map.svg-83021c6555bc23e5e8a2e0aa8351ba08.etc2.ctex"] + +[params] + +compress/mode=2 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=true +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +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=0 +svg/scale=1.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false diff --git a/client/map/tiles/map_selector.res b/client/map/tiles/map_selector.res Binary files differnew file mode 100644 index 00000000..4b25868d --- /dev/null +++ b/client/map/tiles/map_selector.res diff --git a/client/map/tiles/map_selector.tscn b/client/map/tiles/map_selector.tscn new file mode 100644 index 00000000..a91b8cb7 --- /dev/null +++ b/client/map/tiles/map_selector.tscn @@ -0,0 +1,9 @@ +[gd_scene format=3 uid="uid://bsl8lb18f8hcv"] + +[ext_resource type="ArrayMesh" uid="uid://bbfwavihrmf4i" path="res://map/tiles/map_selector.res" id="1_ktcsy"] + +[node name="MapSelector" type="Node3D" unique_id=2017272843] + +[node name="Mesh" type="MeshInstance3D" parent="." unique_id=767071822] +transform = Transform3D(-2.1855694e-08, 0, 0.5, 0, 0.5, 0, -0.5, 0, -2.1855694e-08, 0, 0.525, 0) +mesh = ExtResource("1_ktcsy") diff --git a/data/maps/lobby.yaml b/data/maps/lobby.yaml index a573ce2a..c80c81df 100644 --- a/data/maps/lobby.yaml +++ b/data/maps/lobby.yaml @@ -57,7 +57,7 @@ tiles: "S": floor screen "b": floor button-base button:reject --button=vote-no - "j": floor button-base --button=map-selector + "j": floor button-base map-selector --button=map-selector "d": floor button-base button:accept --button=vote-yes "0": floor crate:rice |