1
0
Fork 0
mirror of https://github.com/tonytins/dressupzack synced 2025-06-26 00:24:44 -04:00

Modular character design WIP

This commit is contained in:
Anthony Foxclaw 2020-07-15 06:11:01 -04:00
parent cc051276d4
commit b6c0ca0855
40 changed files with 1299 additions and 668 deletions

View file

@ -1,10 +1,10 @@
[gd_scene load_steps=32 format=2]
[ext_resource path="res://scripts/characterBase.gd" type="Script" id=1]
[ext_resource path="res://sprites/character/shadow.svg" type="Texture" id=1]
[ext_resource path="res://sprites/character/tail/tail0.svg" type="Texture" id=2]
[ext_resource path="res://sprites/character/tail/tail1.svg" type="Texture" id=3]
[ext_resource path="res://sprites/character/tail/tail2.svg" type="Texture" id=4]
[ext_resource path="res://sprites/character_base.svg" type="Texture" id=5]
[ext_resource path="res://sprites/character_base_legs.svg" type="Texture" id=5]
[ext_resource path="res://sprites/character/eyes/eyes1.png" type="Texture" id=6]
[ext_resource path="res://sprites/character/eyes/eyes2.png" type="Texture" id=7]
[ext_resource path="res://sprites/character/eyes/eyes3.png" type="Texture" id=8]
@ -23,13 +23,37 @@
[ext_resource path="res://sprites/character/mouth/mouth9.png" type="Texture" id=21]
[ext_resource path="res://sprites/character/mouth/mouth10.png" type="Texture" id=22]
[ext_resource path="res://sprites/character/mouth/mouth12.png" type="Texture" id=23]
[ext_resource path="res://sprites/clothes/briefs.svg" type="Texture" id=24]
[ext_resource path="res://sprites/clothes/blank_bottom.png" type="Texture" id=25]
[ext_resource path="res://sprites/character_base_top.svg" type="Texture" id=25]
[ext_resource path="res://sprites/clothes/blank_top.png" type="Texture" id=26]
[ext_resource path="res://sprites/character/shadow.svg" type="Texture" id=27]
[ext_resource path="res://sprites/character_base_head.svg" type="Texture" id=27]
[ext_resource path="res://sprites/character/mouth/mouth11.png" type="Texture" id=28]
[sub_resource type="SpriteFrames" id=1]
[sub_resource type="GDScript" id=1]
script/source = "# Anthony Wilcox licenses this file to you under the MPL license.
# See the LICENSE file in the project root for more information.
extends Node2D
onready var character = preload(\"res://resources/character.tres\")
onready var accessory = $body/accessory
#onready var underwear = $Undies
onready var bottom = $body/legs
onready var top = $body/top
func _process(delta):
if character.accessory != null:
accessory.texture = character.accessory
# if character.underwear != null:
# underwear.texture = character.underwear
if character.bottom != null:
bottom.texture = character.bottom
if character.top != null:
top.texture = character.top
"
[sub_resource type="SpriteFrames" id=2]
animations = [ {
"frames": [ ExtResource( 2 ), ExtResource( 3 ), ExtResource( 4 ) ],
"loop": true,
@ -37,7 +61,7 @@ animations = [ {
"speed": 2.0
} ]
[sub_resource type="SpriteFrames" id=2]
[sub_resource type="SpriteFrames" id=3]
animations = [ {
"frames": [ ExtResource( 6 ), ExtResource( 7 ), ExtResource( 8 ), ExtResource( 9 ), ExtResource( 10 ), ExtResource( 11 ), ExtResource( 12 ) ],
"loop": true,
@ -45,7 +69,7 @@ animations = [ {
"speed": 2.0
} ]
[sub_resource type="SpriteFrames" id=3]
[sub_resource type="SpriteFrames" id=4]
animations = [ {
"frames": [ ExtResource( 13 ), ExtResource( 14 ), ExtResource( 15 ), ExtResource( 16 ), ExtResource( 17 ), ExtResource( 18 ), ExtResource( 19 ), ExtResource( 20 ), ExtResource( 21 ), ExtResource( 22 ), ExtResource( 28 ), ExtResource( 23 ) ],
"loop": true,
@ -54,48 +78,73 @@ animations = [ {
} ]
[node name="characterBase" type="Node2D"]
script = ExtResource( 1 )
position = Vector2( -19, -92 )
script = SubResource( 1 )
[node name="base" type="Node2D" parent="."]
position = Vector2( -103.897, -160.477 )
[node name="shadow" type="Sprite" parent="."]
position = Vector2( 4.84271, 244.714 )
texture = ExtResource( 1 )
[node name="Tail" type="AnimatedSprite" parent="base"]
position = Vector2( 55.0701, 172.425 )
frames = SubResource( 1 )
frame = 2
[node name="body" type="Node2D" parent="."]
__meta__ = {
"_edit_lock_": true
}
[node name="tail" type="AnimatedSprite" parent="body"]
position = Vector2( -41.9999, 100.157 )
scale = Vector2( 0.927713, 1 )
frames = SubResource( 2 )
frame = 1
playing = true
__meta__ = {
"_edit_lock_": true
}
[node name="shadow" type="Sprite" parent="base"]
position = Vector2( 91.524, 317.295 )
texture = ExtResource( 27 )
[node name="top" type="Sprite" parent="body"]
position = Vector2( 7, 80 )
texture = ExtResource( 25 )
__meta__ = {
"_edit_lock_": true
}
[node name="Tony" type="Sprite" parent="base"]
position = Vector2( 96.3522, 164.086 )
[node name="legs" type="Sprite" parent="body"]
position = Vector2( 3, 189 )
texture = ExtResource( 5 )
[node name="Eyes" type="AnimatedSprite" parent="base"]
position = Vector2( 114.227, 63.9224 )
frames = SubResource( 2 )
playing = true
[node name="head" type="Sprite" parent="body"]
position = Vector2( 14.1214, -26.841 )
texture = ExtResource( 27 )
__meta__ = {
"_edit_lock_": true
}
[node name="Mouth" type="AnimatedSprite" parent="base"]
position = Vector2( 148.505, 68.0261 )
[node name="accessory" type="Sprite" parent="body"]
position = Vector2( 9.54095, 73.0832 )
texture = ExtResource( 26 )
__meta__ = {
"_edit_lock_": true
}
[node name="emote" type="Node2D" parent="body"]
position = Vector2( 51.7305, -20.2165 )
__meta__ = {
"_edit_lock_": true
}
[node name="eyes" type="AnimatedSprite" parent="body/emote"]
position = Vector2( -19.9234, -2.40303 )
frames = SubResource( 3 )
frame = 7
frame = 3
playing = true
__meta__ = {
"_edit_lock_": true
}
[node name="Undies" type="Sprite" parent="."]
position = Vector2( -17.3889, 95.818 )
texture = ExtResource( 24 )
[node name="Bottom" type="Sprite" parent="."]
position = Vector2( -15.7094, 90.851 )
texture = ExtResource( 25 )
[node name="Top" type="Sprite" parent="."]
position = Vector2( -7.53471, -0.0449677 )
texture = ExtResource( 26 )
[node name="Accessory" type="Sprite" parent="."]
position = Vector2( -10.6723, -5.33797 )
texture = ExtResource( 26 )
[node name="mouth" type="AnimatedSprite" parent="body/emote"]
position = Vector2( 0.510399, 2.06003 )
frames = SubResource( 4 )
frame = 6
playing = true
__meta__ = {
"_edit_lock_": true
}

View file

@ -1,7 +1,7 @@
[gd_scene load_steps=10 format=2]
[ext_resource path="res://scenes/characterBase.tscn" type="PackedScene" id=1]
[ext_resource path="res://sprites/clothes/background.svg" type="Texture" id=2]
[ext_resource path="res://sprites/world/background.svg" type="Texture" id=2]
[ext_resource path="res://sprites/ui/blue_boxCross.png" type="Texture" id=3]
[ext_resource path="res://scenes/wardrobe.tscn" type="PackedScene" id=4]
[ext_resource path="res://sprites/clothes/icrazy_frame.svg" type="Texture" id=5]
@ -28,7 +28,7 @@ position = Vector2( 35.118, -14.56 )
texture = ExtResource( 6 )
[node name="characterBase" parent="." instance=ExtResource( 1 )]
position = Vector2( 126.596, 319.219 )
position = Vector2( 145.146, 205.536 )
[node name="ui" type="CanvasLayer" parent="."]

View file

@ -1,7 +1,6 @@
[gd_scene load_steps=21 format=2]
[gd_scene load_steps=18 format=2]
[ext_resource path="res://scenes/clothing/camera.tscn" type="PackedScene" id=1]
[ext_resource path="res://scenes/clothing/undies/zBriefs.tscn" type="PackedScene" id=2]
[ext_resource path="res://scenes/clothing/pants/beatUpJeans.tscn" type="PackedScene" id=3]
[ext_resource path="res://scenes/clothing/pants/jeans.tscn" type="PackedScene" id=4]
[ext_resource path="res://scenes/clothing/pants/skirt.tscn" type="PackedScene" id=5]
@ -17,9 +16,7 @@
[ext_resource path="res://scenes/clothing/tops/atomicShirt.tscn" type="PackedScene" id=15]
[ext_resource path="res://scenes/clothing/tops/nlShirt.tscn" type="PackedScene" id=16]
[ext_resource path="res://scenes/clothing/pants/sweatPants.tscn" type="PackedScene" id=17]
[ext_resource path="res://scenes/clothing/undies/briefs.tscn" type="PackedScene" id=20]
[ext_resource path="res://scripts/wardrobe.gd" type="Script" id=21]
[ext_resource path="res://scenes/clothing/undies/fundosi.tscn" type="PackedScene" id=22]
[node name="Wordrobe" type="TabContainer"]
anchor_right = 1.0
@ -58,7 +55,7 @@ columns = 4
[node name="removePants" type="TextureButton" parent="Pants/PantsScroll/PantsGrid"]
margin_right = 106.0
margin_bottom = 112.0
margin_bottom = 134.0
rect_min_size = Vector2( 0, 112 )
texture_normal = ExtResource( 9 )
@ -66,53 +63,53 @@ texture_normal = ExtResource( 9 )
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 110.0
margin_right = 216.0
margin_bottom = 112.0
margin_right = 220.0
margin_bottom = 134.0
[node name="jeans" parent="Pants/PantsScroll/PantsGrid" instance=ExtResource( 4 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 220.0
margin_right = 326.0
margin_bottom = 112.0
margin_left = 224.0
margin_right = 330.0
margin_bottom = 134.0
[node name="camoJeans" parent="Pants/PantsScroll/PantsGrid" instance=ExtResource( 7 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 330.0
margin_right = 436.0
margin_bottom = 112.0
margin_left = 334.0
margin_right = 444.0
margin_bottom = 134.0
[node name="sweatPants" parent="Pants/PantsScroll/PantsGrid" instance=ExtResource( 17 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 116.0
margin_top = 138.0
margin_right = 106.0
margin_bottom = 228.0
margin_bottom = 270.0
[node name="camoJeans2" parent="Pants/PantsScroll/PantsGrid" instance=ExtResource( 8 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 110.0
margin_top = 116.0
margin_right = 216.0
margin_bottom = 228.0
margin_top = 138.0
margin_right = 220.0
margin_bottom = 270.0
[node name="formalSkirt" parent="Pants/PantsScroll/PantsGrid" instance=ExtResource( 6 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 220.0
margin_top = 116.0
margin_right = 326.0
margin_bottom = 228.0
margin_left = 224.0
margin_top = 138.0
margin_right = 330.0
margin_bottom = 270.0
[node name="skirt" parent="Pants/PantsScroll/PantsGrid" instance=ExtResource( 5 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 330.0
margin_top = 116.0
margin_right = 436.0
margin_bottom = 228.0
margin_left = 334.0
margin_top = 138.0
margin_right = 444.0
margin_bottom = 270.0
[node name="Shirts" type="Tabs" parent="."]
visible = false
@ -182,40 +179,6 @@ margin_top = 119.0
margin_right = 106.0
margin_bottom = 234.0
[node name="Underwear" type="Tabs" parent="."]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 5.0
margin_top = 40.0
margin_right = -5.0
margin_bottom = -10.0
[node name="UndiesScroll" type="ScrollContainer" parent="Underwear"]
anchor_right = 1.0
anchor_bottom = 1.0
[node name="UndiesGrid" type="GridContainer" parent="Underwear/UndiesScroll"]
margin_right = 790.0
margin_bottom = 450.0
size_flags_horizontal = 3
size_flags_vertical = 3
columns = 3
[node name="fundosi" parent="Underwear/UndiesScroll/UndiesGrid" instance=ExtResource( 22 )]
margin_right = 106.0
margin_bottom = 112.0
[node name="zBriefs" parent="Underwear/UndiesScroll/UndiesGrid" instance=ExtResource( 2 )]
margin_left = 110.0
margin_right = 216.0
margin_bottom = 112.0
[node name="briefs" parent="Underwear/UndiesScroll/UndiesGrid" instance=ExtResource( 20 )]
margin_left = 220.0
margin_right = 326.0
margin_bottom = 112.0
[node name="Accessoires" type="Tabs" parent="."]
visible = false
anchor_right = 1.0