python - Are Global variables ok in this scope? -
as (nearly) programmer else, i'm member of 'no global variable' fan club, in cases don't know another, maybe better way solving problem.
for example @ moment i'm programming game in pygame , i've got mouse class example holds actual mode, select, aim or move. of course have change mode several times , in several functions, here problem, if mouse-object isn't global, don't know how 'sync' object in different functions.
maybe give me hint how solve problem or if not 'i case global variables great full' anyway please @ least 1 of these 2 things :)
leon
Comments
Post a Comment