FIxed typo
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user