troublemakers
This commit is contained in:
parent
f6b36c722c
commit
7b36f2d53b
18 changed files with 630 additions and 8 deletions
|
@ -1,7 +1,8 @@
|
|||
[gd_scene load_steps=19 format=3 uid="uid://c4ldh7ydn78bh"]
|
||||
[gd_scene load_steps=21 format=3 uid="uid://c4ldh7ydn78bh"]
|
||||
|
||||
[ext_resource type="Script" path="res://levels/Ceres/honkerrailway.gd" id="1_75qhf"]
|
||||
[ext_resource type="Texture2D" uid="uid://l26qimo56l1w" path="res://sprites/ceres/items/hkr.png" id="2_qaay0"]
|
||||
[ext_resource type="Texture2D" uid="uid://dhrj7a0xr4bh1" path="res://sprites/ceres/items/ltc.png" id="3_4ekhw"]
|
||||
[ext_resource type="Texture2D" uid="uid://c1jjhut8fuf1w" path="res://sprites/ceres/railway/sprite.png" id="3_4r2wm"]
|
||||
[ext_resource type="PackedScene" uid="uid://cehe6sm8ly06u" path="res://sprites/common/player/player.tscn" id="3_uvwc3"]
|
||||
|
||||
|
@ -14,6 +15,9 @@ size = Vector2(1283, 20)
|
|||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_dw13o"]
|
||||
size = Vector2(224, 409)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_6hhd2"]
|
||||
size = Vector2(68, 152)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_hyd1a"]
|
||||
size = Vector2(86, 256)
|
||||
|
||||
|
@ -217,6 +221,15 @@ texture = ExtResource("2_qaay0")
|
|||
position = Vector2(1, -4.5)
|
||||
shape = SubResource("RectangleShape2D_dw13o")
|
||||
|
||||
[node name="StaticBody2D6" type="StaticBody2D" parent="."]
|
||||
position = Vector2(384, 186)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="StaticBody2D6"]
|
||||
texture = ExtResource("3_4ekhw")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D6"]
|
||||
shape = SubResource("RectangleShape2D_6hhd2")
|
||||
|
||||
[node name="Railwaygirl" type="CharacterBody2D" parent="."]
|
||||
position = Vector2(473, 133)
|
||||
|
||||
|
|
50
levels/Ceres/troublemakers.gd
Normal file
50
levels/Ceres/troublemakers.gd
Normal file
|
@ -0,0 +1,50 @@
|
|||
extends Node2D
|
||||
var talk = load("res://levels/ui/talk.tscn").instantiate()
|
||||
var boss
|
||||
var player
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
boss = $Pamela
|
||||
player = $Player
|
||||
boss.add_to_group("boss")
|
||||
Global.cdialog = [[tr("DIALOG_TROUBLEMAKER_0"), true, 0, 0], [tr("DIALOG_TROUBLEMAKER_1"), true, 7, 0], [tr("DIALOG_TROUBLEMAKER_2"), true, 0, 0]]
|
||||
Global.live = 0
|
||||
get_tree().root.add_child.call(talk)
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
pass
|
||||
|
||||
func _physics_process(delta):
|
||||
if Global.debug:
|
||||
if Global.dstats[Global.dparty[0][0]][0] <= 0 && Global.live == 1:
|
||||
_winner()
|
||||
else:
|
||||
if Global.cstats[Global.party[0][0]][0] <= 0 && Global.live == 1:
|
||||
_winner()
|
||||
|
||||
func _input(event):
|
||||
if Global.cdialog.size() != 0 && Global.live == 1:
|
||||
get_tree().root.remove_child(talk)
|
||||
Global.cdialog = []
|
||||
|
||||
func _winner():
|
||||
Global.cdialog = [[tr("DIALOG_CERES_L20_3"), true, 0, 0], [tr("DIALOG_CERES_L20_4"), false, 3], [tr("DIALOG_CERES_L20_5"), true, 0, 0]]
|
||||
Global.live = 3
|
||||
Global.ccutscene = 6
|
||||
#talk.queue_free()
|
||||
talk = load("res://levels/ui/talk.tscn").instantiate()
|
||||
get_tree().root.add_child.call(talk)
|
||||
|
||||
func _statrebase():
|
||||
if Global.debug:
|
||||
for i in 4:
|
||||
if Global.dparty[i][0] != null:
|
||||
for j in 7:
|
||||
Global.mstats[Global.dparty[i][0]][j] = Global.basestats[Global.dparty[i][0]][j] * Global.dlevel[Global.dparty[i][0]]
|
||||
else:
|
||||
for i in 4:
|
||||
if Global.party[i][0] != null:
|
||||
for j in 7:
|
||||
Global.mstats[Global.party[i][0]][j] = Global.basestats[Global.party[i][0]][j] * Global.level[Global.dparty[i][0]]
|
66
levels/Ceres/troublemakers.tscn
Normal file
66
levels/Ceres/troublemakers.tscn
Normal file
|
@ -0,0 +1,66 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://b06kxtu82485n"]
|
||||
|
||||
[ext_resource type="Script" path="res://levels/Ceres/troublemakers.gd" id="1_8o6q0"]
|
||||
[ext_resource type="Texture2D" uid="uid://dursxelwwxe8u" path="res://sprites/common/placeholder/player.png" id="2_sgxbf"]
|
||||
[ext_resource type="PackedScene" uid="uid://dya2jipk8eq2s" path="res://sprites/ceres/pamela/pamela.tscn" id="3_8xsbu"]
|
||||
[ext_resource type="PackedScene" uid="uid://cehe6sm8ly06u" path="res://sprites/common/player/player.tscn" id="4_nfhf4"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_1jr1w"]
|
||||
size = Vector2(20, 761)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_iptg6"]
|
||||
size = Vector2(1283, 20)
|
||||
|
||||
[node name="Troublemakers" type="Node2D"]
|
||||
script = ExtResource("1_8o6q0")
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
custom_minimum_size = Vector2(1280, 720)
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
color = Color(0, 0.619608, 0.270588, 1)
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
offset_left = 583.0
|
||||
offset_top = 4.0
|
||||
offset_right = 711.0
|
||||
offset_bottom = 260.0
|
||||
texture = ExtResource("2_sgxbf")
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
offset_left = 327.0
|
||||
offset_top = 354.0
|
||||
offset_right = 957.0
|
||||
offset_bottom = 409.0
|
||||
theme_override_font_sizes/font_size = 40
|
||||
text = "Boss spawns at EBU pattern area"
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
position = Vector2(-11, 361.5)
|
||||
shape = SubResource("RectangleShape2D_1jr1w")
|
||||
|
||||
[node name="StaticBody2D2" type="StaticBody2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D2"]
|
||||
position = Vector2(1293, 358)
|
||||
shape = SubResource("RectangleShape2D_1jr1w")
|
||||
|
||||
[node name="StaticBody2D3" type="StaticBody2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D3"]
|
||||
position = Vector2(641.5, -9)
|
||||
shape = SubResource("RectangleShape2D_iptg6")
|
||||
|
||||
[node name="StaticBody2D4" type="StaticBody2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D4"]
|
||||
position = Vector2(644, 731)
|
||||
shape = SubResource("RectangleShape2D_iptg6")
|
||||
|
||||
[node name="Pamela" parent="." instance=ExtResource("3_8xsbu")]
|
||||
position = Vector2(643, 129)
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("4_nfhf4")]
|
||||
position = Vector2(652, 590)
|
|
@ -62,3 +62,9 @@ func _on_dialogtest_pressed() -> void:
|
|||
Global.dplace = [1, 8, 11]
|
||||
Global.live = 1
|
||||
get_tree().change_scene_to_file("res://levels/ui/gameplay.tscn")
|
||||
|
||||
|
||||
func _on_bullethell_pressed() -> void:
|
||||
Global.dplace = [1, 1, 17]
|
||||
Global.live = 1
|
||||
get_tree().change_scene_to_file("res://levels/ui/gameplay.tscn")
|
||||
|
|
|
@ -73,7 +73,7 @@ text = "Honker Railway"
|
|||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
text = "BUTTON_PLACEHOLDER"
|
||||
text = "TWIN_TROUBLEMAKERS"
|
||||
|
||||
[node name="Credits" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
@ -96,4 +96,5 @@ text = "BUTTON_RETURN"
|
|||
[connection signal="pressed" from="VBoxContainer/L20" to="." method="_on_l_20_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Lilytest" to="." method="_on_lilytest_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Dialogtest" to="." method="_on_dialogtest_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Bullethell" to="." method="_on_bullethell_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Back" to="." method="_on_back_pressed"]
|
||||
|
|
|
@ -26,6 +26,7 @@ color = Color(0, 0, 0, 1)
|
|||
[node name="Bottomhud" parent="CanvasLayer" instance=ExtResource("2_jnb0v")]
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer"]
|
||||
layout_direction = 3
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ func _input(event):
|
|||
if dindex < Global.cdialog.size():
|
||||
if Global.cdialog[dindex][1]:
|
||||
cname.set_text(Global.pcnames[Global.cdialog[dindex][2]])
|
||||
pface.texture = load((Global.pcfaces[Global.cdialog[dindex][2]][Global.cdialog[dindex][2]]))
|
||||
pface.texture = load((Global.pcfaces[Global.cdialog[dindex][2]][Global.cdialog[dindex][3]]))
|
||||
else:
|
||||
cname.set_text(Global.npcnames[Global.cdialog[dindex][2]])
|
||||
pface.texture = load((Global.npcfaces[Global.cdialog[dindex][2]]))
|
||||
|
|
|
@ -65,11 +65,13 @@ text = "100/100"
|
|||
horizontal_alignment = 2
|
||||
|
||||
[node name="Topminibg" type="ColorRect" parent="CanvasLayer"]
|
||||
layout_direction = 3
|
||||
offset_right = 438.0
|
||||
offset_bottom = 116.0
|
||||
color = Color(0.254902, 0.254902, 0.254902, 1)
|
||||
|
||||
[node name="Topmini" type="HBoxContainer" parent="CanvasLayer"]
|
||||
layout_direction = 3
|
||||
offset_right = 377.0
|
||||
offset_bottom = 116.0
|
||||
|
||||
|
@ -159,12 +161,14 @@ color = Color(0, 0, 1, 1)
|
|||
|
||||
[node name="Topleftbg" type="ColorRect" parent="CanvasLayer"]
|
||||
visible = false
|
||||
layout_direction = 3
|
||||
offset_right = 437.0
|
||||
offset_bottom = 476.0
|
||||
color = Color(0.254902, 0.254902, 0.254902, 1)
|
||||
|
||||
[node name="Topleft" type="VBoxContainer" parent="CanvasLayer"]
|
||||
visible = false
|
||||
layout_direction = 3
|
||||
offset_right = 377.0
|
||||
offset_bottom = 476.0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue