sandpypi/settings.py
Stan44 b9a280208b made several changes working on zoom
added proper particle count
there is a settings menu
some keybindings have been added ESC to exit
Glowing particles are now a thing
Gas effects can be toggled on and off for performance
2024-12-26 19:16:46 -06:00

27 lines
615 B
Python

#File Name: settings.py
# Global settings and impoorts for the project.
import pygame
import json
import random
import time
engine_settings = {
'enable_glow': True,
'enable_gas_effect': True
# 'settings': True/False
}
# Load particle properties from JSON file
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()