concept
This commit is contained in:
parent
f68cbff936
commit
015bfb435a
45
nauka2.py
45
nauka2.py
@ -17,6 +17,51 @@ from pygame.locals import (
|
|||||||
SCREEN_WIDTH = 564
|
SCREEN_WIDTH = 564
|
||||||
SCREEN_HEIGHT = 564
|
SCREEN_HEIGHT = 564
|
||||||
|
|
||||||
|
|
||||||
|
class Dishes:
|
||||||
|
#to do
|
||||||
|
x=0
|
||||||
|
y=0
|
||||||
|
|
||||||
|
def __int__(self, x, y):
|
||||||
|
self.x = x
|
||||||
|
self.y = y
|
||||||
|
|
||||||
|
def draw(self, surface, image):
|
||||||
|
surface.blit(image, (self.x, self.y))
|
||||||
|
|
||||||
|
|
||||||
|
class Clients:
|
||||||
|
#to do
|
||||||
|
x = 0
|
||||||
|
y = 0
|
||||||
|
|
||||||
|
def __int__(self, x, y):
|
||||||
|
self.x = x
|
||||||
|
self.y = y
|
||||||
|
|
||||||
|
def draw(self, surface, image):
|
||||||
|
surface.blit(image, (self.x, self.y))
|
||||||
|
|
||||||
|
|
||||||
|
class Kitchen:
|
||||||
|
#to do or delete
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class Order:
|
||||||
|
#to do
|
||||||
|
|
||||||
|
x = 0
|
||||||
|
y = 0
|
||||||
|
|
||||||
|
|
||||||
|
def __int__(self, x, y, id):
|
||||||
|
self.x = x
|
||||||
|
self.y = y
|
||||||
|
self.id = id
|
||||||
|
|
||||||
|
|
||||||
def draw():
|
def draw():
|
||||||
screen.blit(background_image, [0, 0])
|
screen.blit(background_image, [0, 0])
|
||||||
screen.blit(player.surf, player.rect)
|
screen.blit(player.surf, player.rect)
|
||||||
|
Loading…
Reference in New Issue
Block a user