#File Name: settings.py # Global settings and impoorts for the project. import pygame import json import random import time def load_particle_properties(): try: with open('particles.json') as f: return json.load(f) except (FileNotFoundError, json.JSONDecodeError): print("Error loading particles.json") return {} # Load particle properties once when module is imported particle_properties = load_particle_properties()