Grapple effects & particles & stuff :)
This commit is contained in:
parent
c290b1ce72
commit
421220e763
13 changed files with 203 additions and 61 deletions
|
@ -48,3 +48,19 @@ offset_right = 283.0
|
|||
offset_bottom = 177.0
|
||||
text = "Added Velocity: 0"
|
||||
label_settings = SubResource("LabelSettings_nvd2b")
|
||||
|
||||
[node name="Jumps" type="Label" parent="GuiRoot"]
|
||||
layout_mode = 0
|
||||
offset_top = 168.0
|
||||
offset_right = 283.0
|
||||
offset_bottom = 213.0
|
||||
text = "Jumps: 0"
|
||||
label_settings = SubResource("LabelSettings_nvd2b")
|
||||
|
||||
[node name="Grapples" type="Label" parent="GuiRoot"]
|
||||
layout_mode = 0
|
||||
offset_top = 208.0
|
||||
offset_right = 283.0
|
||||
offset_bottom = 253.0
|
||||
text = "Grapples: 0"
|
||||
label_settings = SubResource("LabelSettings_nvd2b")
|
||||
|
|
|
@ -1,13 +1,19 @@
|
|||
extends Control
|
||||
|
||||
@onready var player = $"../../"
|
||||
@onready var grapple = $"../../Sprite/Grapple"
|
||||
|
||||
@onready var velocNumb = $"Velocity"
|
||||
@onready var horzVeloc = $"HorzVeloc"
|
||||
@onready var vertVeloc = $"VertVeloc"
|
||||
@onready var addedVeloc = $"AddedVeloc"
|
||||
@onready var jumps = $"Jumps"
|
||||
@onready var grapples = $"Grapples"
|
||||
|
||||
func _physics_process(delta):
|
||||
velocNumb.text = "Velocity: " + str(round(player.velocity.length()))
|
||||
horzVeloc.text = "Horizontal Velocity: " + str(round(abs(player.velocity.x)))
|
||||
vertVeloc.text = "Vertical Velocity: " + str(round(abs(player.velocity.y)))
|
||||
horzVeloc.text = "Horizontal Velocity: " + str(round(player.velocity.x))
|
||||
vertVeloc.text = "Vertical Velocity: " + str(round(player.velocity.y))
|
||||
addedVeloc.text = "Added Velocity: " + str(round(abs(player.addedveloc)))
|
||||
jumps.text = "Jumps: " + str(player.jumps)
|
||||
grapples.text = "Grapples: " + str(grapple.grapples)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue