fix: Level Inlines, Coins & easier walljump

This commit is contained in:
Jakob Feldmann 2023-09-16 13:54:37 +02:00
parent 57cb9b18ed
commit 746aae7e7f
5 changed files with 118 additions and 15 deletions

View File

@ -212,7 +212,7 @@ func is_touching_wall_completely() -> bool:
# Attached to wall state is in the PlayerStateMachine
func is_correct_walljump_input(direction: Vector2) -> bool:
return (
Input.is_action_just_pressed("jump")
Input.is_action_pressed("jump")
&& abs(direction.x + wall_touch_direction) < 1
&& abs(direction.x + wall_touch_direction) >= 0
)

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=25 format=2]
[gd_scene load_steps=26 format=2]
[ext_resource path="res://assets/environment/decor/platform-plants.png" type="Texture" id=1]
[ext_resource path="res://assets/sounds/AMBIENCE_SciFi_Large_Space_Hangar_Deep_Smooth_loop_stereo.wav" type="AudioStream" id=2]
@ -20,6 +20,7 @@
[ext_resource path="res://src/Contraptions/Triggers/FrogFreeButton.tscn" type="PackedScene" id=18]
[ext_resource path="res://src/Contraptions/Triggers/GateButton.tscn" type="PackedScene" id=19]
[ext_resource path="res://src/Actors/Enemies/DartingEnemy.tscn" type="PackedScene" id=20]
[ext_resource path="res://src/BenefitialObjects/Coin.tscn" type="PackedScene" id=21]
[sub_resource type="Shader" id=7]
code = "shader_type canvas_item;
@ -133,7 +134,7 @@ position = Vector2( -70, -1.90735e-06 )
scale = Vector2( 0.878906, 0.936025 )
[node name="BlobbySprite" parent="Blobby" index="5"]
frame = 6
frame = 5
[node name="BlobbymationTree" parent="Blobby/BlobbySprite" index="0"]
parameters/playback = SubResource( 6 )
@ -175,6 +176,15 @@ position = Vector2( -168, 104 )
[node name="GateBlock9" parent="." instance=ExtResource( 16 )]
position = Vector2( -168, 120 )
[node name="Coin" parent="." instance=ExtResource( 21 )]
position = Vector2( 544, -24 )
[node name="Coin2" parent="." instance=ExtResource( 21 )]
position = Vector2( 128, -169 )
[node name="Coin3" parent="." instance=ExtResource( 21 )]
position = Vector2( -400, 256 )
[node name="Flyer" parent="." instance=ExtResource( 15 )]
position = Vector2( 192, -30 )
vision_distance = 16.0

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -41,7 +41,7 @@ resource_name = "LowPassFilter"
cutoff_hz = 3000.0
[resource]
bus/0/volume_db = -13.9794
bus/0/volume_db = inf_neg
bus/1/name = "Music"
bus/1/solo = false
bus/1/mute = false