made progress on card resizing

This commit is contained in:
2023-12-12 22:30:44 +01:00
parent 3279713778
commit 386aaddae3
7 changed files with 23 additions and 16 deletions

View File

@ -15,17 +15,15 @@ class World():
self.buildGameWorld()
def buildGameWorld(self):
# TODO: rebuild these to use the BoardField Class and to append them to the __boardFields list
# construct elements arround the playerfield
# Todo add lifepoint label for player and enemy and make them scriptable
pRow1Height = ((2 * self.__cardHeight) + 60)
pRow2Height = ((2 * self.__cardHeight) + self.__cardHeight + 70)
eRow1Height = 15
eRow2Height = (self.__cardHeight + 25)
eRow1Height = 105
eRow2Height = (self.__cardHeight + 110)
pRow1Height = ((2 * self.__cardHeight) + 145)
pRow2Height = ((2 * self.__cardHeight) + self.__cardHeight + 150)
eDeckPos = pygame.Vector2((self.__cardOffset + ((self.__cardWidth + 10) * 0)), 15)
eGravePos = pygame.Vector2((self.__cardOffset + ((self.__cardWidth + 10) * 0)), (self.__cardHeight + 25))
eDeckPos = pygame.Vector2((self.__cardOffset + ((self.__cardWidth + 10) * 0)), eRow1Height)
eGravePos = pygame.Vector2((self.__cardOffset + ((self.__cardWidth + 10) * 0)), eRow2Height)
pGravePos = pygame.Vector2((self.__cardOffset + ((self.__cardWidth + 10) * 5)), pRow1Height)
pDeckPos = pygame.Vector2((self.__cardOffset + ((self.__cardWidth + 10) * 5)), pRow2Height)