revised file structure to be more organized
@ -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')
|
||||||
|
Before Width: | Height: | Size: 631 B After Width: | Height: | Size: 631 B |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 807 B After Width: | Height: | Size: 807 B |
Before Width: | Height: | Size: 610 B After Width: | Height: | Size: 610 B |
Before Width: | Height: | Size: 820 B After Width: | Height: | Size: 820 B |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 864 B After Width: | Height: | Size: 864 B |
Before Width: | Height: | Size: 740 B After Width: | Height: | Size: 740 B |
Before Width: | Height: | Size: 490 B After Width: | Height: | Size: 490 B |
Before Width: | Height: | Size: 736 B After Width: | Height: | Size: 736 B |