rubber girl
This commit is contained in:
parent
45db4b4f64
commit
4ae13ee3f3
11 changed files with 85 additions and 31 deletions
|
@ -17,13 +17,6 @@ func _process(delta):
|
|||
pass
|
||||
|
||||
func _physics_process(delta):
|
||||
if player.velocity.x >= 0 && player.velocity.y >= 0:
|
||||
if player.position.y < boss.position.y && player.get_index() > boss.get_index():
|
||||
move_child(player, boss.get_index() - 1)
|
||||
print("move up")
|
||||
elif player.position.y > boss.position.y && player.get_index() < boss.get_index():
|
||||
move_child(player, boss.get_index() + 1)
|
||||
print("move down")
|
||||
if Global.debug:
|
||||
if Global.dstats[Global.dparty[0][0]][0] <= 0 && Global.live == 1:
|
||||
_winner()
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://bi8dsxjedvmxw"]
|
||||
[gd_scene load_steps=3 format=3 uid="uid://bi8dsxjedvmxw"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://d1rcw7akvyooo" path="res://backgounds/Midori Asgardius cheststand.jpg" id="1_pt70s"]
|
||||
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="2_0wcve"]
|
||||
|
||||
[node name="Midorireading" type="Node2D"]
|
||||
|
@ -7,12 +8,14 @@
|
|||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
offset_right = 1278.0
|
||||
offset_bottom = 600.0
|
||||
texture = ExtResource("1_pt70s")
|
||||
|
||||
[node name="Text" type="Label" parent="."]
|
||||
offset_left = 52.0
|
||||
offset_top = 606.0
|
||||
offset_right = 1224.0
|
||||
offset_bottom = 714.0
|
||||
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||
theme_override_font_sizes/font_size = 40
|
||||
text = "CUTSCENE_0_4"
|
||||
horizontal_alignment = 1
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://dbho2m55yi3ty"]
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dbho2m55yi3ty"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cyl5fve543dvc" path="res://backgounds/Midori Asgardius birth waterfall.jpg" id="1_n3nwn"]
|
||||
[ext_resource type="PackedScene" uid="uid://d31udhuuwrajn" path="res://levels/bottomhud.tscn" id="2_r0grr"]
|
||||
|
||||
[node name="Midoriwaterfall" type="Node2D"]
|
||||
|
@ -7,10 +8,11 @@
|
|||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
offset_right = 1278.0
|
||||
offset_bottom = 600.0
|
||||
texture = ExtResource("1_n3nwn")
|
||||
|
||||
[node name="Text" type="Label" parent="."]
|
||||
offset_left = 52.0
|
||||
offset_top = 606.0
|
||||
offset_top = 659.0
|
||||
offset_right = 1224.0
|
||||
offset_bottom = 714.0
|
||||
theme_override_font_sizes/font_size = 40
|
||||
|
|
|
@ -16,14 +16,8 @@ func _ready():
|
|||
func _process(delta):
|
||||
pass
|
||||
|
||||
func _physics_process(delta):
|
||||
if player.velocity.x >= 0 && player.velocity.y >= 0:
|
||||
if player.position.y < boss.position.y && player.get_index() > boss.get_index():
|
||||
move_child(player, boss.get_index() - 1)
|
||||
print("move up")
|
||||
elif player.position.y > boss.position.y && player.get_index() < boss.get_index():
|
||||
move_child(player, boss.get_index() + 1)
|
||||
print("move down")
|
||||
#func _physics_process(delta):
|
||||
# pass
|
||||
|
||||
func _input(event):
|
||||
if Global.cdialog.size() != 0 && Global.live == 1:
|
||||
|
|
|
@ -13,11 +13,5 @@ func _ready():
|
|||
func _process(delta):
|
||||
pass
|
||||
|
||||
func _physics_process(delta):
|
||||
if player.velocity.x >= 0 && player.velocity.y >= 0:
|
||||
if player.position.y < boss.position.y && player.get_index() > boss.get_index():
|
||||
move_child(player, boss.get_index() - 1)
|
||||
print("move up")
|
||||
elif player.position.y > boss.position.y && player.get_index() < boss.get_index():
|
||||
move_child(player, boss.get_index() + 1)
|
||||
print("move down")
|
||||
#func _physics_process(delta):
|
||||
# pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue