pyscreeps-arena 0.1.10__tar.gz → 0.5.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. pyscreeps_arena-0.5.1.0/PKG-INFO +49 -0
  2. {pyscreeps-arena-0.1.10 → pyscreeps_arena-0.5.1.0}/pyscreeps_arena/__init__.py +3 -2
  3. pyscreeps_arena-0.5.1.0/pyscreeps_arena/build.py +7 -0
  4. pyscreeps_arena-0.5.1.0/pyscreeps_arena/compiler.py +1058 -0
  5. pyscreeps_arena-0.5.1.0/pyscreeps_arena/core/__init__.py +1 -0
  6. pyscreeps_arena-0.5.1.0/pyscreeps_arena/core/basic.py +72 -0
  7. pyscreeps_arena-0.5.1.0/pyscreeps_arena/core/config.py +19 -0
  8. pyscreeps_arena-0.5.1.0/pyscreeps_arena/core/const.py +28 -0
  9. pyscreeps_arena-0.5.1.0/pyscreeps_arena/core/core.py +132 -0
  10. pyscreeps_arena-0.5.1.0/pyscreeps_arena/core/main.py +9 -0
  11. pyscreeps_arena-0.5.1.0/pyscreeps_arena/core/utils.py +11 -0
  12. pyscreeps_arena-0.5.1.0/pyscreeps_arena/localization.py +140 -0
  13. pyscreeps_arena-0.5.1.0/pyscreeps_arena/project.7z +0 -0
  14. pyscreeps_arena-0.5.1.0/pyscreeps_arena.egg-info/PKG-INFO +49 -0
  15. pyscreeps_arena-0.5.1.0/pyscreeps_arena.egg-info/SOURCES.txt +19 -0
  16. {pyscreeps-arena-0.1.10 → pyscreeps_arena-0.5.1.0}/pyscreeps_arena.egg-info/entry_points.txt +1 -0
  17. {pyscreeps-arena-0.1.10 → pyscreeps_arena-0.5.1.0}/pyscreeps_arena.egg-info/requires.txt +1 -0
  18. {pyscreeps-arena-0.1.10 → pyscreeps_arena-0.5.1.0}/setup.py +5 -3
  19. pyscreeps-arena-0.1.10/PKG-INFO +0 -22
  20. pyscreeps-arena-0.1.10/pyscreeps_arena/build.py +0 -527
  21. pyscreeps-arena-0.1.10/pyscreeps_arena/project.7z +0 -0
  22. pyscreeps-arena-0.1.10/pyscreeps_arena.egg-info/PKG-INFO +0 -22
  23. pyscreeps-arena-0.1.10/pyscreeps_arena.egg-info/SOURCES.txt +0 -10
  24. {pyscreeps-arena-0.1.10 → pyscreeps_arena-0.5.1.0}/pyscreeps_arena.egg-info/dependency_links.txt +0 -0
  25. {pyscreeps-arena-0.1.10 → pyscreeps_arena-0.5.1.0}/pyscreeps_arena.egg-info/top_level.txt +0 -0
  26. {pyscreeps-arena-0.1.10 → pyscreeps_arena-0.5.1.0}/setup.cfg +0 -0
@@ -0,0 +1,49 @@
1
+ Metadata-Version: 2.4
2
+ Name: pyscreeps-arena
3
+ Version: 0.5.1.0
4
+ Summary: Python api|interface to play game: Screeps: Arena.
5
+ Author-email: 2229066748@qq.com
6
+ Maintainer: Eagle'sBaby
7
+ Maintainer-email: 2229066748@qq.com
8
+ License: Apache Licence 2.0
9
+ Keywords: python,screeps:arena,screeps
10
+ Classifier: Programming Language :: Python
11
+ Classifier: Programming Language :: Python :: 3
12
+ Requires-Python: >=3.10
13
+ Description-Content-Type: text/markdown
14
+ Requires-Dist: pyperclip
15
+ Requires-Dist: colorama
16
+ Requires-Dist: py7zr
17
+ Requires-Dist: chardet
18
+ Requires-Dist: Transcrypt==3.9.1
19
+ Requires-Dist: mkdocs
20
+ Requires-Dist: mkdocstrings[python]
21
+ Requires-Dist: mkdocs-material
22
+ Dynamic: author-email
23
+ Dynamic: classifier
24
+ Dynamic: description
25
+ Dynamic: description-content-type
26
+ Dynamic: keywords
27
+ Dynamic: license
28
+ Dynamic: maintainer
29
+ Dynamic: maintainer-email
30
+ Dynamic: requires-dist
31
+ Dynamic: requires-python
32
+ Dynamic: summary
33
+
34
+ # PyScreeps-Arena
35
+
36
+ use cmd `pyscreeps-arena <your new project path>` to new a project.
37
+
38
+ ## Tutorial
39
+
40
+ * [Tutorial 1: Loop and import](https://github.com/EagleBaby/python_screeps_arena/blob/main/tutorials/tutorial1-Loop%20and%20import.md)
41
+ * [Tutorial 2: Simple move](https://github.com/EagleBaby/python_screeps_arena/blob/main/tutorials/tutorial2-Simple%20move.md)
42
+ * [Tutorial 3: First attack](https://github.com/EagleBaby/python_screeps_arena/blob/main/tutorials/tutorial3-First%20attack.md)
43
+ * [Tutorial 4: Creeps bodies](https://github.com/EagleBaby/python_screeps_arena/blob/main/tutorials/tutorial4-Creeps%20Bodies.md)
44
+ * [Tutorial 5: Store and transfer](https://github.com/EagleBaby/python_screeps_arena/blob/main/tutorials/tutorial5-Store%20and%20transfer.md)
45
+ * [Tutorial 6: Terrain](https://github.com/EagleBaby/python_screeps_arena/blob/main/tutorials/tutorial6-Terrain.md)
46
+ * [Tutorial 7: Spawn creeps](https://github.com/EagleBaby/python_screeps_arena/blob/main/tutorials/tutorial7-Spawn%20creeps.md)
47
+ * [Tutorial 8: Harvest energy](https://github.com/EagleBaby/python_screeps_arena/blob/main/tutorials/tutorial8-Harvest%20energy.md)
48
+ * [Tutorial 9: Construction](https://github.com/EagleBaby/python_screeps_arena/blob/main/tutorials/tutorial9-Construction.md)
49
+ * [Tutorial 10: Final test](https://github.com/EagleBaby/python_screeps_arena/blob/main/tutorials/tutorial10-Final%20test.md)
@@ -2,11 +2,12 @@ import os
2
2
  import sys
3
3
  import shutil
4
4
  import py7zr
5
-
5
+ from pyscreeps_arena.core import const, config
6
6
  def CMD_NewProject():
7
7
  """
8
8
  cmd:
9
9
  pyscreeps-arena [project_path]
10
+ arena [project_path]
10
11
 
11
12
  * 复制"src" "game" "build.py" 到指定目录
12
13
 
@@ -14,7 +15,7 @@ def CMD_NewProject():
14
15
 
15
16
  """
16
17
  if len(sys.argv) < 2:
17
- print("Usage: pyarena new [project_path]")
18
+ print("Usage: pyarena new [project_path]\n# or\narena new [project_path]")
18
19
  return
19
20
  project_path = sys.argv[1]
20
21
  if not os.path.exists(project_path):
@@ -0,0 +1,7 @@
1
+ from pyscreeps_arena.compiler import Compiler
2
+
3
+ if __name__ == '__main__':
4
+ compiler = Compiler('src', 'library', 'build')
5
+
6
+ compiler.compile()
7
+ # compiler.clean()