added waiter

This commit is contained in:
Michał Szuszert 2022-03-08 11:36:15 +01:00
parent d847972348
commit c59836e549
4 changed files with 10 additions and 2 deletions

View File

@ -3,7 +3,7 @@
<editorsettings>
<export target="cafe.json" format="json"/>
</editorsettings>
<tileset firstgid="1" source="../cafe1.tsx"/>
<tileset firstgid="1" source="cafe1.tsx"/>
<layer id="1" name="Warstwa Kafelków 1" width="20" height="20">
<data encoding="csv">
1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,6,

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<tileset version="1.8" tiledversion="1.8.2" name="cafe1" tilewidth="32" tileheight="32" tilecount="30" columns="6">
<image source="../Downloads/cafe1.png" width="192" height="160"/>
<image source="cafe1.png" width="192" height="160"/>
<tile id="9">
<properties>
<property name="chair" value=""/>

View File

@ -8,6 +8,13 @@ clock = pygame.time.Clock()
gameMap = pytmx.load_pygame("cafe.tmx")
waiterImg = pygame.image.load("waiter.png")
waiterX = 50
waiterY = 300
def waiter():
display.blit(waiterImg, (waiterX, waiterY))
while(True):
clock.tick(60)
@ -26,4 +33,5 @@ while(True):
if(tile != None):
display.blit(tile, (x * gameMap.tilewidth, y * gameMap.tileheight))
waiter()
pygame.display.update()

BIN
waiter.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB