Anonymous941 commited on
Commit
0012ffe
β€’
1 Parent(s): 647a1fe

trying to make this work

Browse files
This view is limited to 50 files because it contains too many changes. Β  See raw diff
Files changed (50) hide show
  1. convert.py +22 -0
  2. enemy_configuration_table.yml +0 -0
  3. sprites/{001.png β†’ train/001.png} +0 -0
  4. sprites/{002.png β†’ train/002.png} +0 -0
  5. sprites/{003.png β†’ train/003.png} +0 -0
  6. sprites/{004.png β†’ train/004.png} +0 -0
  7. sprites/{005.png β†’ train/005.png} +0 -0
  8. sprites/{006.png β†’ train/006.png} +0 -0
  9. sprites/{007.png β†’ train/007.png} +0 -0
  10. sprites/{008.png β†’ train/008.png} +0 -0
  11. sprites/{009.png β†’ train/009.png} +0 -0
  12. sprites/{010.png β†’ train/010.png} +0 -0
  13. sprites/{011.png β†’ train/011.png} +0 -0
  14. sprites/{012.png β†’ train/012.png} +0 -0
  15. sprites/{013.png β†’ train/013.png} +0 -0
  16. sprites/{014.png β†’ train/014.png} +0 -0
  17. sprites/{015.png β†’ train/015.png} +0 -0
  18. sprites/{016.png β†’ train/016.png} +0 -0
  19. sprites/{017.png β†’ train/017.png} +0 -0
  20. sprites/{018.png β†’ train/018.png} +0 -0
  21. sprites/{019.png β†’ train/019.png} +0 -0
  22. sprites/{020.png β†’ train/020.png} +0 -0
  23. sprites/{021.png β†’ train/021.png} +0 -0
  24. sprites/{022.png β†’ train/022.png} +0 -0
  25. sprites/{023.png β†’ train/023.png} +0 -0
  26. sprites/{024.png β†’ train/024.png} +0 -0
  27. sprites/{025.png β†’ train/025.png} +0 -0
  28. sprites/{026.png β†’ train/026.png} +0 -0
  29. sprites/{027.png β†’ train/027.png} +0 -0
  30. sprites/{028.png β†’ train/028.png} +0 -0
  31. sprites/{029.png β†’ train/029.png} +0 -0
  32. sprites/{030.png β†’ train/030.png} +0 -0
  33. sprites/{031.png β†’ train/031.png} +0 -0
  34. sprites/{032.png β†’ train/032.png} +0 -0
  35. sprites/{033.png β†’ train/033.png} +0 -0
  36. sprites/{035.png β†’ train/035.png} +0 -0
  37. sprites/{036.png β†’ train/036.png} +0 -0
  38. sprites/{037.png β†’ train/037.png} +0 -0
  39. sprites/{038.png β†’ train/038.png} +0 -0
  40. sprites/{039.png β†’ train/039.png} +0 -0
  41. sprites/{040.png β†’ train/040.png} +0 -0
  42. sprites/{041.png β†’ train/041.png} +0 -0
  43. sprites/{042.png β†’ train/042.png} +0 -0
  44. sprites/{043.png β†’ train/043.png} +0 -0
  45. sprites/{044.png β†’ train/044.png} +0 -0
  46. sprites/{045.png β†’ train/045.png} +0 -0
  47. sprites/{046.png β†’ train/046.png} +0 -0
  48. sprites/{047.png β†’ train/047.png} +0 -0
  49. sprites/{048.png β†’ train/048.png} +0 -0
  50. sprites/{049.png β†’ train/049.png} +0 -0
