Merge pull request 'Added grassy tiles' (#3) from feat-procedural-gen into main
Release / Export Game (push) Successful in 1m47s

Reviewed-on: #3
This commit was merged in pull request #3.
This commit is contained in:
2026-06-14 15:22:30 +02:00
8 changed files with 147 additions and 97 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ public partial class PlayerPhysicsController : CharacterBody2D {
vely *= 1/4f;
}
if (Input.IsActionJustPressed("turn_back") && vely > 0) {
if (Input.IsActionJustPressed("turn_back") && vely > 0 && velx != 0) {
var side = velx > 0 ? PredictiveCollisions.Location.BottomRight : PredictiveCollisions.Location.BottomLeft;
if (Predictor.AnyHit(side) && !this.IsOnWall()) {
EmitSignal(SignalName.OnTurnbackJump, true, this.IsOnWall());