diff --git a/pygame-test.py b/pygame-test.py index d0d5b55..f06708b 100644 --- a/pygame-test.py +++ b/pygame-test.py @@ -1,6 +1,6 @@ import pygame import pygame_menu -import random as rnd +import random as rand pygame.init() MAINSCREEN_SIZE = (1024,768) @@ -124,7 +124,7 @@ def spawn_entities(x:int): Objects = list() count = 0 for y in range(x): - Objects.append(GameObject("Entitiy-"+str(count), rnd.randint(1,MAINSCREEN_SIZE[0]), rnd.randint(1,MAINSCREEN_SIZE[1]), rnd.randint(1,15))) + Objects.append(GameObject("Entitiy-"+str(count), rand.randint(1,MAINSCREEN_SIZE[0]), rand.randint(1,MAINSCREEN_SIZE[1]), rand.randint(1,15))) count += 1 for x in Objects: print(x)