Skip to content
Snippets Groups Projects
Commit 15787bf7 authored by Robert Seimetz's avatar Robert Seimetz
Browse files

Move settings from subfolder gameparts to main & change dependencies

parent 5612c435
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ import pygame
import pytmx
import math
import os, sys, subprocess
from gameparts.settings import *
from settings import *
pygame.font.init()
pygame.mixer.init()
......@@ -310,4 +310,4 @@ def time():
def retry(path):
subprocess.call([sys.executable, os.path.realpath(path)] + sys.argv[1:])
#Normalerweise immer __file__ übergeben
\ No newline at end of file
#Normalerweise immer __file__ übergeben
......@@ -2,7 +2,7 @@ import pygame
import math
import random
from gameparts.settings import *
from settings import *
from gameparts.basics import _Physics, _Character, rotate_image
......
import pygame
import math
from gameparts.settings import *
from settings import *
from gameparts.basics import _Object, _AnimatedObject, time, get_image_from_Spritesheet
class Coin(_Object):
......@@ -11,4 +11,4 @@ class Coin(_Object):
class AnimatedCoin(_AnimatedObject):
def __init__(self, location, scale, image="CoinAnimated.png", spritesize=(16,16)):
_AnimatedObject.__init__(self, location, scale, image, spritesize)
self.animationspeed = 4
\ No newline at end of file
self.animationspeed = 4
import pygame
import math
from gameparts.settings import *
from settings import *
from gameparts.basics import _Physics, _Character, rotate_image
class LinearPlayer(_Character,_Physics):
......
import pygame, math, pytmx, random, time
from gameparts.settings import *
from settings import *
from gameparts.players import *
from gameparts.enemies import *
from gameparts.objects import *
......
GRAVITY = False
SCROLLING = True
FONT = "Roboto"
\ No newline at end of file
FONT = "Roboto"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment