revised file structure to be more organized

This commit is contained in:
Nick Dyer 2021-06-05 18:05:27 -04:00
parent 99cfcf4b48
commit 6c52458f41
15 changed files with 2 additions and 2 deletions

View File

@ -84,10 +84,10 @@ class SelectionEgg(pygame.sprite.Sprite):
self.egg_color = egg_color self.egg_color = egg_color
# Loads the JSON file of the egg to read in data. # Loads the JSON file of the egg to read in data.
with open(script_dir + '/resources/data/egg_info/{0}.json'.format(egg_color), 'r') as save_file: with open(script_dir + '/resources/data/bloop_info/{0}.json'.format(egg_color), 'r') as save_file:
json_file = json.load(save_file) json_file = json.load(save_file)
save_file.close() save_file.close()
image_directory = script_dir + '/resources/images/egg_images/{0}'.format(egg_color) image_directory = script_dir + '/resources/images/bloops/{0}/egg_images'.format(egg_color)
# Gets the description off the egg from the JSON file. # Gets the description off the egg from the JSON file.
self.description = json_file.get('description') self.description = json_file.get('description')

View File

Before

Width:  |  Height:  |  Size: 807 B

After

Width:  |  Height:  |  Size: 807 B

View File

Before

Width:  |  Height:  |  Size: 490 B

After

Width:  |  Height:  |  Size: 490 B