XxtraLarGe
2004.01.26, 02:36 AM
I have created my own version of Pong, called "xPong" ;) You can download it here: xPong (http://www.msu.edu/~brinkma1/xPong.app.sitx). It is only 20k & the source code MacPong.sitx (http://www.msu.edu/~brinkma1/MacPong.sitx) is only 10k.
Please download it, play it, and check out the code. I'm sure there's a ton of memory leaks, I'd appreciate anybody telling me what's wrong (leave feedback in this thread). It's only at version 0.1, I still plan on adding difficulty levels, sounds & a drop-down sheet ala MacTacToe (http://www.msu.edu/~brinkma1/MacTacToe.app.sitx).
When I wake up in the morning, I'll take a look @ Blob's code, and see what he did different than mine. I'm sure there will be lots of things for both of us to learn. F'rinstance, my version is only one class - the NSView subclass. I'm sure Blob made his nice and object oriented, whereas mine's a hack.
I must admit, I did get some of the code from Mike Beam's "Intro to Cocoa Animation," at MacDevCenter, and Blob's own thread about his version were also helpful. I didn't know how to get the up & down arrow keys.
I don't know what my next project will be, but I'm sure that it won't be the same as Blob's, LOL! I think I need to tidy up my code in my first two games first before I move on though.
Please download it, play it, and check out the code. I'm sure there's a ton of memory leaks, I'd appreciate anybody telling me what's wrong (leave feedback in this thread). It's only at version 0.1, I still plan on adding difficulty levels, sounds & a drop-down sheet ala MacTacToe (http://www.msu.edu/~brinkma1/MacTacToe.app.sitx).
When I wake up in the morning, I'll take a look @ Blob's code, and see what he did different than mine. I'm sure there will be lots of things for both of us to learn. F'rinstance, my version is only one class - the NSView subclass. I'm sure Blob made his nice and object oriented, whereas mine's a hack.
I must admit, I did get some of the code from Mike Beam's "Intro to Cocoa Animation," at MacDevCenter, and Blob's own thread about his version were also helpful. I didn't know how to get the up & down arrow keys.
I don't know what my next project will be, but I'm sure that it won't be the same as Blob's, LOL! I think I need to tidy up my code in my first two games first before I move on though.