mercredi 24 mars 2021

How can you make a uncontrollable sprite shoot randomly in pygame?

I am making a space invaders game with python and I want the enemy to shoot randomly. I know there are questions titled the same thing, but I couldn't find anything that worked. I tried to duplicate some of my player's shooting code and change variables for the enemy, but that didn't work either. Does someone know how to tackle this issue?




Aucun commentaire:

Enregistrer un commentaire