Dictionary Keys Instead of Variables?

Discuss game development design and post your game ideas

Post » Sat Apr 06, 2013 3:33 am

Awesome, that is pretty much what I was hoping to hear, thanks!
B
6
S
3
G
1
Posts: 102
Reputation: 1,379

Post » Fri Apr 12, 2013 8:31 pm

[QUOTE=rosareven] I do remember being told not to use globals in programming outside of C2, such as Java and C++. Forgot what the reason was now though.[/QUOTE]

Wasn't it something about taking up too many resources? If all variables are global in C++ code, then that memory will always stay used. Whereas the local variables are created and destroyed as needed.

Not sure if that is 100% right...I only play a programmer on TV!Manley232013-04-12 20:32:31
B
32
S
7
G
8
Posts: 312
Reputation: 8,467

Previous

Return to Game Development, Design & Ideas

Who is online

Users browsing this forum: No registered users and 0 guests