Actual player imagesgit status

This commit is contained in:
Zergling_man 2025-07-13 00:58:10 +10:00
parent 2838655c47
commit 463cbf59cd
3 changed files with 42 additions and 5 deletions

View File

@ -18,11 +18,11 @@
<stop style="stop-color:#222222;stop-opacity:1;" offset="1" />
</linearGradient>
<radialGradient xlink:href="#head_colour" id="head_fill"
cx="50" cy="50" fx="50" fy="50" r="25" gradientUnits="userSpaceOnUse" />
cx="50" cy="50" fx="50" fy="50" r="20" gradientUnits="userSpaceOnUse" />
</defs>
<mask id="hair_mask">
<rect x="0" y="30" width="50" height="40" fill="white" />
<rect x="0" y="35" width="50" height="30" fill="white" />
</mask>
<circle id="hair" cx="50" cy="50" r="30" style="fill:#dddd00" mask="url(#hair_mask)" />
<circle id="head" cx="50" cy="50" r="25" style="fill:url(#head_fill)" />
<circle id="hair" cx="50" cy="50" r="24" style="fill:#dddd00" mask="url(#hair_mask)" />
<circle id="head" cx="50" cy="50" r="20" style="fill:url(#head_fill)" />
</svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

37
design/char_top.svg.import Executable file
View File

@ -0,0 +1,37 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b5rg8etsyu2aa"
path="res://.godot/imported/char_top.svg-93537d8f56283416e6567cd1531ff356.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://design/char_top.svg"
dest_files=["res://.godot/imported/char_top.svg-93537d8f56283416e6567cd1531ff356.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
svg/scale=0.5
editor/scale_with_editor_scale=false
editor/convert_colors_with_editor_theme=false

View File

@ -41,6 +41,6 @@ Node* Game::kyaraspawn(const Variant &data)
kya->set_name(dat["name"]);
kya->multiplayerowner=dat["pid"];
kya->set_position(Vector2(50,50));
if (multiplayer_type&2) kya->set_texture(ResourceLoader::get_singleton()->load("res://icon.svg")); // displaying
if (multiplayer_type&2) kya->set_texture(ResourceLoader::get_singleton()->load("res://design/char_top.svg")); // displaying
return kya;
}