From ed384cfcba1a0b093d794b105f75775b34cd6dba Mon Sep 17 00:00:00 2001 From: administrator Date: Wed, 27 Dec 2023 22:01:21 +0100 Subject: [PATCH] FIxed typo --- pygame-test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)