Many tweaks thanks to IAmActuallyCthulhu

Also change apostrophes to double quotes and update C# projects
This commit is contained in:
Aaron Franke
2020-06-28 03:29:20 -04:00
parent 866f826124
commit 006309bd6f
64 changed files with 216 additions and 188 deletions

View File

@@ -0,0 +1,15 @@
using Godot;
public class CeilingFloor : Area2D
{
[Export]
private int _bounceDirection = 1;
public void OnAreaEntered(Area2D area)
{
if (area is Ball ball)
{
ball.direction = (ball.direction + new Vector2(0, _bounceDirection)).Normalized();
}
}
}