convert.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import yaml
3
+ import jsonlines
4
+
5
+ enemies = []
6
+
7
+ print("Reading enemies (this will take a few seconds)")
8
+ with open("enemy_configuration_table.yml") as input_enemies_file:
9
+ input_enemies = yaml.safe_load(input_enemies_file)
10
+
11
+ print("Parsing enemies")
12
+ for enemy_id, enemy in input_enemies.items():
13
+ enemy_name = enemy.get("Name")
14
+ if enemy_name == "null":
15
+ enemy_name = None
16
+ enemies.append({"file_name": "{:03d}".format(enemy_id), "name": enemy_name})
17
+
18
+ print("Writing enemy metadata")
19
+ with jsonlines.open(os.path.join("sprites", "train", "metadata.jsonl"), "w") as writer:
20
+ writer.write_all(enemies)
21
+
22
+ print("Done!")
enemy_configuration_table.yml ADDED
The diff for this file is too large to render. See raw diff
 
sprites/{001.png β†’ train/001.png} RENAMED
File without changes
sprites/{002.png β†’ train/002.png} RENAMED
File without changes
sprites/{003.png β†’ train/003.png} RENAMED
File without changes
sprites/{004.png β†’ train/004.png} RENAMED
File without changes
sprites/{005.png β†’ train/005.png} RENAMED
File without changes
sprites/{006.png β†’ train/006.png} RENAMED
File without changes
sprites/{007.png β†’ train/007.png} RENAMED
File without changes
sprites/{008.png β†’ train/008.png} RENAMED
File without changes
sprites/{009.png β†’ train/009.png} RENAMED
File without changes
sprites/{010.png β†’ train/010.png} RENAMED
File without changes
sprites/{011.png β†’ train/011.png} RENAMED
File without changes
sprites/{012.png β†’ train/012.png} RENAMED
File without changes
sprites/{013.png β†’ train/013.png} RENAMED
File without changes
sprites/{014.png β†’ train/014.png} RENAMED
File without changes
sprites/{015.png β†’ train/015.png} RENAMED
File without changes
sprites/{016.png β†’ train/016.png} RENAMED
File without changes
sprites/{017.png β†’ train/017.png} RENAMED
File without changes
sprites/{018.png β†’ train/018.png} RENAMED
File without changes
sprites/{019.png β†’ train/019.png} RENAMED
File without changes
sprites/{020.png β†’ train/020.png} RENAMED
File without changes
sprites/{021.png β†’ train/021.png} RENAMED
File without changes
sprites/{022.png β†’ train/022.png} RENAMED
File without changes
sprites/{023.png β†’ train/023.png} RENAMED
File without changes
sprites/{024.png β†’ train/024.png} RENAMED
File without changes
sprites/{025.png β†’ train/025.png} RENAMED
File without changes
sprites/{026.png β†’ train/026.png} RENAMED
File without changes
sprites/{027.png β†’ train/027.png} RENAMED
File without changes
sprites/{028.png β†’ train/028.png} RENAMED
File without changes
sprites/{029.png β†’ train/029.png} RENAMED
File without changes
sprites/{030.png β†’ train/030.png} RENAMED
File without changes
sprites/{031.png β†’ train/031.png} RENAMED
File without changes
sprites/{032.png β†’ train/032.png} RENAMED
File without changes
sprites/{033.png β†’ train/033.png} RENAMED
File without changes
sprites/{035.png β†’ train/035.png} RENAMED
File without changes
sprites/{036.png β†’ train/036.png} RENAMED
File without changes
sprites/{037.png β†’ train/037.png} RENAMED
File without changes
sprites/{038.png β†’ train/038.png} RENAMED
File without changes
sprites/{039.png β†’ train/039.png} RENAMED
File without changes
sprites/{040.png β†’ train/040.png} RENAMED
File without changes
sprites/{041.png β†’ train/041.png} RENAMED
File without changes
sprites/{042.png β†’ train/042.png} RENAMED
File without changes
sprites/{043.png β†’ train/043.png} RENAMED
File without changes
sprites/{044.png β†’ train/044.png} RENAMED
File without changes
sprites/{045.png β†’ train/045.png} RENAMED
File without changes
sprites/{046.png β†’ train/046.png} RENAMED
File without changes
sprites/{047.png β†’ train/047.png} RENAMED
File without changes
sprites/{048.png β†’ train/048.png} RENAMED
File without changes
sprites/{049.png β†’ train/049.png} RENAMED
File without changes