mirror of
https://github.com/PfandBoss/SemesterGameJam2022.git
synced 2025-11-12 12:16:14 +01:00
train
This commit is contained in:
@@ -29,7 +29,7 @@ _global_script_classes=[{
|
|||||||
"language": &"GDScript",
|
"language": &"GDScript",
|
||||||
"path": "res://scripts/Logic/MapNode.gd"
|
"path": "res://scripts/Logic/MapNode.gd"
|
||||||
}, {
|
}, {
|
||||||
"base": "StaticBody3D",
|
"base": "Node",
|
||||||
"class": &"Module",
|
"class": &"Module",
|
||||||
"language": &"GDScript",
|
"language": &"GDScript",
|
||||||
"path": "res://scripts/Modules/Module.gd"
|
"path": "res://scripts/Modules/Module.gd"
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ func _ready():
|
|||||||
p2_node = StartNode
|
p2_node = StartNode
|
||||||
p2_train.get_node("CharacterBody3D").is_player1 = false
|
p2_train.get_node("CharacterBody3D").is_player1 = false
|
||||||
p2_train.is_P1 = false
|
p2_train.is_P1 = false
|
||||||
p1_train.current_speed = 10
|
p1_train.current_speed = 8
|
||||||
p1_train.hit.connect(_on_hit_player)
|
p1_train.hit.connect(_on_hit_player)
|
||||||
p2_train.hit.connect(_on_hit_player)
|
p2_train.hit.connect(_on_hit_player)
|
||||||
|
|
||||||
@@ -83,6 +83,7 @@ func _process(delta):
|
|||||||
p2_train.current_speed *= 0.5
|
p2_train.current_speed *= 0.5
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
elif(fight_state == FIGHTING):
|
elif(fight_state == FIGHTING):
|
||||||
fight_state = CHILL
|
fight_state = CHILL
|
||||||
var tween = create_tween()
|
var tween = create_tween()
|
||||||
@@ -106,4 +107,3 @@ func _process(delta):
|
|||||||
$Control/VSlider.value = p1_train.distance_from_start
|
$Control/VSlider.value = p1_train.distance_from_start
|
||||||
$Control/VSlider2.value = p2_train.distance_from_start
|
$Control/VSlider2.value = p2_train.distance_from_start
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user