added remove tile debug key and made better background collisison

This commit is contained in:
2022-11-13 20:09:33 +01:00
parent 855ba9f0e2
commit a16f599a56
3 changed files with 49 additions and 44 deletions

View File

@@ -28,6 +28,10 @@ public class Player : KinematicBody2D
{
GD.Print(coordinates);
}
if (Input.IsKeyPressed((int)KeyList.F1))
{
tilemap.SetCell((int)coordinates.x, (int)coordinates.y, -1);
}
if (Input.IsKeyPressed((int)KeyList.F2))
{
tilemap.SetCell((int)coordinates.x, (int)coordinates.y, 1);