Corrected some imports.

This commit is contained in:
The Wobbler 2024-02-25 15:09:15 +01:00
parent eca611ea34
commit 19d6a0f604

View file

@ -3,8 +3,8 @@
import os import os
import pygame import pygame
import numpy import numpy
from tools import pg # if you import pg from tools, you dont need to init pygame. from wobbl_tools import pg # if you import pg from tools, you dont need to init pygame.
from tools.file_dict import FileDict from wobbl_tools.data_file import DictFile
from physics.parabelfunc import berechneflugbahn from physics.parabelfunc import berechneflugbahn
@ -105,10 +105,10 @@ class Cowyeet:
def load_settings(self): def load_settings(self):
if os.path.isfile("settings.txt"): # If the settings exist, load them into a dict. Else create the settings with the default values. if os.path.isfile("settings.txt"): # If the settings exist, load them into a dict. Else create the settings with the default values.
settings = FileDict("settings.txt") settings = DictFile("settings.txt")
else: else:
settings = FileDict() settings = DictFile()
settings.path = "settings.txt" settings.path = "settings.txt"
settings["win_size"] = DEFAULT_WINDOW_SIZE settings["win_size"] = DEFAULT_WINDOW_SIZE
settings["level_size_multiplier"] = 1 settings["level_size_multiplier"] = 1