浏览代码

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("- - -")