Re: Lucia - OpenSource AudioGame engine written in Python
So this isn't a Lucia question persay, but more of a general programming question. It may seem like a silly one at first, but I'm genuinely curious about this.
Let's say I'm creating a clone of Zombie Arena in Python. Let's say I created a function tht allows the user to set up the Arena. It goes something like:
def Whipup_Arena(ZT, MX, MY, MZ, ):ZOMSPAWN
#The Player inputs all the parameters, the ombie types, the spawn rate/spawn time, the max x y and z.
arena_tile=random(tile1, tile 8):
if(ZT==1):
spawn "wolf zombies"
if(zt==2):
spawn "Giant zombies"
else
spawn random
break
This isn't any code, i just tossed that together with no effort or thought behind it at all, so don't talk about the code for now. Anyway, let's say I added a way for the user to input all the stuff on line 1. And all the other stuff below all work properly. My question is, do I put this in the main.py file, or do I create a seperate module for it, and just import it. I can also add more stuff to it, such as the player selecting the arena type, and adjjusting more parameters. Is it more efficient to just include all of that in the executable or modulise it? Will it make the game smaller? will it make a performance upgrade/downgrade if I do both? What would you do in this situation?
And my last request: Do you think you can edit that whipup_arena function for me please? Thanks to both! Cheers!
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector