updated tilesets

This commit is contained in:
Shoofle 2024-11-08 09:28:28 -05:00
parent 61b88f0e05
commit 2eb13c0fb3
8 changed files with 177 additions and 1257 deletions

95
scenes/configurator.tscn Normal file
View File

@ -0,0 +1,95 @@
[gd_scene load_steps=8 format=3 uid="uid://dcmols5aypluv"]
[sub_resource type="ButtonGroup" id="ButtonGroup_ylb3j"]
resource_name = "hair"
[sub_resource type="ButtonGroup" id="ButtonGroup_rtd4j"]
[sub_resource type="ButtonGroup" id="ButtonGroup_5ii1a"]
[sub_resource type="ButtonGroup" id="ButtonGroup_cm8wx"]
[sub_resource type="ButtonGroup" id="ButtonGroup_yjpjs"]
[sub_resource type="ButtonGroup" id="ButtonGroup_5h61r"]
[sub_resource type="ButtonGroup" id="ButtonGroup_8lpdf"]
[node name="Configurator" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Panel" type="Panel" parent="."]
layout_mode = 0
offset_right = 571.0
offset_bottom = 314.0
[node name="Loadout" type="BoxContainer" parent="Panel"]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.002
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -2.142
offset_top = 87.0
offset_right = -310.0
offset_bottom = -50.0
grow_horizontal = 2
grow_vertical = 2
vertical = true
[node name="Hair" type="BoxContainer" parent="Panel/Loadout"]
layout_mode = 2
[node name="LongRadio" type="CheckBox" parent="Panel/Loadout/Hair"]
layout_mode = 2
button_group = SubResource("ButtonGroup_ylb3j")
text = "long"
[node name="ShortRadio" type="CheckBox" parent="Panel/Loadout/Hair"]
layout_mode = 2
button_group = SubResource("ButtonGroup_ylb3j")
text = "short"
[node name="Tits" type="BoxContainer" parent="Panel/Loadout"]
layout_mode = 2
[node name="BigTitsRadio" type="CheckBox" parent="Panel/Loadout/Tits"]
layout_mode = 2
button_group = SubResource("ButtonGroup_rtd4j")
text = "big chest"
[node name="SmallTitsRadio" type="CheckBox" parent="Panel/Loadout/Tits"]
layout_mode = 2
button_group = SubResource("ButtonGroup_5ii1a")
text = "small chest"
[node name="Hips" type="BoxContainer" parent="Panel/Loadout"]
layout_mode = 2
[node name="HipsRadio" type="CheckBox" parent="Panel/Loadout/Hips"]
layout_mode = 2
button_group = SubResource("ButtonGroup_cm8wx")
text = "curves"
[node name="CheckBox" type="CheckBox" parent="Panel/Loadout/Hips"]
layout_mode = 2
button_group = SubResource("ButtonGroup_yjpjs")
text = "straight lines"
[node name="Bits" type="BoxContainer" parent="Panel/Loadout"]
layout_mode = 2
[node name="DickRadio" type="CheckBox" parent="Panel/Loadout/Bits"]
layout_mode = 2
button_group = SubResource("ButtonGroup_5h61r")
text = "dick"
[node name="VaginaRadio" type="CheckBox" parent="Panel/Loadout/Bits"]
layout_mode = 2
button_group = SubResource("ButtonGroup_8lpdf")
text = "vagoot"

View File

@ -9,59 +9,41 @@ func _ready() -> void:
func _process(_delta: float) -> void: func _process(_delta: float) -> void:
pass pass
var female_tiles_y_offset = \
[0, # girl on
8, # boy on
-8, # girl off
0, # boy off
0, # city
0, # disco
16, # boy pillow on
0, # girl pillow on
0, # neutral pillow
-8, # girl pillow off
0] # boy pillow off
var male_tiles_y_offset = \
[8, # girl on
0, # boy on
0, # girl off
-8, # boy off
0, # city
0, # disco
0, # boy pillow on
8, # girl pillow on
0, # neutral pillow
0, # girl pillow off
-16] # boy pillow off
func _on_main_character_gender_changed(new_gender: String) -> void: func _on_main_character_gender_changed(new_gender: String) -> void:
for coord in get_used_cells(): for coord in get_used_cells():
var tile_data = get_cell_tile_data(coord) if get_cell_source_id(coord) != 0:
if not tile_data:
continue continue
var tile_type = tile_data.get_custom_data("gender") var atlas_coord = get_cell_atlas_coords(coord)
var arr = tile_type.split(".") var index = floor(atlas_coord.y / 4)
if arr.size() != 3:
continue
var tile_gender = arr[0]
var tile_party = arr[1]
var tile_on = arr[2]
var atlas_coords = get_cell_atlas_coords(coord)
if new_gender == "female": if new_gender == "female":
if tile_gender == "girl" and tile_on == "off": atlas_coord.y += female_tiles_y_offset[index]
if tile_party == "pillow":
atlas_coords.y -= 4 + 4 + 4
set_cell(coord, 6, atlas_coords)
if tile_party == "disco":
atlas_coords.y -= 4
set_cell(coord, 6, atlas_coords)
if tile_gender == "boy" and tile_on == "on":
if tile_party == "pillow":
atlas_coords.y += 4
set_cell(coord, 6, atlas_coords)
if tile_party == "disco":
atlas_coords.y += 4
set_cell(coord, 6, atlas_coords)
if new_gender == "male": if new_gender == "male":
if tile_gender == "girl" and tile_on == "on": atlas_coord.y += male_tiles_y_offset[index]
if tile_party == "pillow":
atlas_coords.y += 4 + 4 + 4
set_cell(coord, 6, atlas_coords)
if tile_party == "disco":
atlas_coords.y += 4
set_cell(coord, 6, atlas_coords)
if tile_gender == "boy" and tile_on == "off":
if tile_party == "pillow":
atlas_coords.y -= 4
set_cell(coord, 6, atlas_coords)
if tile_party == "disco":
atlas_coords.y -= 4
set_cell(coord, 6, atlas_coords)
var female_active_cells = get_used_cells_by_id(-1, Vector2i(0,0))
var female_inactive_cells = get_used_cells_by_id(-1, Vector2i(0,3))
var male_active_cells = get_used_cells_by_id(-1, Vector2i(0,1))
var male_inactive_cells = get_used_cells_by_id(-1, Vector2i(0,4))
if new_gender == "female":
for coord in female_inactive_cells: set_cell(coord, 2, Vector2i(0,0))
for coord in male_active_cells: set_cell(coord, 2, Vector2i(0,4))
if new_gender == "male":
for coord in female_active_cells: set_cell(coord, 2, Vector2i(0,3))
for coord in male_inactive_cells: set_cell(coord, 2, Vector2i(0,1))
set_cell(coord, 0, atlas_coord)

View File

@ -0,0 +1,3 @@
[gd_resource type="ButtonGroup" format=3 uid="uid://crjco1s73xepm"]
[resource]

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 12 KiB

BIN
tilesets/Objects.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 396 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dk1akvov8xwgk"
path="res://.godot/imported/Objects.png-6a2e1506e49313562c3c09041245a506.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://tilesets/Objects.png"
dest_files=["res://.godot/imported/Objects.png-6a2e1506e49313562c3c09041245a506.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

File diff suppressed because it is too large Load Diff