소스 검색

Fix enexpected spawn turn

Turn intention was memorized from the previous level and kept at level
switching.
DricomDragon 5 년 전
부모
커밋
1abc84f8a2
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      Player.gd

+ 1 - 0
Player.gd

@@ -59,6 +59,7 @@ func spawn(newGrid, newPosition, newOrientation):
 	grid = newGrid
 
 	# Adjust spawn situation
+	dire_delta = 0
 	posix = int (newPosition.x / cell_size)
 	posiy = int (newPosition.y / cell_size)
 	dire = int((newOrientation + 45) / 90)