[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Declaring variables in function as if at code's line-level
- To: pygame-users@xxxxxxxx
- Subject: [pygame] Declaring variables in function as if at code's line-level
- From: Brian Brown <brobab@xxxxxxxxx>
- Date: Sat, 10 Mar 2012 10:50:22 -0800
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sat, 10 Mar 2012 13:50:30 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=oo2DWQWJIH6Ig7O+nzocXyn6baLR8aNsm4lfqjT6+6o=; b=zV1D4YbYf9nTrgFjjLbpGGBZhstCFc6NqcrgPGOuqfKS8svDxWMCf4/Rv01+L6v844 UCQ0hmK2w7dqM92Evr4DHspIjNcv+sxZk+WxWONjGtwIwe/WHJkd/s21dxE6mpo794aC Lzl2jbaa9iBk4LmsmVY4/YBQjMUxlqkyFZrBG4/jXpEyXlGAZ+uVSNGVmT9pV3HHi66R MjZVKVF7Jl+cLaeua1LzvLxK1EMvAra1s5qBfJ/e4KydXszNBN7NCMiS3pNwzj7sViJJ k+n8x6M+jZfUzBQrGnd/lxW+i+8CGwznWKoz1zLPN/uN/1DyZ7tBZJgOEhDBzTbVYf+H orpA==
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hi pygame users, just a simple question-- How can one cause variables
at "function-level" to behave like variables at "line-level"? (With
basic python code) I just want to avoid using "global" over and over
again (in many different functions) while I want to declare, use, and
delete all my game's variables inside functions.Thanks.
Matt