Corrected some imports.
This commit is contained in:
parent
eca611ea34
commit
19d6a0f604
1 changed files with 4 additions and 4 deletions
|
@ -3,8 +3,8 @@
|
|||
import os
|
||||
import pygame
|
||||
import numpy
|
||||
from tools import pg # if you import pg from tools, you dont need to init pygame.
|
||||
from tools.file_dict import FileDict
|
||||
from wobbl_tools import pg # if you import pg from tools, you dont need to init pygame.
|
||||
from wobbl_tools.data_file import DictFile
|
||||
from physics.parabelfunc import berechneflugbahn
|
||||
|
||||
|
||||
|
@ -105,10 +105,10 @@ class Cowyeet:
|
|||
|
||||
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.
|
||||
settings = FileDict("settings.txt")
|
||||
settings = DictFile("settings.txt")
|
||||
|
||||
else:
|
||||
settings = FileDict()
|
||||
settings = DictFile()
|
||||
settings.path = "settings.txt"
|
||||
settings["win_size"] = DEFAULT_WINDOW_SIZE
|
||||
settings["level_size_multiplier"] = 1
|
||||
|
|
Loading…
Reference in a new issue