Added graphics options for psx effects
This commit is contained in:
@@ -5,8 +5,9 @@ extends HeroState
|
||||
|
||||
|
||||
func enter_state() -> void:
|
||||
if hero.game_manager:
|
||||
hero.game_manager.level.enable_non_path_tower_frames()
|
||||
hero.edit_tool.enabled = true
|
||||
hero.game_manager.level.enable_non_path_tower_frames()
|
||||
hero.left_hand_model.visible = true
|
||||
hero.gauntlet_model.visible = true
|
||||
hero.cassette.visible = false
|
||||
|
||||
10
PCs/hero.gd
10
PCs/hero.gd
@@ -100,7 +100,7 @@ func _ready() -> void:
|
||||
sprite.queue_free()
|
||||
player_name_tag.queue_free()
|
||||
for card: Card in hero_class.deck:
|
||||
if game_manager.card_gameplay:
|
||||
if game_manager and game_manager.card_gameplay:
|
||||
draw_pile.add(card)
|
||||
else:
|
||||
add_card(card)
|
||||
@@ -239,7 +239,6 @@ func set_card_elements_visibility(value: bool) -> void:
|
||||
else:
|
||||
hud.hide_hot_wheel()
|
||||
hud.hide_slots()
|
||||
$FirstPersonViewport/Head2/LeftHand.visible = value
|
||||
|
||||
|
||||
func _unhandled_input(event: InputEvent) -> void:
|
||||
@@ -248,9 +247,10 @@ func _unhandled_input(event: InputEvent) -> void:
|
||||
if event.is_action_pressed("Pause"):
|
||||
var menu: PauseMenu = pause_menu_scene.instantiate() as PauseMenu
|
||||
pause()
|
||||
menu.game_manager = game_manager
|
||||
menu.quit_to_desktop_pressed.connect(game_manager.quit_to_desktop)
|
||||
menu.quit_to_main_menu_pressed.connect(game_manager.scene_switch_main_menu)
|
||||
if game_manager:
|
||||
menu.game_manager = game_manager
|
||||
menu.quit_to_desktop_pressed.connect(game_manager.quit_to_desktop)
|
||||
menu.quit_to_main_menu_pressed.connect(game_manager.scene_switch_main_menu)
|
||||
menu.closed.connect(unpause)
|
||||
hud.add_child(menu)
|
||||
if event.is_action_pressed("Show Wave Preview"):
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
[ext_resource type="Script" uid="uid://b6kjrl7ae1mi0" path="res://PCs/hud.gd" id="8_yl6ka"]
|
||||
[ext_resource type="Script" uid="uid://hy51bq7x0fy8" path="res://Scripts/on_top_camera.gd" id="11_4sdwe"]
|
||||
[ext_resource type="PackedScene" uid="uid://rc0qcrcbmw7p" path="res://Gauntlet/gauntlet.glb" id="11_h1yfy"]
|
||||
[ext_resource type="PackedScene" uid="uid://ckl5tw5rmewhp" path="res://left_hand/card_hand_model.glb" id="11_h82f6"]
|
||||
[ext_resource type="Script" uid="uid://ckkioruqgbs8p" path="res://Scripts/minimap_cam.gd" id="12_3hpi3"]
|
||||
[ext_resource type="PackedScene" uid="uid://clgbmveluyewe" path="res://card_hand.glb" id="12_r2yb6"]
|
||||
[ext_resource type="PackedScene" uid="uid://4g0vatb73duj" path="res://Scenes/Cassette/cassette.glb" id="13_7immr"]
|
||||
@@ -168,7 +167,7 @@ wave_preview_scene = ExtResource("2_o55s8")
|
||||
hero_class = ExtResource("2_dbyo0")
|
||||
camera = NodePath("ViewMovement/Head")
|
||||
gun_camera = NodePath("FirstPersonViewport/Head2")
|
||||
left_hand = NodePath("FirstPersonViewport/Head2/LeftHand")
|
||||
left_hand = NodePath("FirstPersonViewport/Head2/RightHand/card_hand")
|
||||
right_hand = NodePath("FirstPersonViewport/Head2/RightHand")
|
||||
edit_tool = NodePath("ViewMovement/Head/EditTool")
|
||||
carding_tool = NodePath("ViewMovement/Head/CardPlacingTool")
|
||||
@@ -349,18 +348,6 @@ tree_root = SubResource("AnimationNodeBlendTree_xav2s")
|
||||
anim_player = NodePath("../card_hand/AnimationPlayer")
|
||||
parameters/Blend2/blend_amount = 0.0
|
||||
|
||||
[node name="LeftHand" type="Node3D" parent="FirstPersonViewport/Head2" unique_id=117309443]
|
||||
transform = Transform3D(0.235, 0, 0, 0, 0.235, 0, 0, 0, 0.235, -0.645, -0.26, -1.04)
|
||||
|
||||
[node name="card_hand_model" parent="FirstPersonViewport/Head2/LeftHand" unique_id=141858112 instance=ExtResource("11_h82f6")]
|
||||
transform = Transform3D(-4.16989, -0.848374, -3.61733e-07, -0.824933, 4.05468, -0.993384, 0.198049, -0.973442, -4.13774, 1.56596, 0.519149, 3.37051)
|
||||
|
||||
[node name="Body_004" parent="FirstPersonViewport/Head2/LeftHand/card_hand_model/Armature/Skeleton3D" parent_id_path=PackedInt32Array(141858112, 1120957052) index="0" unique_id=1372468431]
|
||||
layers = 2
|
||||
|
||||
[node name="Cards" type="Node3D" parent="FirstPersonViewport/Head2/LeftHand" unique_id=140136041]
|
||||
transform = Transform3D(4.25532, 0, 0, 0, 4.25532, 0, 0, 0, 4.25532, 2.01277, 0.787234, 3.39179)
|
||||
|
||||
[node name="MiniMapViewport" type="SubViewport" parent="." unique_id=384727742]
|
||||
size = Vector2i(256, 256)
|
||||
render_target_update_mode = 4
|
||||
@@ -970,5 +957,4 @@ size = 2.243
|
||||
[editable path="FirstPersonViewport/Head2/RightHand/gauntlet"]
|
||||
[editable path="FirstPersonViewport/Head2/RightHand/card_hand"]
|
||||
[editable path="FirstPersonViewport/Head2/RightHand/card_hand/Empty_001/cassette"]
|
||||
[editable path="FirstPersonViewport/Head2/LeftHand/card_hand_model"]
|
||||
[editable path="CoinViewport/Coin"]
|
||||
|
||||
@@ -44,7 +44,7 @@ var enemy_count: int = 0
|
||||
func _ready() -> void:
|
||||
$StartWaveLabel.theme_type_variation = "WaveStartLabel"
|
||||
$InteractLabel.theme_type_variation = "InteractLabel"
|
||||
if player.game_manager.card_gameplay:
|
||||
if player.game_manager and player.game_manager.card_gameplay:
|
||||
energy_label.visible = true
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user