Wouldn't that depend on what else is happening?
Ideally 'frame' would be a field within an 'explosion' object.
If you set 'frame' as global to the whole program and you have, say, 10 explosions, you'd need 10 seperate global statements which is cumbersome and, most likely, unworkable.
Ideally 'frame' would be a field within an 'explosion' object.
If you set 'frame' as global to the whole program and you have, say, 10 explosions, you'd need 10 seperate global statements which is cumbersome and, most likely, unworkable.