Jump to content
Posted 02 October 2011 - 02:13 PM
Posted 02 October 2011 - 02:29 PM
Posted 02 October 2011 - 05:44 PM
Posted 03 October 2011 - 12:58 AM
Posted 03 October 2011 - 01:38 AM
it's fine to post code. When you get stuck on something, we encourage you to post all relevant code, and a screenshot of your game if it sheds any light on the problem. People often post too little code for others to help without asking that more be posted. Also, post exact error messages. But if you just want a code review, put it on github or google code or some other repository and provide a link. Uselessly excessively long posts are the root of some evil.
Okay then, so I'll have a bash at Tetris, and see how that goes. Is it acceptable to post the code on the forums for people to make suggestions?
Posted 03 October 2011 - 04:46 AM
"App". is an acronym and must always be followed by a dot.
Posted 03 October 2011 - 08:09 AM
Posted 04 October 2011 - 01:06 PM
Or just use boost::shared_ptrs for everything, and then you won't have memory leaks.
Honestly, tetris really shouldn't involve that many memory allocations. I recall writing tetris clones in 20-30 lines of BASIC on 8-bit micros with fixed length arrays and things.
Posted 06 October 2011 - 04:42 AM