Browse Source

Put walls

DricomDragon 5 years ago
parent
commit
785499a224
2 changed files with 2 additions and 0 deletions
  1. 2 0
      Player.gd
  2. BIN
      player.png

+ 2 - 0
Player.gd

@@ -72,6 +72,8 @@ func _physics_process(delta):
 	turn(dire)
 	dire_delta = 0
 
+	grid.set_cell( posix, posiy, 1)
+
 	posix += dirx
 	posiy += diry
 

BIN
player.png