Jelajahi Sumber

bunch of fixes based on feedback, adding changelog

galo 1 tahun lalu
induk
melakukan
256c058779
2 mengubah file dengan 14 tambahan dan 1 penghapusan
  1. 0 1
      main.tscn
  2. 14 0
      playersprite.tscn

+ 0 - 1
main.tscn

@@ -226,7 +226,6 @@ render_target_v_flip = true
 [node name="Goblin" type="AnimatedSprite" parent="Textures/Goblin4"]
 modulate = Color( 1, 0, 0.984314, 1 )
 frames = SubResource( 5 )
-frame = 3
 speed_scale = 0.9
 playing = true
 offset = Vector2( 32, 32 )

+ 14 - 0
playersprite.tscn

@@ -15,6 +15,11 @@ export var flip_h = false
 
 var die = false
 
+func _ready():
+	for x in get_tree().get_nodes_in_group('client'):
+		print( x.usernamelist)
+		$username.text = x.usernamelist[int(name)]
+
 func _physics_process(delta):
 	if die:
 		$SoldierAnim/AnimationPlayer.play('die4')
@@ -255,3 +260,12 @@ text1 = ExtResource( 6 )
 text2 = ExtResource( 7 )
 text3 = ExtResource( 3 )
 text4 = ExtResource( 2 )
+
+[node name="username" type="Label" parent="."]
+anchor_right = 1.0
+margin_left = -316.031
+margin_top = -46.0209
+margin_right = 323.969
+margin_bottom = -32.0209
+align = 1
+valign = 1