added waiter
This commit is contained in:
parent
d847972348
commit
c59836e549
2
cafe.tmx
2
cafe.tmx
@ -3,7 +3,7 @@
|
|||||||
<editorsettings>
|
<editorsettings>
|
||||||
<export target="cafe.json" format="json"/>
|
<export target="cafe.json" format="json"/>
|
||||||
</editorsettings>
|
</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">
|
<layer id="1" name="Warstwa Kafelków 1" width="20" height="20">
|
||||||
<data encoding="csv">
|
<data encoding="csv">
|
||||||
1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,6,
|
1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,6,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<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">
|
<tile id="9">
|
||||||
<properties>
|
<properties>
|
||||||
<property name="chair" value=""/>
|
<property name="chair" value=""/>
|
||||||
|
8
tiles.py
8
tiles.py
@ -8,6 +8,13 @@ clock = pygame.time.Clock()
|
|||||||
|
|
||||||
gameMap = pytmx.load_pygame("cafe.tmx")
|
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):
|
while(True):
|
||||||
|
|
||||||
clock.tick(60)
|
clock.tick(60)
|
||||||
@ -26,4 +33,5 @@ while(True):
|
|||||||
if(tile != None):
|
if(tile != None):
|
||||||
display.blit(tile, (x * gameMap.tilewidth, y * gameMap.tileheight))
|
display.blit(tile, (x * gameMap.tilewidth, y * gameMap.tileheight))
|
||||||
|
|
||||||
|
waiter()
|
||||||
pygame.display.update()
|
pygame.display.update()
|
BIN
waiter.png
Normal file
BIN
waiter.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
Loading…
Reference in New Issue
Block a user