Dev Demo 2

* Ajout des achievement Steam
* Ajout d'une annonce à la récupération d'un artefact et ajout de textes axplicatifs sur les annonces d'artefacts et de mutation
* Fix du léger glitch des tooltips
* Ajout de clarté sur la machine de respawn dans le vaisseau
This commit is contained in:
2026-05-28 15:40:09 +02:00
parent 7b09f2ba7c
commit 1d6ff78535
30 changed files with 417 additions and 264 deletions

30
common/icons/restore.svg Normal file
View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="icon icon-tabler icons-tabler-outline icon-tabler-restore"
version="1.1"
id="svg4"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs4" />
<path
d="M 3.06,13 A 9,9 0 1 0 3.55,8.913"
id="path2"
style="stroke:#ffffff;stroke-opacity:1" />
<path
d="m 3,4.001 v 5 h 5"
id="path3"
style="stroke:#ffffff;stroke-opacity:1" />
<path
d="m 11,12 a 1,1 0 1 0 2,0 1,1 0 1 0 -2,0"
id="path4"
style="stroke:#ffffff;stroke-opacity:1" />
</svg>

After

Width:  |  Height:  |  Size: 772 B

View File

@@ -0,0 +1,43 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dwq22io1cc27y"
path="res://.godot/imported/restore.svg-d9ef9a5a8dc88e1f3cce883293c64588.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://common/icons/restore.svg"
dest_files=["res://.godot/imported/restore.svg-d9ef9a5a8dc88e1f3cce883293c64588.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=2.0
editor/scale_with_editor_scale=false
editor/convert_colors_with_editor_theme=false

View File

@@ -68,6 +68,11 @@ func spawn_player(relay_base : RelayBase):
relay_base.player.global_position = choosen_incubator.global_position + Vector3.UP
relay_base.player.rotation.y = choosen_incubator.rotation.y
if base_name == "MERCURY":
SteamConnection.unlock_achievement(SteamConnection.ACH_MERCURY_BASE)
elif base_name == "VENUS":
SteamConnection.unlock_achievement(SteamConnection.ACH_REACH_VENUS_BASE)
func spawn_dead_orchid(relay_base : RelayBase):
var dead_orchid := DEAD_ORCHID_SCENE.instantiate() as Node3D
relay_base.add_child(dead_orchid)

View File

@@ -1,16 +1,18 @@
extends Node
const APP_ID = "4452760"
func _init():
OS.set_environment("SteamAppID", APP_ID)
OS.set_environment("SteamGameID", APP_ID)
const ACH_SPIN_PLANET="STW_SPIN_PLANET"
const ACH_FINISH_TUTORIAL="STW_FINISH_TUTORIAL"
const ACH_MEET_DEMETER="STW_MEET_DEMETER"
const ACH_UNLOCK_ALL_MUTATION="STW_UNLOCK_ALL_MUTATIONS"
const ACH_KICK_YOUR_OLD_BODY="STW_KICK_YOUR_OLD_BODY"
const ACH_MERCURY_BASE="STW_REACH_MERCURY_BASE"
const ACH_REACH_VENUS_BASE="STW_REACH_VENUS_BASE"
func _ready():
Steam.steamInit()
var is_running = Steam.isSteamRunning()
if !is_running:
printerr("Steam is not running")
return
func unlock_achievement(achivement_name : String):
if Steam.isSteamRunning():
var status = Steam.getAchievement(achivement_name)
print("Steam Achievement %s" %achivement_name)
if status.ret and not status.achieved:
Steam.setAchievement(achivement_name)
Steam.storeStats()