sandpypi/settings.py
Stan44 a03ba2b950 purdyfied and added to the commit messages
may of changed a couple of other things
maybe minor tweaks to physics.
2024-12-26 05:44:34 -06:00

19 lines
465 B
Python

#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()