Add mobile game player support

This commit is contained in:
Lncvrt committed 2026-02-24 14:48:24 -07:00
1 parent 3cc809d457
commit 50f31652f8
12 files changed
+527 -4

No files matched your search

+110
View File
@@ -10,8 +10,13 @@
[ext_resource type="AudioStream" uid="uid://btl7lrqmikaro" path="res://Audio/Music/Game/FluffingADuck.mp3" id="7_2irst"]
[ext_resource type="Script" uid="uid://c6eb8owotqy45" path="res://Scripts/Fps.cs" id="7_acvyw"]
[ext_resource type="AudioStream" uid="uid://js133askfgfd" path="res://Audio/Music/Game/AmazingPlan.mp3" id="8_3cx6b"]
[ext_resource type="Texture2D" uid="uid://dryavksejt84w" path="res://Textures/Buttons/Circle.svg" id="8_4q8tf"]
[ext_resource type="Texture2D" uid="uid://cdl6h5fqjke4f" path="res://Textures/Buttons/ArrowLeft.svg" id="8_alh3a"]
[ext_resource type="Texture2D" uid="uid://d2kxub8e1gl4x" path="res://Textures/Buttons/Pause.svg" id="9_tfod6"]
[ext_resource type="AudioStream" uid="uid://dnnjkxgsh0vf6" path="res://Audio/Music/Game/Hyperfun.mp3" id="9_wxwew"]
[ext_resource type="Texture2D" uid="uid://cud8l2dwwi6y4" path="res://Textures/Buttons/ArrowRight.svg" id="9_x3xnh"]
[ext_resource type="AudioStream" uid="uid://cds2k1ijtf5ol" path="res://Audio/Music/Game/QuirkyDog.mp3" id="10_acvyw"]
[ext_resource type="Texture2D" uid="uid://b54itl2db5w64" path="res://Textures/Buttons/CheveronUp.svg" id="11_8r6kd"]
[ext_resource type="AudioStream" uid="uid://em0ro3lwpp0a" path="res://Audio/Music/Game/Wallpaper.mp3" id="11_alh3a"]
[ext_resource type="AudioStream" uid="uid://c51he0x017y6d" path="res://Audio/Music/Game/WhoLikesToParty.mp3" id="12_4q8tf"]
[ext_resource type="AudioStream" uid="uid://g432tiqm4b41" path="res://Audio/Music/Game/LatinIndustries.mp3" id="13_x3xnh"]
@@ -132,6 +137,111 @@ theme_override_font_sizes/font_size = 109
text = "FPS: {}"
script = ExtResource("7_acvyw")
[node name="MobileButtons" type="Node" parent="CanvasLayer" unique_id=1504154343]
[node name="PauseButton" type="Button" parent="CanvasLayer/MobileButtons" unique_id=1375970461]
z_index = 10
offset_left = 80.0
offset_top = 80.0
offset_right = 320.0002
offset_bottom = 320.0
icon_alignment = 1
expand_icon = true
[node name="Circle" type="Sprite2D" parent="CanvasLayer/MobileButtons/PauseButton" unique_id=32602554]
position = Vector2(120, 120)
scale = Vector2(0.35, 0.35)
texture = ExtResource("8_4q8tf")
[node name="Texture" type="Sprite2D" parent="CanvasLayer/MobileButtons/PauseButton" unique_id=23048453]
position = Vector2(120, 120)
scale = Vector2(0.2, 0.2)
texture = ExtResource("9_tfod6")
[node name="LeftMoveButton" type="Button" parent="CanvasLayer/MobileButtons" unique_id=1778119021]
z_index = 10
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 80.0
offset_top = -320.0
offset_right = 320.0002
offset_bottom = -80.0
grow_vertical = 0
icon_alignment = 1
expand_icon = true
[node name="Circle" type="Sprite2D" parent="CanvasLayer/MobileButtons/LeftMoveButton" unique_id=549488896]
position = Vector2(120, 120)
scale = Vector2(0.35, 0.35)
texture = ExtResource("8_4q8tf")
[node name="Texture" type="Sprite2D" parent="CanvasLayer/MobileButtons/LeftMoveButton" unique_id=934604812]
position = Vector2(120, 120)
scale = Vector2(0.2, 0.2)
texture = ExtResource("8_alh3a")
[node name="RightMoveButton" type="Button" parent="CanvasLayer/MobileButtons" unique_id=2046843618]
z_index = 10
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -320.0
offset_top = -320.0
offset_right = -80.0
offset_bottom = -80.0
grow_horizontal = 0
grow_vertical = 0
icon_alignment = 1
expand_icon = true
[node name="Circle" type="Sprite2D" parent="CanvasLayer/MobileButtons/RightMoveButton" unique_id=838628165]
position = Vector2(120, 120)
scale = Vector2(0.35, 0.35)
texture = ExtResource("8_4q8tf")
[node name="Texture" type="Sprite2D" parent="CanvasLayer/MobileButtons/RightMoveButton" unique_id=1284265984]
position = Vector2(120, 120)
scale = Vector2(0.2, 0.2)
texture = ExtResource("9_x3xnh")
[node name="JumpMoveButton" type="Button" parent="CanvasLayer/MobileButtons" unique_id=139483553]
z_index = 10
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -320.0
offset_top = -560.0
offset_right = -80.0
offset_bottom = -320.0
grow_horizontal = 0
grow_vertical = 0
icon_alignment = 1
expand_icon = true
[node name="Circle" type="Sprite2D" parent="CanvasLayer/MobileButtons/JumpMoveButton" unique_id=1010572167]
position = Vector2(120, 120)
scale = Vector2(0.35, 0.35)
texture = ExtResource("8_4q8tf")
[node name="Texture" type="Sprite2D" parent="CanvasLayer/MobileButtons/JumpMoveButton" unique_id=1571586741]
position = Vector2(120, 120)
scale = Vector2(0.2, 0.2)
texture = ExtResource("11_8r6kd")
[node name="MusicPlayer" type="AudioStreamPlayer" parent="." unique_id=1201627685]
stream = SubResource("AudioStreamPlaylist_bf53h")
autoplay = true
[connection signal="button_down" from="CanvasLayer/MobileButtons/PauseButton" to="Player" method="MobilePauseDown"]
[connection signal="button_up" from="CanvasLayer/MobileButtons/PauseButton" to="Player" method="MobilePauseUp"]
[connection signal="button_down" from="CanvasLayer/MobileButtons/LeftMoveButton" to="Player" method="MobileLeftMoveDown"]
[connection signal="button_up" from="CanvasLayer/MobileButtons/LeftMoveButton" to="Player" method="MobileLeftMoveUp"]
[connection signal="button_down" from="CanvasLayer/MobileButtons/RightMoveButton" to="Player" method="MobileRightMoveDown"]
[connection signal="button_up" from="CanvasLayer/MobileButtons/RightMoveButton" to="Player" method="MobileRightMoveUp"]
[connection signal="button_down" from="CanvasLayer/MobileButtons/JumpMoveButton" to="Player" method="MobileJumpMoveDown"]
[connection signal="button_up" from="CanvasLayer/MobileButtons/JumpMoveButton" to="Player" method="MobileJumpMoveUp"]
+17 -4
View File
@@ -3,6 +3,10 @@ using Godot;
public partial class Player : Node2D {
private float ScreenBorders = 120f;
private float VelocityY = 0f;
private bool doLeft = false;
private bool doRight = false;
private bool doJump = false;
private bool doPause = false;
public override void _Ready() {
var ScreenSize = GetViewport().GetVisibleRect().Size;
@@ -20,18 +24,18 @@ public partial class Player : Node2D {
Vector2 Pos = Position;
if (!Globals.IsPaused) {
if ((Input.IsKeyPressed(Key.Left) || Input.IsKeyPressed(Key.A)) && Pos.X > ScreenBorders) {
if ((Input.IsKeyPressed(Key.Left) || Input.IsKeyPressed(Key.A) || doLeft) && Pos.X > ScreenBorders) {
GetNode<Sprite2D>("Texture").FlipH = false;
Pos.X -= Globals.MovementSpeed * (float)delta;
}
float ScreenWidth = (WindowSize.X / WindowScale.X) - ScreenBorders;
if ((Input.IsKeyPressed(Key.Right) || Input.IsKeyPressed(Key.D)) && Pos.X < ScreenWidth) {
if ((Input.IsKeyPressed(Key.Right) || Input.IsKeyPressed(Key.D) || doRight) && Pos.X < ScreenWidth) {
GetNode<Sprite2D>("Texture").FlipH = true;
Pos.X += Globals.MovementSpeed * (float)delta;
}
if (Input.IsKeyPressed(Key.Space) && Pos.Y >= 976) {
if ((Input.IsKeyPressed(Key.Space) || doJump) && Pos.Y >= 976) {
VelocityY = Globals.JumpHeight;
GetNode<AudioStreamPlayer>("JumpSoundPlayer").Play();
}
@@ -76,7 +80,7 @@ public partial class Player : Node2D {
Globals.BerrySpeed = Globals.DefaultBerrySpeed * 2f;
}
if (Input.IsActionJustPressed("EscapeKey")) {
if (Input.IsActionJustPressed("EscapeKey") || doPause) {
if (!Globals.IsPaused) {
PackedScene PauseMenu = GD.Load<PackedScene>("res://Prefabs/PauseMenu.tscn");
@@ -101,4 +105,13 @@ public partial class Player : Node2D {
}
}
}
private void MobileLeftMoveDown() => doLeft = true;
private void MobileLeftMoveUp() => doLeft = false;
private void MobileRightMoveDown() => doRight = true;
private void MobileRightMoveUp() => doRight = false;
private void MobileJumpMoveDown() => doJump = true;
private void MobileJumpMoveUp() => doJump = false;
private void MobilePauseDown() => doPause = true;
private void MobilePauseUp() => doPause = false;
}
+37
View File
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 640 640"
version="1.1"
id="svg1"
sodipodi:docname="ArrowLeft.svg"
inkscape:version="1.4.3 (0d15f75, 2025-12-25)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1" />
<sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="1.2875"
inkscape:cx="320.38835"
inkscape:cy="320"
inkscape:window-width="1920"
inkscape:window-height="1027"
inkscape:window-x="0"
inkscape:window-y="25"
inkscape:window-maximized="1"
inkscape:current-layer="svg1" />
<!--!Font Awesome Free 7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.-->
<path
d="M73.4 297.4C60.9 309.9 60.9 330.2 73.4 342.7L233.4 502.7C245.9 515.2 266.2 515.2 278.7 502.7C291.2 490.2 291.2 469.9 278.7 457.4L173.3 352L544 352C561.7 352 576 337.7 576 320C576 302.3 561.7 288 544 288L173.3 288L278.7 182.6C291.2 170.1 291.2 149.8 278.7 137.3C266.2 124.8 245.9 124.8 233.4 137.3L73.4 297.3z"
id="path1"
style="fill:#ffffff;fill-opacity:1" />
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

+43
View File
@@ -0,0 +1,43 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cdl6h5fqjke4f"
path="res://.godot/imported/ArrowLeft.svg-4dfaccbf798c65e049f8e3cd4a3d0747.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Textures/Buttons/ArrowLeft.svg"
dest_files=["res://.godot/imported/ArrowLeft.svg-4dfaccbf798c65e049f8e3cd4a3d0747.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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=1.0
editor/scale_with_editor_scale=false
editor/convert_colors_with_editor_theme=false
+37
View File
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 640 640"
version="1.1"
id="svg1"
sodipodi:docname="ArrowRight.svg"
inkscape:version="1.4.3 (0d15f75, 2025-12-25)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1" />
<sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="1.2875"
inkscape:cx="320.38835"
inkscape:cy="320"
inkscape:window-width="1024"
inkscape:window-height="1027"
inkscape:window-x="0"
inkscape:window-y="25"
inkscape:window-maximized="0"
inkscape:current-layer="svg1" />
<!--!Font Awesome Free 7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.-->
<path
d="M566.6 342.6C579.1 330.1 579.1 309.8 566.6 297.3L406.6 137.3C394.1 124.8 373.8 124.8 361.3 137.3C348.8 149.8 348.8 170.1 361.3 182.6L466.7 288L96 288C78.3 288 64 302.3 64 320C64 337.7 78.3 352 96 352L466.7 352L361.3 457.4C348.8 469.9 348.8 490.2 361.3 502.7C373.8 515.2 394.1 515.2 406.6 502.7L566.6 342.7z"
id="path1"
style="fill:#ffffff;fill-opacity:1" />
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

+43
View File
@@ -0,0 +1,43 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cud8l2dwwi6y4"
path="res://.godot/imported/ArrowRight.svg-8d3e04814a9134af7ace3c7c22a319e2.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Textures/Buttons/ArrowRight.svg"
dest_files=["res://.godot/imported/ArrowRight.svg-8d3e04814a9134af7ace3c7c22a319e2.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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=1.0
editor/scale_with_editor_scale=false
editor/convert_colors_with_editor_theme=false
+37
View File
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 640 640"
version="1.1"
id="svg1"
sodipodi:docname="CheveronUp.svg"
inkscape:version="1.4.3 (0d15f75, 2025-12-25)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1" />
<sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="1.2859375"
inkscape:cx="320"
inkscape:cy="319.61118"
inkscape:window-width="1024"
inkscape:window-height="1027"
inkscape:window-x="0"
inkscape:window-y="25"
inkscape:window-maximized="0"
inkscape:current-layer="svg1" />
<!--!Font Awesome Free 7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.-->
<path
d="M297.4 169.4C309.9 156.9 330.2 156.9 342.7 169.4L534.7 361.4C547.2 373.9 547.2 394.2 534.7 406.7C522.2 419.2 501.9 419.2 489.4 406.7L320 237.3L150.6 406.6C138.1 419.1 117.8 419.1 105.3 406.6C92.8 394.1 92.8 373.8 105.3 361.3L297.3 169.3z"
id="path1"
style="fill:#ffffff;fill-opacity:1" />
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

+43
View File
@@ -0,0 +1,43 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b54itl2db5w64"
path="res://.godot/imported/CheveronUp.svg-37a0417511606868317e28db72e7533d.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Textures/Buttons/CheveronUp.svg"
dest_files=["res://.godot/imported/CheveronUp.svg-37a0417511606868317e28db72e7533d.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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=1.0
editor/scale_with_editor_scale=false
editor/convert_colors_with_editor_theme=false
+37
View File
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 640 640"
version="1.1"
id="svg1"
sodipodi:docname="Circle.svg"
inkscape:version="1.4.3 (0d15f75, 2025-12-25)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1" />
<sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="1.2875"
inkscape:cx="320.38835"
inkscape:cy="320"
inkscape:window-width="1024"
inkscape:window-height="1027"
inkscape:window-x="0"
inkscape:window-y="25"
inkscape:window-maximized="0"
inkscape:current-layer="svg1" />
<!--!Font Awesome Free 7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.-->
<path
d="M528 320C528 205.1 434.9 112 320 112C205.1 112 112 205.1 112 320C112 434.9 205.1 528 320 528C434.9 528 528 434.9 528 320zM64 320C64 178.6 178.6 64 320 64C461.4 64 576 178.6 576 320C576 461.4 461.4 576 320 576C178.6 576 64 461.4 64 320z"
id="path1"
style="fill:#ffffff;fill-opacity:1" />
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

+43
View File
@@ -0,0 +1,43 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dryavksejt84w"
path="res://.godot/imported/Circle.svg-53a3381bf2240bf268087c20933de2a2.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Textures/Buttons/Circle.svg"
dest_files=["res://.godot/imported/Circle.svg-53a3381bf2240bf268087c20933de2a2.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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=1.0
editor/scale_with_editor_scale=false
editor/convert_colors_with_editor_theme=false
+37
View File
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 640 640"
version="1.1"
id="svg1"
sodipodi:docname="Pause.svg"
inkscape:version="1.4.3 (0d15f75, 2025-12-25)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1" />
<sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="1.2859375"
inkscape:cx="320"
inkscape:cy="319.61118"
inkscape:window-width="1024"
inkscape:window-height="1027"
inkscape:window-x="0"
inkscape:window-y="25"
inkscape:window-maximized="0"
inkscape:current-layer="svg1" />
<!--!Font Awesome Free 7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.-->
<path
d="M176 96C149.5 96 128 117.5 128 144L128 496C128 522.5 149.5 544 176 544L240 544C266.5 544 288 522.5 288 496L288 144C288 117.5 266.5 96 240 96L176 96zM400 96C373.5 96 352 117.5 352 144L352 496C352 522.5 373.5 544 400 544L464 544C490.5 544 512 522.5 512 496L512 144C512 117.5 490.5 96 464 96L400 96z"
id="path1"
style="fill:#ffffff;fill-opacity:1" />
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

+43
View File
@@ -0,0 +1,43 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://d2kxub8e1gl4x"
path="res://.godot/imported/Pause.svg-5a73753987311e9e720e35d4f36618dc.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Textures/Buttons/Pause.svg"
dest_files=["res://.godot/imported/Pause.svg-5a73753987311e9e720e35d4f36618dc.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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=1.0
editor/scale_with_editor_scale=false
editor/convert_colors_with_editor_theme=false