drawing first map onto screen
This commit is contained in:
@ -4,6 +4,7 @@ from pygame.locals import *
|
||||
from Classes.Objects.Cards.MonsterCard import MonsterCard
|
||||
from Classes.System.Window import Window
|
||||
from Classes.System.InputHandler import InputHandler
|
||||
from Classes.System.World import World
|
||||
|
||||
|
||||
class App:
|
||||
@ -23,6 +24,9 @@ class App:
|
||||
# create sprite groups
|
||||
cards = pygame.sprite.Group()
|
||||
|
||||
# game word
|
||||
world = World(pygame.image.load("Assets/Arenas/default.png").convert_alpha())
|
||||
|
||||
testMonsterCard = MonsterCard((500,500), "Assets/Cards/MonsterCards/testmonstercard/")
|
||||
cards.add(testMonsterCard)
|
||||
|
||||
@ -30,6 +34,9 @@ class App:
|
||||
|
||||
self.__clock.tick(self.__FPS)
|
||||
|
||||
self.__window.getScreen().fill("grey100")
|
||||
world.draw(self.__window.getScreen())
|
||||
|
||||
# update sprite groups
|
||||
cards.update()
|
||||
|
||||
|
Reference in New Issue
Block a user