소스 검색

Create a python script to help center nodes

on grid cells.
DricomDragon 5 년 전
부모
커밋
9db18abcfd
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      Tools/tile_centering.py

+ 10 - 0
Tools/tile_centering.py

@@ -0,0 +1,10 @@
+#!/usr/bin/python3
+
+# Helper to center nodes on grid cells
+# Execute with python 3 and give coordinates to be adjusted
+
+while(True):
+    x = int(float(input("coordinate :")))
+    x = (x // 64) * 64 + 32
+    print("> fixed :", x)
+    print("- - -")