1
0
Fork 0
mirror of https://github.com/tonytins/dressupzack synced 2025-05-08 06:14:48 -04:00

Change clothes with if statements

Migrating over changing clothes from bindings over to if statements using is_pressed(). This should make it a lot more easier to maintaing because the bindings started to feel like overkill and cluttered up the code when they were only tasked to do one thing.

- DJ shorts has been redone
- Camera was renamed to CanonCam
- Renamed ModernScn to GameScn
- Removed RefRect
This commit is contained in:
Anthony Wilcox 2019-05-05 12:07:27 -04:00
parent 2ac38db54d
commit 023f6ec90e
9 changed files with 269 additions and 90 deletions

View file

@ -4,7 +4,7 @@
[ext_resource path="res://sprites/dressup_wardrobe.svg" type="Texture" id=2]
[ext_resource path="res://sprites/lights.png" type="Texture" id=3]
[ext_resource path="res://sprites/jeans.svg" type="Texture" id=4]
[ext_resource path="res://sprites/dj_shorts.png" type="Texture" id=5]
[ext_resource path="res://sprites/dj_shorts.svg" type="Texture" id=5]
[ext_resource path="res://sprites/sweat_pants.svg" type="Texture" id=6]
[ext_resource path="res://sprites/blue_camo_jeans.svg" type="Texture" id=7]
[ext_resource path="res://sprites/beat_up_jeans.svg" type="Texture" id=8]
@ -50,68 +50,60 @@ texture = ExtResource( 2 )
position = Vector2( 646.371, 187.333 )
texture = ExtResource( 3 )
[node name="RefRect" type="ReferenceRect" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
[node name="Wordrobe" type="TabContainer" parent="."]
margin_left = 323.421
margin_top = 45.0
margin_right = -38.579
margin_bottom = -30.0
[node name="Wordrobe" type="TabContainer" parent="RefRect"]
margin_top = 18.0
margin_right = 633.0
margin_bottom = 510.0
margin_top = 63.0
margin_right = 956.421
margin_bottom = 555.0
custom_styles/tab_fg = SubResource( 1 )
custom_styles/tab_bg = SubResource( 2 )
custom_styles/panel = SubResource( 3 )
custom_colors/font_color_bg = Color( 1, 1, 1, 1 )
custom_colors/font_color_fg = Color( 0.980392, 0.992157, 0.768627, 1 )
[node name="Pants" type="Tabs" parent="RefRect/Wordrobe"]
visible = false
[node name="Pants" type="Tabs" parent="Wordrobe"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_top = 29.0
custom_constants/hseparation = 0
[node name="PantsGrid" type="GridContainer" parent="RefRect/Wordrobe/Pants"]
[node name="PantsGrid" type="GridContainer" parent="Wordrobe/Pants"]
margin_left = 42.0
margin_top = 13.0
margin_right = 600.0
margin_bottom = 425.0
columns = 5
[node name="Jeans" type="TextureButton" parent="RefRect/Wordrobe/Pants/PantsGrid"]
[node name="Jeans" type="TextureButton" parent="Wordrobe/Pants/PantsGrid"]
margin_right = 118.0
margin_bottom = 112.0
texture_normal = ExtResource( 4 )
[node name="DJ Shorts" type="TextureButton" parent="RefRect/Wordrobe/Pants/PantsGrid"]
[node name="DJShorts" type="TextureButton" parent="Wordrobe/Pants/PantsGrid"]
margin_left = 122.0
margin_right = 228.0
margin_bottom = 112.0
texture_normal = ExtResource( 5 )
[node name="Sweats" type="TextureButton" parent="RefRect/Wordrobe/Pants/PantsGrid"]
[node name="Sweats" type="TextureButton" parent="Wordrobe/Pants/PantsGrid"]
margin_left = 232.0
margin_right = 338.0
margin_bottom = 112.0
texture_normal = ExtResource( 6 )
[node name="Blue Camo Jeans" type="TextureButton" parent="RefRect/Wordrobe/Pants/PantsGrid"]
[node name="BlueCamo Jeans" type="TextureButton" parent="Wordrobe/Pants/PantsGrid"]
margin_left = 342.0
margin_right = 448.0
margin_bottom = 112.0
texture_normal = ExtResource( 7 )
[node name="Beat Up Jeans" type="TextureButton" parent="RefRect/Wordrobe/Pants/PantsGrid"]
[node name="BeatUpJeans" type="TextureButton" parent="Wordrobe/Pants/PantsGrid"]
margin_left = 452.0
margin_right = 558.0
margin_bottom = 112.0
texture_normal = ExtResource( 8 )
[node name="Remove Pants" type="Button" parent="RefRect/Wordrobe/Pants/PantsGrid"]
[node name="RemovePants" type="Button" parent="Wordrobe/Pants/PantsGrid"]
margin_top = 116.0
margin_right = 118.0
margin_bottom = 234.0
@ -123,83 +115,83 @@ custom_colors/font_color_pressed = Color( 0, 0, 0, 1 )
icon = ExtResource( 9 )
flat = true
[node name="Shirts" type="Tabs" parent="RefRect/Wordrobe"]
[node name="Shirts" type="Tabs" parent="Wordrobe"]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
margin_top = 29.0
[node name="ShirtsGrid" type="GridContainer" parent="RefRect/Wordrobe/Shirts"]
[node name="ShirtsGrid" type="GridContainer" parent="Wordrobe/Shirts"]
margin_left = 82.0
margin_top = 8.0
margin_right = 556.0
margin_bottom = 441.0
columns = 5
[node name="Sweatshirt" type="TextureButton" parent="RefRect/Wordrobe/Shirts/ShirtsGrid"]
[node name="Sweatshirt" type="TextureButton" parent="Wordrobe/Shirts/ShirtsGrid"]
margin_right = 118.0
margin_bottom = 115.0
texture_normal = ExtResource( 10 )
[node name="DJ Shirt" type="TextureButton" parent="RefRect/Wordrobe/Shirts/ShirtsGrid"]
[node name="DJShirt" type="TextureButton" parent="Wordrobe/Shirts/ShirtsGrid"]
margin_left = 122.0
margin_right = 207.0
margin_bottom = 115.0
texture_normal = ExtResource( 11 )
[node name="Raw" type="TextureButton" parent="RefRect/Wordrobe/Shirts/ShirtsGrid"]
[node name="Raw" type="TextureButton" parent="Wordrobe/Shirts/ShirtsGrid"]
margin_left = 211.0
margin_right = 296.0
margin_bottom = 115.0
texture_normal = ExtResource( 12 )
[node name="Atomic" type="TextureButton" parent="RefRect/Wordrobe/Shirts/ShirtsGrid"]
[node name="Atomic" type="TextureButton" parent="Wordrobe/Shirts/ShirtsGrid"]
margin_left = 300.0
margin_right = 385.0
margin_bottom = 115.0
texture_normal = ExtResource( 13 )
[node name="Z Shirt" type="TextureButton" parent="RefRect/Wordrobe/Shirts/ShirtsGrid"]
[node name="ZShirt" type="TextureButton" parent="Wordrobe/Shirts/ShirtsGrid"]
margin_left = 389.0
margin_right = 474.0
margin_bottom = 115.0
texture_normal = ExtResource( 14 )
[node name="Biker Jacket" type="TextureButton" parent="RefRect/Wordrobe/Shirts/ShirtsGrid"]
[node name="BikerJacket" type="TextureButton" parent="Wordrobe/Shirts/ShirtsGrid"]
margin_top = 119.0
margin_right = 118.0
margin_bottom = 234.0
texture_normal = ExtResource( 15 )
[node name="NL Jacket" type="TextureButton" parent="RefRect/Wordrobe/Shirts/ShirtsGrid"]
[node name="NLJacket" type="TextureButton" parent="Wordrobe/Shirts/ShirtsGrid"]
margin_left = 122.0
margin_top = 119.0
margin_right = 207.0
margin_bottom = 234.0
texture_normal = ExtResource( 16 )
[node name="Train Hoodie" type="TextureButton" parent="RefRect/Wordrobe/Shirts/ShirtsGrid"]
[node name="TrainHoodie" type="TextureButton" parent="Wordrobe/Shirts/ShirtsGrid"]
margin_left = 211.0
margin_top = 119.0
margin_right = 296.0
margin_bottom = 234.0
texture_normal = ExtResource( 17 )
[node name="Korm Shirt" type="TextureButton" parent="RefRect/Wordrobe/Shirts/ShirtsGrid"]
[node name="KormShirt" type="TextureButton" parent="Wordrobe/Shirts/ShirtsGrid"]
margin_left = 300.0
margin_top = 119.0
margin_right = 385.0
margin_bottom = 234.0
texture_normal = ExtResource( 18 )
[node name="What's New Shirt" type="TextureButton" parent="RefRect/Wordrobe/Shirts/ShirtsGrid"]
[node name="WhatsNewShirt" type="TextureButton" parent="Wordrobe/Shirts/ShirtsGrid"]
margin_left = 389.0
margin_top = 119.0
margin_right = 474.0
margin_bottom = 234.0
texture_normal = ExtResource( 19 )
[node name="Remove Shirt" type="Button" parent="RefRect/Wordrobe/Shirts/ShirtsGrid"]
[node name="RemoveShirt" type="Button" parent="Wordrobe/Shirts/ShirtsGrid"]
margin_top = 238.0
margin_right = 118.0
margin_bottom = 356.0
@ -211,60 +203,61 @@ custom_colors/font_color_pressed = Color( 0, 0, 0, 1 )
icon = ExtResource( 9 )
flat = true
[node name="Underwear" type="Tabs" parent="RefRect/Wordrobe"]
[node name="Underwear" type="Tabs" parent="Wordrobe"]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
margin_top = 29.0
[node name="UndiesGrid" type="GridContainer" parent="RefRect/Wordrobe/Underwear"]
[node name="UndiesGrid" type="GridContainer" parent="Wordrobe/Underwear"]
margin_left = 68.0
margin_top = 10.0
margin_right = 585.0
margin_bottom = 451.0
columns = 5
[node name="OwO Censor" type="TextureButton" parent="RefRect/Wordrobe/Underwear/UndiesGrid"]
[node name="OwOCensor" type="TextureButton" parent="Wordrobe/Underwear/UndiesGrid"]
margin_right = 106.0
margin_bottom = 112.0
texture_normal = ExtResource( 20 )
[node name="Briefs" type="TextureButton" parent="RefRect/Wordrobe/Underwear/UndiesGrid"]
[node name="Briefs" type="TextureButton" parent="Wordrobe/Underwear/UndiesGrid"]
margin_left = 110.0
margin_right = 216.0
margin_bottom = 112.0
texture_normal = ExtResource( 21 )
[node name="ZBriefs" type="TextureButton" parent="RefRect/Wordrobe/Underwear/UndiesGrid"]
[node name="ZBriefs" type="TextureButton" parent="Wordrobe/Underwear/UndiesGrid"]
margin_left = 220.0
margin_right = 326.0
margin_bottom = 112.0
texture_normal = ExtResource( 22 )
[node name="Fundosi" type="TextureButton" parent="RefRect/Wordrobe/Underwear/UndiesGrid"]
[node name="Fundosi" type="TextureButton" parent="Wordrobe/Underwear/UndiesGrid"]
margin_left = 330.0
margin_right = 436.0
margin_bottom = 112.0
texture_normal = ExtResource( 23 )
[node name="Accessoires" type="Tabs" parent="RefRect/Wordrobe"]
[node name="Accessoires" type="Tabs" parent="Wordrobe"]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
margin_top = 29.0
[node name="AccessoiresGrid" type="GridContainer" parent="RefRect/Wordrobe/Accessoires"]
[node name="AccessoiresGrid" type="GridContainer" parent="Wordrobe/Accessoires"]
margin_left = 85.0
margin_top = 14.0
margin_right = 556.0
margin_bottom = 458.0
columns = 5
[node name="Camera" type="TextureButton" parent="RefRect/Wordrobe/Accessoires/AccessoiresGrid"]
[node name="CanonCam" type="TextureButton" parent="Wordrobe/Accessoires/AccessoiresGrid"]
margin_right = 85.0
margin_bottom = 118.0
texture_normal = ExtResource( 24 )
[node name="Remove Accessory" type="Button" parent="RefRect/Wordrobe/Accessoires/AccessoiresGrid"]
[node name="RemoveAccessory" type="Button" parent="Wordrobe/Accessoires/AccessoiresGrid"]
margin_left = 89.0
margin_right = 207.0
margin_bottom = 118.0
@ -290,7 +283,7 @@ margin_right = -310.753
margin_bottom = -30.9396
[node name="Undies" type="Sprite" parent="Body"]
position = Vector2( 57.9419, 159.296 )
position = Vector2( 56.9419, 154.296 )
texture = ExtResource( 21 )
[node name="Bottom" type="Sprite" parent="Body"]
@ -304,26 +297,22 @@ texture = ExtResource( 27 )
[node name="Accessory" type="Sprite" parent="Body"]
position = Vector2( 65.0597, 65.3242 )
texture = ExtResource( 27 )
[connection signal="pressed" from="RefRect/Wordrobe/Pants/PantsGrid/Jeans" to="." method="_on_Jeans_pressed"]
[connection signal="pressed" from="RefRect/Wordrobe/Pants/PantsGrid/DJ Shorts" to="." method="_on_DJ_Shorts_pressed"]
[connection signal="pressed" from="RefRect/Wordrobe/Pants/PantsGrid/Sweats" to="." method="_on_Sweats_pressed"]
[connection signal="pressed" from="RefRect/Wordrobe/Pants/PantsGrid/Blue Camo Jeans" to="." method="_on_Blue_Camo_Jeans_pressed"]
[connection signal="pressed" from="RefRect/Wordrobe/Pants/PantsGrid/Beat Up Jeans" to="." method="_on_Beat_Up_Jeans_pressed"]
[connection signal="pressed" from="RefRect/Wordrobe/Pants/PantsGrid/Remove Pants" to="." method="_on_Remove_Pants_pressed"]
[connection signal="pressed" from="RefRect/Wordrobe/Shirts/ShirtsGrid/Sweatshirt" to="." method="_on_Sweatshirt_pressed"]
[connection signal="pressed" from="RefRect/Wordrobe/Shirts/ShirtsGrid/DJ Shirt" to="." method="_on_DJ_Shirt_pressed"]
[connection signal="pressed" from="RefRect/Wordrobe/Shirts/ShirtsGrid/Raw" to="." method="_on_Raw_pressed"]
[connection signal="pressed" from="RefRect/Wordrobe/Shirts/ShirtsGrid/Atomic" to="." method="_on_Atomic_pressed"]
[connection signal="pressed" from="RefRect/Wordrobe/Shirts/ShirtsGrid/Z Shirt" to="." method="_on_Z_Shirt_pressed"]
[connection signal="pressed" from="RefRect/Wordrobe/Shirts/ShirtsGrid/Biker Jacket" to="." method="_on_Biker_Jacket_pressed"]
[connection signal="pressed" from="RefRect/Wordrobe/Shirts/ShirtsGrid/NL Jacket" to="." method="_on_NL_Jacket_pressed"]
[connection signal="pressed" from="RefRect/Wordrobe/Shirts/ShirtsGrid/Train Hoodie" to="." method="_on_Train_Hoodie_pressed"]
[connection signal="pressed" from="RefRect/Wordrobe/Shirts/ShirtsGrid/Korm Shirt" to="." method="_on_Korm_Shirt_pressed"]
[connection signal="pressed" from="RefRect/Wordrobe/Shirts/ShirtsGrid/What's New Shirt" to="." method="_on_Whats_New_Shirt_pressed"]
[connection signal="pressed" from="RefRect/Wordrobe/Shirts/ShirtsGrid/Remove Shirt" to="." method="_on_Remove_Shirt_pressed"]
[connection signal="pressed" from="RefRect/Wordrobe/Underwear/UndiesGrid/OwO Censor" to="." method="_on_OwO_Censor_pressed"]
[connection signal="pressed" from="RefRect/Wordrobe/Underwear/UndiesGrid/Briefs" to="." method="_on_Briefs_pressed"]
[connection signal="pressed" from="RefRect/Wordrobe/Underwear/UndiesGrid/ZBriefs" to="." method="_on_ZBriefs_pressed"]
[connection signal="pressed" from="RefRect/Wordrobe/Underwear/UndiesGrid/Fundosi" to="." method="_on_Fundosi_pressed"]
[connection signal="pressed" from="RefRect/Wordrobe/Accessoires/AccessoiresGrid/Camera" to="." method="_on_Camera_pressed"]
[connection signal="pressed" from="RefRect/Wordrobe/Accessoires/AccessoiresGrid/Remove Accessory" to="." method="_on_Remove_Accessory_pressed"]
[connection signal="pressed" from="Wordrobe/Pants/PantsGrid/BlueCamo Jeans" to="." method="_on_Blue_Camo_Jeans_pressed"]
[connection signal="pressed" from="Wordrobe/Pants/PantsGrid/BeatUpJeans" to="." method="_on_Beat_Up_Jeans_pressed"]
[connection signal="pressed" from="Wordrobe/Pants/PantsGrid/RemovePants" to="." method="_on_Remove_Pants_pressed"]
[connection signal="pressed" from="Wordrobe/Shirts/ShirtsGrid/Sweatshirt" to="." method="_on_Sweatshirt_pressed"]
[connection signal="pressed" from="Wordrobe/Shirts/ShirtsGrid/DJShirt" to="." method="_on_DJ_Shirt_pressed"]
[connection signal="pressed" from="Wordrobe/Shirts/ShirtsGrid/Raw" to="." method="_on_Raw_pressed"]
[connection signal="pressed" from="Wordrobe/Shirts/ShirtsGrid/Atomic" to="." method="_on_Atomic_pressed"]
[connection signal="pressed" from="Wordrobe/Shirts/ShirtsGrid/ZShirt" to="." method="_on_Z_Shirt_pressed"]
[connection signal="pressed" from="Wordrobe/Shirts/ShirtsGrid/BikerJacket" to="." method="_on_Biker_Jacket_pressed"]
[connection signal="pressed" from="Wordrobe/Shirts/ShirtsGrid/NLJacket" to="." method="_on_NL_Jacket_pressed"]
[connection signal="pressed" from="Wordrobe/Shirts/ShirtsGrid/TrainHoodie" to="." method="_on_Train_Hoodie_pressed"]
[connection signal="pressed" from="Wordrobe/Shirts/ShirtsGrid/KormShirt" to="." method="_on_Korm_Shirt_pressed"]
[connection signal="pressed" from="Wordrobe/Shirts/ShirtsGrid/WhatsNewShirt" to="." method="_on_Whats_New_Shirt_pressed"]
[connection signal="pressed" from="Wordrobe/Shirts/ShirtsGrid/RemoveShirt" to="." method="_on_Remove_Shirt_pressed"]
[connection signal="pressed" from="Wordrobe/Underwear/UndiesGrid/OwOCensor" to="." method="_on_OwO_Censor_pressed"]
[connection signal="pressed" from="Wordrobe/Underwear/UndiesGrid/Briefs" to="." method="_on_Briefs_pressed"]
[connection signal="pressed" from="Wordrobe/Underwear/UndiesGrid/ZBriefs" to="." method="_on_ZBriefs_pressed"]
[connection signal="pressed" from="Wordrobe/Underwear/UndiesGrid/Fundosi" to="." method="_on_Fundosi_pressed"]
[connection signal="pressed" from="Wordrobe/Accessoires/AccessoiresGrid/RemoveAccessory" to="." method="_on_Remove_Accessory_pressed"]

View file

@ -1,9 +1,8 @@
[gd_scene load_steps=5 format=2]
[gd_scene load_steps=4 format=2]
[ext_resource path="res://src/TitleScn.gd" type="Script" id=1]
[ext_resource path="res://sprites/title.svg" type="Texture" id=2]
[ext_resource path="res://scn/WinDialogs.tscn" type="PackedScene" id=3]
[ext_resource path="res://src/Soundtrack.gd" type="Script" id=4]
[node name="Start" type="Node"]
script = ExtResource( 1 )
@ -87,9 +86,6 @@ margin_left = 97.0
margin_top = 37.0
margin_right = 97.0
margin_bottom = 37.0
[node name="Music" type="AudioStreamPlayer" parent="."]
script = ExtResource( 4 )
[connection signal="pressed" from="MenuRf/StartVbox/PlayBtn" to="." method="_on_PlayBtn_pressed"]
[connection signal="pressed" from="MenuRf/StartVbox/CreditsBtn" to="." method="_on_CreditsBtn_pressed"]
[connection signal="pressed" from="MenuRf/StartVbox/LicenseBtn" to="." method="_on_LicenseBtn_pressed"]

View file

@ -0,0 +1,149 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
id="svg815"
width="106"
height="112"
viewBox="0 0 106 112"
sodipodi:docname="dj_shorts.svg"
inkscape:version="0.92.3 (2405546, 2018-03-11)">
<metadata
id="metadata821">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs819" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1001"
id="namedview817"
showgrid="false"
inkscape:zoom="10.202541"
inkscape:cx="63.855679"
inkscape:cy="78.557618"
inkscape:window-x="-9"
inkscape:window-y="-9"
inkscape:window-maximized="1"
inkscape:current-layer="layer3"
inkscape:pagecheckerboard="true"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0" />
<g
inkscape:groupmode="layer"
id="layer1"
inkscape:label="Original"
transform="translate(0.60396188,-1.5247525)"
style="display:inline"
sodipodi:insensitive="true" />
<g
inkscape:groupmode="layer"
id="layer3"
inkscape:label="Color">
<path
style="opacity:1;fill:#0000ff;fill-opacity:1;stroke:none;stroke-width:2.64566922;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 34.4447,14.931388 C 29.720644,11.370567 13.57583,72.83923 11.485249,83.86308 c -0.796543,4.20025 37.728541,13.054932 42.989999,0.275532 2.572162,-6.24744 13.861385,-39.089108 13.861385,-39.089108 0,0 -10.724331,38.354248 -5.128712,43.663368 4.527582,4.29576 34.983259,-2.41573 36.732673,-9.42574 C 102.66076,68.387252 96.65377,16.078352 95.643564,8.1782169 95.385101,6.1569519 92.505753,3.7763701 91.200954,5.3415589 81.345543,17.163745 43.301389,21.607237 34.4447,14.931388 Z"
id="path842-9"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ssscsssss" />
<path
style="fill:#ffffff;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 28.835569,26.074735 c 7.560103,23.666394 37.20214,24.101791 37.20214,24.101791 l -2.703816,11.830238 c 0,0 -37.056397,-7.153127 -38.476332,-23.905761 -0.356605,-4.207284 1.637558,-19.352888 3.978008,-12.026268 z"
id="path854"
inkscape:connector-curvature="0"
sodipodi:nodetypes="sccss" />
<path
style="fill:#ffffff;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 24.254346,44.833977 c 7.560103,23.666394 36.516036,20.45146 36.516036,20.45146 l -2.84243,11.55301 c 0,0 -32.610284,-6.935031 -37.790228,-20.25543 -1.504021,-3.867641 1.776172,-19.07566 4.116622,-11.74904 z"
id="path854-2"
inkscape:connector-curvature="0"
sodipodi:nodetypes="sccas" />
<path
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 67.50495,49.623762 c 0,0 26.680952,-6.998162 31.188119,-15.663366 1.949711,-3.748386 0.587416,4.47474 0.831683,9.148514 0.318216,6.08876 -34.099009,17.603961 -34.099009,17.603961 z"
id="path938"
inkscape:connector-curvature="0"
sodipodi:nodetypes="csscc" />
<path
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1.06605935px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 64.332489,67.435529 c 0,0 29.511212,-7.404035 35.44475,-15.663366 2.468641,-3.436279 -0.19874,6.097672 1.001951,10.257425 1.94564,6.740614 -38.809683,14.554456 -38.809683,14.554456 z"
id="path938-9"
inkscape:connector-curvature="0"
sodipodi:nodetypes="csscc" />
</g>
<g
inkscape:groupmode="layer"
id="layer2"
inkscape:label="Re-ink"
style="display:inline">
<path
style="fill:none;stroke:#000000;stroke-width:2.5999999;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 34.052641,14.049255 C 30.426972,9.3747839 13.57583,72.349155 11.485249,83.373002 10.688706,87.573255 49.21379,96.918009 54.475248,84.138614 57.04741,77.891169 68.336633,45.049505 68.336633,45.049505 c 0,0 -10.724331,38.354249 -5.128712,43.663366 4.527582,4.295765 34.983259,-2.415733 36.732673,-9.425742 C 102.66076,68.387255 96.66427,16.077003 95.643564,8.1782178 95.091057,3.9026122 91.285705,4.1044003 85.418081,9.5561956 79.550457,15.007991 40.066901,21.803268 34.052641,14.049255 Z"
id="path842"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ssscssszs" />
<path
style="fill:none;stroke:#000000;stroke-width:2.5999999;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 67.504951,47.128713 c 0,0 3.999326,-8.830457 4.158415,-15.386139 0.159089,-6.555682 -2.495049,-17.188119 -2.495049,-17.188119"
id="path957"
inkscape:connector-curvature="0"
sodipodi:nodetypes="czc" />
<ellipse
style="opacity:1;fill:#ffff00;fill-opacity:1;stroke:#000000;stroke-width:1.51181102;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path852"
cx="66.488861"
cy="21.361532"
rx="7.6451545"
ry="5.6358509" />
<path
style="fill:#ff0000;fill-opacity:1;stroke:#000000;stroke-width:1.51181102;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 27.235088,27.527733 C 18.253381,26.665769 5.4320913,49.597184 18.614856,53.99144 c 12.991966,4.330655 43.94592,-17.067986 47.740585,-22.315637 -1.835821,-2.596141 -5.694488,-6.6466 -7.762376,-9.009901 -3.875759,2.600135 -28.365736,21.34457 -34.104781,18.475047 -2.028226,-1.014113 1.80693,-11.921442 2.746804,-13.613216 z"
id="path844"
inkscape:connector-curvature="0"
sodipodi:nodetypes="csccsc" />
<path
style="fill:#ff0000;fill-opacity:1;stroke:#000000;stroke-width:1.5186137;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 58.707896,21.043134 c -6.86408,14.982581 55.765564,33.20927 45.638714,-5.750085 -1.54752,-7.1735659 -7.430997,-8.3143675 -9.836898,-9.3740972 -0.637929,4.6451152 3.216803,11.5036772 2.634997,17.5760972 -0.581806,6.07242 -22.848135,10.178732 -23.09001,-1.41231 -0.331483,3.253131 -6.569759,5.839391 -9.542442,4.366336 -1.904124,-0.943552 -4.487512,-3.937729 -5.804361,-5.405941 z"
id="path850"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccczcsc" />
<path
style="fill:#ff0000;fill-opacity:1;stroke:#000000;stroke-width:0.5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 45.917706,17.152095 c -2.80724,-0.03648 -14.452359,2.531073 -14.452359,2.531073 l -1.247525,2.633664 c 0,0 15.001373,-3.95413 18.749389,-4.333054 3.748016,-0.378924 -0.242265,-0.795202 -3.049505,-0.831683 z"
id="path959"
inkscape:connector-curvature="0"
sodipodi:nodetypes="zcczz" />
<path
style="fill:#ff0000;fill-opacity:1;stroke:#000000;stroke-width:0.5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 84.772232,11.287132 c 2.80724,-0.03648 11.021841,5.863576 11.021841,5.863576 l 1.247525,2.633664 c 0,0 -11.570855,-7.286633 -15.318871,-7.665557 -3.748016,-0.378925 0.242265,-0.795203 3.049505,-0.831683 z"
id="path959-8"
inkscape:connector-curvature="0"
sodipodi:nodetypes="zcczz" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 8.2 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/dj_shorts.svg-e17b87622cd4d462498c5bb9deda7dbb.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprites/dj_shorts.svg"
dest_files=[ "res://.import/dj_shorts.svg-e17b87622cd4d462498c5bb9deda7dbb.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
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View file

@ -76,7 +76,7 @@
height="519.91699"
x="-52.601696"
y="3.9362619"
ry="41.281254" />
ry="31.017717" />
<rect
style="opacity:1;fill:#0099ff;fill-opacity:1;stroke:#000000;stroke-width:3.15624547;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect1403"
@ -84,14 +84,14 @@
height="482.91278"
x="-44.312817"
y="27.699308"
ry="32.713448" />
ry="24.818422" />
<rect
style="opacity:1;fill:#1e3656;fill-opacity:1;stroke:#000000;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
style="opacity:1;fill:#1e3656;fill-opacity:1;stroke:#000000;stroke-width:4.14822292;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect1401"
width="315.5405"
height="33.731777"
x="126.87943"
y="15.797715"
ry="8.2050285" />
width="612.74677"
height="33.212002"
x="-20.5812"
y="16.057602"
ry="9.6562872" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

View file

@ -10,6 +10,20 @@ onready var accessory = load("res://sprites/tops_placeholder.png")
# Underwear cam be suggestive but never lewd.
onready var undies = load("res://sprites/briefs.svg")
func _process(delta):
if $Wordrobe/Accessoires/AccessoiresGrid/CanonCam.is_pressed() == true:
change_accessoires(load("res://sprites/camera.png"))
if $Wordrobe/Pants/PantsGrid/Jeans.is_pressed() == true:
change_bottoms(load("res://sprites/jeans.svg"))
if $Wordrobe/Pants/PantsGrid/Sweats.is_pressed() == true:
change_bottoms(load("res://sprites/sweat_pants.svg"))
if $Wordrobe/Pants/PantsGrid/DJShorts.is_pressed() == true:
change_bottoms(load("res://sprites/dj_shorts.svg"))
func change_bottoms(new_bottom):
bottoms = new_bottom
@ -51,10 +65,10 @@ func _on_Remove_Accessory_pressed():
change_accessoires(null)
func _on_DJ_Shorts_pressed():
change_bottoms(load("res://sprites/dj_shorts.png"))
change_bottoms(load("res://sprites/dj_shorts.svg"))
func _on_ZBriefs_pressed():
change_undies(load("res://sprites/z_briefs.png"))
change_undies(load("res://sprites/z_briefs.svg"))
func _on_Briefs_pressed():
change_undies(load("res://sprites/briefs.svg"))

View file

@ -12,6 +12,6 @@ func switch_scenes(new_mode):
if new_mode == "classic":
get_tree().change_scene("res://scn/ClassicScn.tscn")
elif new_mode == "modern":
get_tree().change_scene("res://scn/ModernScn.tscn")
get_tree().change_scene("res://scn/GameScn.tscn")
elif new_mode == "title":
get_tree().change_scene("res://scn/TitleScn.tscn")

View file

@ -5,7 +5,7 @@ const tracks = [
'together_again',
'at_the_lake',
]
# Called when the node enters the scene tree for the first time.
func _ready():
connect("finished", self, "play_random_song")
play_random_song()
@ -15,8 +15,5 @@ func play_random_song():
var rand_db = randi() % tracks.size()
var audiostream = load('res://music/' + tracks[rand_db] + '.ogg')
set_stream(audiostream)
play()
stream = audiostream
play()