mobile support tweaks

This commit is contained in:
2026-08-23 20:32:52 +03:00
parent 008650a87e
commit ccc92f201f
15 changed files with 380 additions and 0 deletions
+8
View File
@@ -79,8 +79,16 @@ var _walk_dust_ramp: Gradient = null
var _charge_dust_ramp: Gradient = null
const RigidSkin = preload("res://rigid_skin.gd")
func _ready() -> void:
add_to_group(&"player")
# Mali/ANGLE mobile GPUs can't run Godot's Compatibility vertex-skinning (transform
# feedback) — skinned meshes render invisible on the web build. Rebuild the bull as
# non-skinned bone-attached pieces there; desktop keeps smooth GPU skinning.
if OS.has_feature("web"):
RigidSkin.convert_tree(self)
_max_hp = maxi(1, int(DP.f("bull_max_hp")))
_hp = _max_hp
_cube_scale = cube_guy.scale