Update imageobj for tests
This commit is contained in:
@@ -293,7 +293,7 @@ class GOIMAGE(GameObject):
|
|||||||
super().__init__(name, surface, mainscreensize, posx_init, posy_init, move_speed, is_player, is_rect, color, rect_size, image)
|
super().__init__(name, surface, mainscreensize, posx_init, posy_init, move_speed, is_player, is_rect, color, rect_size, image)
|
||||||
|
|
||||||
self.__image = pygame.image.load(image).convert()
|
self.__image = pygame.image.load(image).convert()
|
||||||
self.__image = pygame.transform.scale(self.__image, (20, 20))
|
#self.__image = pygame.transform.scale(self.__image, (20, 20)) Scale the selected image
|
||||||
|
|
||||||
def move(self):
|
def move(self):
|
||||||
pass
|
pass
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ def spawn_entities(x:int, list_of_objects:list):
|
|||||||
|
|
||||||
background = pygame.surface.Surface((640,480))
|
background = pygame.surface.Surface((640,480))
|
||||||
|
|
||||||
imageobj = GOIMAGE("TEST", PLAYGROUND, PLAYGROUND.get_size(), 50, 50, image="data/models/fruit1.jpeg", rect_size=(15,50))
|
imageobj = GOIMAGE("TEST", PLAYGROUND, PLAYGROUND.get_size(), 50, 50, image="data/models/fruit_1_1_scaled_2.png", rect_size=(15,50))
|
||||||
|
|
||||||
x = 3600
|
x = 3600
|
||||||
invert = False
|
invert = False
|
||||||
|
|||||||
Reference in New Issue
Block a user