mirror of
https://github.com/tonytins/dressupzack
synced 2025-06-26 00:24:44 -04:00
Switch to C# (#8)
I learned C# primarily for game development but held off switching to it on Godot 3 because it was still rough around edges - crashed way too many times. It seems to be working as it should as of 3.1.1 and that's why I'm rewriting all the GDScript portions in C# as much as possible. However, this does make it incompatible with the Steam version, as of this writing, until the Godot devs decide how they want to publish it in future updates.
This commit is contained in:
parent
25f2212d4d
commit
bb7d4c2d2c
30 changed files with 885 additions and 354 deletions
|
@ -67,7 +67,7 @@ texture = ExtResource( 4 )
|
|||
[node name="Eyes" type="AnimatedSprite" parent="Base"]
|
||||
position = Vector2( 114.227, 63.9224 )
|
||||
frames = SubResource( 2 )
|
||||
frame = 4
|
||||
frame = 13
|
||||
playing = true
|
||||
|
||||
[node name="Mouth" type="AnimatedSprite" parent="Base"]
|
||||
|
|
|
@ -39,7 +39,7 @@ custom_colors/font_color_bg = Color( 0.921569, 0.921569, 0.921569, 1 )
|
|||
custom_colors/font_color_fg = Color( 1, 1, 1, 1 )
|
||||
|
||||
[node name="Pants" type="Tabs" parent="Wordrobe"]
|
||||
visible = false
|
||||
editor/display_folded = true
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_top = 31.0
|
||||
|
@ -76,9 +76,9 @@ margin_bottom = 112.0
|
|||
texture_normal = ExtResource( 6 )
|
||||
|
||||
[node name="RemovePants" type="Button" parent="Wordrobe/Pants/PantsGrid"]
|
||||
margin_top = 116.0
|
||||
margin_right = 106.0
|
||||
margin_bottom = 228.0
|
||||
margin_left = 440.0
|
||||
margin_right = 546.0
|
||||
margin_bottom = 112.0
|
||||
rect_min_size = Vector2( 0, 112 )
|
||||
custom_colors/font_color_disabled = Color( 0, 0, 0, 1 )
|
||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||
|
@ -88,6 +88,8 @@ icon = ExtResource( 7 )
|
|||
flat = true
|
||||
|
||||
[node name="Shirts" type="Tabs" parent="Wordrobe"]
|
||||
editor/display_folded = true
|
||||
visible = false
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_top = 31.0
|
||||
|
@ -204,7 +206,6 @@ margin_bottom = 112.0
|
|||
texture_normal = ExtResource( 20 )
|
||||
|
||||
[node name="Accessoires" type="Tabs" parent="Wordrobe"]
|
||||
editor/display_folded = true
|
||||
visible = false
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
|
|
|
@ -1,20 +1,18 @@
|
|||
[gd_scene load_steps=6 format=2]
|
||||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://src/CreditsScn.gd" type="Script" id=1]
|
||||
[ext_resource path="res://styles/DressUpTheme.res" type="Theme" id=2]
|
||||
[ext_resource path="res://scn/Character.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://scn/PauseScn.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://src/Soundtrack.gd" type="Script" id=5]
|
||||
[ext_resource path="res://styles/DressUpTheme.res" type="Theme" id=1]
|
||||
[ext_resource path="res://scn/Character.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://scn/PauseScn.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://src/Soundtrack.cs" type="Script" id=4]
|
||||
|
||||
[node name="Credits" type="Node"]
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="."]
|
||||
margin_left = 33.0
|
||||
margin_top = 19.0
|
||||
margin_right = 320.0
|
||||
margin_bottom = 206.0
|
||||
theme = ExtResource( 2 )
|
||||
theme = ExtResource( 1 )
|
||||
bbcode_text = "Nathan's Dress Up is a remake of Zack's Dress Up, a flash game created from 2006 to 2009. The character use to be a blue fox named Zack but was changed to a blue fennec named Nathan."
|
||||
text = "Nathan's Dress Up is a remake of Zack's Dress Up, a flash game created from 2006 to 2009. The character use to be a blue fox named Zack but was changed to a blue fennec named Nathan."
|
||||
|
||||
|
@ -24,7 +22,7 @@ anchor_right = 0.5
|
|||
margin_left = -159.0
|
||||
margin_right = 160.0
|
||||
margin_bottom = 586.0
|
||||
theme = ExtResource( 2 )
|
||||
theme = ExtResource( 1 )
|
||||
bbcode_enabled = true
|
||||
bbcode_text = "[center]Created by
|
||||
Anthony Wilcox
|
||||
|
@ -55,17 +53,10 @@ Made with
|
|||
Godot Engine
|
||||
"
|
||||
|
||||
[node name="Character" parent="." instance=ExtResource( 3 )]
|
||||
[node name="Character" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 68.8273, 256.845 )
|
||||
|
||||
[node name="WinDialogs" parent="." instance=ExtResource( 4 )]
|
||||
[node name="WinDialogs" parent="." instance=ExtResource( 3 )]
|
||||
|
||||
[node name="Music" type="AudioStreamPlayer" parent="."]
|
||||
script = ExtResource( 5 )
|
||||
|
||||
[node name="Version" type="Label" parent="."]
|
||||
margin_left = 950.908
|
||||
margin_top = 568.64
|
||||
margin_right = 990.908
|
||||
margin_bottom = 582.64
|
||||
text = "Version"
|
||||
script = ExtResource( 4 )
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
[gd_scene load_steps=8 format=2]
|
||||
|
||||
[ext_resource path="res://src/GameScn.gd" type="Script" id=1]
|
||||
[ext_resource path="res://src/GameScn.cs" type="Script" id=1]
|
||||
[ext_resource path="res://sprites/icrazy_frame.svg" type="Texture" id=2]
|
||||
[ext_resource path="res://sprites/lights.png" type="Texture" id=3]
|
||||
[ext_resource path="res://scn/Clothes.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://src/Soundtrack.gd" type="Script" id=5]
|
||||
[ext_resource path="res://src/Soundtrack.cs" type="Script" id=5]
|
||||
[ext_resource path="res://scn/PauseScn.tscn" type="PackedScene" id=6]
|
||||
[ext_resource path="res://scn/Character.tscn" type="PackedScene" id=7]
|
||||
|
||||
|
|
56
project/scn/LicenseWin.tscn
Normal file
56
project/scn/LicenseWin.tscn
Normal file
|
@ -0,0 +1,56 @@
|
|||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://styles/DressUpTheme.res" type="Theme" id=1]
|
||||
|
||||
[node name="LicenseWin" type="AcceptDialog"]
|
||||
editor/display_folded = true
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -202.0
|
||||
margin_top = -137.5
|
||||
margin_right = 202.0
|
||||
margin_bottom = 137.5
|
||||
theme = ExtResource( 1 )
|
||||
window_title = "KLIC"
|
||||
resizable = true
|
||||
|
||||
[node name="LicenseTxt" type="RichTextLabel" parent="."]
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
margin_left = -194.0
|
||||
margin_top = 8.0
|
||||
margin_right = 194.0
|
||||
margin_bottom = 239.0
|
||||
bbcode_enabled = true
|
||||
bbcode_text = "Nathan's Dress Up is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
Nathan's Dress Up is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with Nathan's Dress Up. If not, see: https://www.gnu.org/licenses/
|
||||
|
||||
[center]##########################[/center]
|
||||
|
||||
Nathan's Dress Up (c) by Anthony Wilcox
|
||||
|
||||
Nathan's Dress Up is licensed under a Creative Commons
|
||||
Attribution-ShareAlike 4.0 International License.
|
||||
|
||||
You should have received a copy of the license along with this work.
|
||||
If not, see <http://creativecommons.org/licenses/by-sa/4.0/>."
|
||||
text = "Nathan's Dress Up is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
Nathan's Dress Up is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with Nathan's Dress Up. If not, see: https://www.gnu.org/licenses/
|
||||
|
||||
##########################
|
||||
|
||||
Nathan's Dress Up (c) by Anthony Wilcox
|
||||
|
||||
Nathan's Dress Up is licensed under a Creative Commons
|
||||
Attribution-ShareAlike 4.0 International License.
|
||||
|
||||
You should have received a copy of the license along with this work.
|
||||
If not, see <http://creativecommons.org/licenses/by-sa/4.0/>."
|
|
@ -1,7 +1,7 @@
|
|||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://styles/DressUpTheme.res" type="Theme" id=1]
|
||||
[ext_resource path="res://src/PauseScn.gd" type="Script" id=2]
|
||||
[ext_resource path="res://src/PauseScn.cs" type="Script" id=2]
|
||||
|
||||
[node name="WinDialogs" type="Control"]
|
||||
anchor_left = 0.5
|
||||
|
@ -148,58 +148,6 @@ margin_right = 65.0
|
|||
margin_bottom = 24.0
|
||||
text = "KMUS"
|
||||
align = 1
|
||||
|
||||
[node name="LicenseWin" type="AcceptDialog" parent="."]
|
||||
editor/display_folded = true
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -202.0
|
||||
margin_top = -137.5
|
||||
margin_right = 202.0
|
||||
margin_bottom = 137.5
|
||||
window_title = "KLIC"
|
||||
resizable = true
|
||||
|
||||
[node name="LicenseTxt" type="RichTextLabel" parent="LicenseWin"]
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
margin_left = -194.0
|
||||
margin_top = 8.0
|
||||
margin_right = 194.0
|
||||
margin_bottom = 238.0
|
||||
bbcode_enabled = true
|
||||
bbcode_text = "Nathan's Dress Up is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
Nathan's Dress Up is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with Nathan's Dress Up. If not, see: https://www.gnu.org/licenses/
|
||||
|
||||
[center]##########################[/center]
|
||||
|
||||
Nathan's Dress Up (c) by Anthony Wilcox
|
||||
|
||||
Nathan's Dress Up is licensed under a Creative Commons
|
||||
Attribution-ShareAlike 4.0 International License.
|
||||
|
||||
You should have received a copy of the license along with this work.
|
||||
If not, see <http://creativecommons.org/licenses/by-sa/4.0/>."
|
||||
text = "Nathan's Dress Up is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
Nathan's Dress Up is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with Nathan's Dress Up. If not, see: https://www.gnu.org/licenses/
|
||||
|
||||
##########################
|
||||
|
||||
Nathan's Dress Up (c) by Anthony Wilcox
|
||||
|
||||
Nathan's Dress Up is licensed under a Creative Commons
|
||||
Attribution-ShareAlike 4.0 International License.
|
||||
|
||||
You should have received a copy of the license along with this work.
|
||||
If not, see <http://creativecommons.org/licenses/by-sa/4.0/>."
|
||||
[connection signal="pressed" from="PauseWin/PauseVbox/SettingsBtn" to="." method="_on_SettingsBtn_pressed"]
|
||||
[connection signal="pressed" from="PauseWin/PauseVbox/ResumeBtn" to="." method="_on_ResumeBtn_pressed"]
|
||||
[connection signal="pressed" from="PauseWin/PauseVbox/ExitBtn" to="." method="_on_ExitBtn_pressed"]
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://src/TitleScn.gd" type="Script" id=1]
|
||||
[ext_resource path="res://src/TitleScn.cs" type="Script" id=1]
|
||||
[ext_resource path="res://styles/DressUpTheme.res" type="Theme" id=2]
|
||||
[ext_resource path="res://sprites/title.svg" type="Texture" id=3]
|
||||
[ext_resource path="res://scn/PauseScn.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://scn/LicenseWin.tscn" type="PackedScene" id=4]
|
||||
|
||||
[node name="Start" type="Node"]
|
||||
script = ExtResource( 1 )
|
||||
|
@ -50,56 +50,7 @@ margin_right = 136.0
|
|||
margin_bottom = 71.0
|
||||
text = "KLIC"
|
||||
|
||||
[node name="ModePanel" type="WindowDialog" parent="MenuRf"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -73.0
|
||||
margin_top = -46.0
|
||||
margin_right = 73.0
|
||||
margin_bottom = 46.0
|
||||
|
||||
[node name="PlayVbox" type="VBoxContainer" parent="MenuRf/ModePanel"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = 5.0
|
||||
margin_top = 5.0
|
||||
margin_right = -5.0
|
||||
margin_bottom = -5.0
|
||||
|
||||
[node name="ModeLbl" type="Label" parent="MenuRf/ModePanel/PlayVbox"]
|
||||
margin_right = 136.0
|
||||
margin_bottom = 14.0
|
||||
text = "KGMO"
|
||||
align = 1
|
||||
|
||||
[node name="ModernBtn" type="Button" parent="MenuRf/ModePanel/PlayVbox"]
|
||||
margin_top = 18.0
|
||||
margin_right = 136.0
|
||||
margin_bottom = 38.0
|
||||
text = "Modern"
|
||||
|
||||
[node name="ClassicBtn" type="Button" parent="MenuRf/ModePanel/PlayVbox"]
|
||||
margin_top = 42.0
|
||||
margin_right = 136.0
|
||||
margin_bottom = 62.0
|
||||
text = "KCLS"
|
||||
|
||||
[node name="WinDialogs" parent="." instance=ExtResource( 4 )]
|
||||
margin_left = 97.0
|
||||
margin_top = 37.0
|
||||
margin_right = 97.0
|
||||
margin_bottom = 37.0
|
||||
|
||||
[node name="Version" type="Label" parent="."]
|
||||
margin_left = 950.908
|
||||
margin_top = 568.64
|
||||
margin_right = 990.908
|
||||
margin_bottom = 582.64
|
||||
text = "Version"
|
||||
[node name="LicenseWin" parent="." instance=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"]
|
||||
[connection signal="pressed" from="MenuRf/ModePanel/PlayVbox/ModernBtn" to="." method="_on_ModernBtn_pressed"]
|
||||
[connection signal="pressed" from="MenuRf/ModePanel/PlayVbox/ClassicBtn" to="." method="_on_ClassicBtn_pressed"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue