It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
Uploaded the first SDL tutorial. Next one next week :-)
I'm terribly sorry, but I think I'll be forced to break my 'an update per week' pattern. I have some real life issues that need resolving, I will however have enough time again next week. Don't worry, I have all my notes and progress right here, so I'm not putting anything on hold - I just need to take care of real life first and the blog second.
First off, real life is important so don't feel bad and take care of thing.

Second, who is in charge of this thread and why didn't anyone tell me about? I'll have some catching up to do but this is definatley something I would enjoy. I admit that I'm not the strongest in C++, I used mostly Basic and C years ago and mostly Java and C# today. I played a bit with Python and C++ but never for any serious projects.
avatar
Stevedog13: Second, who is in charge of this thread and why didn't anyone tell me about? I'll have some catching up to do but this is definatley something I would enjoy. I admit that I'm not the strongest in C++, I used mostly Basic and C years ago and mostly Java and C# today. I played a bit with Python and C++ but never for any serious projects.
heh, don't worry, if you've got a previous knowledge of any object-oriented programming language, you'll catch up pretty fast. After all, we got into game programming as far as making an empty window :D (and I can't stress enough how important that is.)

I find the rest of the SDL tutorial ... let's say not really noob-friendly, so I'm writing my own based on the knowledge gained from that one. That's why it's taking me so long.
avatar
Stevedog13: ...
avatar
Lafazar: ...
avatar
Nroug7: ...
avatar
Thunderstone: ...
avatar
CowboyBebop: ...
avatar
Kaldurenik: ...
avatar
Skunk: ...
avatar
jefequeso: ...
avatar
Aningan: ...
avatar
neophile: ...
avatar
WrathOfTheAngels: ...
avatar
Bodkin: ...
avatar
tomba4: ...
avatar
senbon: ...
avatar
Cameron: ...
avatar
xyem: ...
avatar
captfitz: ...
avatar
Psyringe: ...
avatar
kavazovangel: ...
avatar
thebum06: ...
avatar
Adzeth: ...
avatar
etb: ...
avatar
Wishbone: ...
Just to let you guys know: I've had some real-life trouble and then, when I thought I can finally get to coding, I got a horrible flu that didn't quite let me to concentrate on anything. However, behold: I'm back on the track! And behold, I'm making progress! So, as soon as I finish tic-tac-toe, I'll start modifying the code into tetris, and uploading some tutorials written by almighty me ('cause I don't really like the basics tutorials on SDLtutorials website.)

Oh and don't bother watching the blog, I'll inform you trough here as soon as I finish first tutorial :-)
Attachments:
snapshot2.jpg (128 Kb)
Post edited April 13, 2012 by Fenixp
That's good. I just finished the Tic-Tac-Toe part of the SDL tutorial myself, so I'm glad you're ready to continue now :)
avatar
thebum06: That's good. I just finished the Tic-Tac-Toe part of the SDL tutorial myself, so I'm glad you're ready to continue now :)
Did you finish the victory message and AI parts? Just thinking that we could share our code on the GCGPG forums, but I still have some trouble with AI :-)
avatar
thebum06: That's good. I just finished the Tic-Tac-Toe part of the SDL tutorial myself, so I'm glad you're ready to continue now :)
avatar
Fenixp: Did you finish the victory message and AI parts? Just thinking that we could share our code on the GCGPG forums, but I still have some trouble with AI :-)
I got those yes, but the AI is very basic. Basically it just checks if it has a possibility to win, and if not then checks if it has a possibility to block the player, and if not it places randomly.

I'll see if I can put a link up on the GCGPG forum. If I can figure out how github works.
avatar
thebum06: ...
There, uploaded my project. I hope I did it right :D We differ the most in checking neighboring cells.
Post edited April 15, 2012 by Fenixp
avatar
Fenixp: There, uploaded my project. I hope I did it right :D We differ the most in checking neighboring cells.
Yes, I couldn't figure out a good way to check winning conditions through a loop so I just went through all of them manually since there aren't a lot of them in Tic Tac Toe.
But it seems like you found a smarter way to do that. I'm a bit too tired to understand how it works 100%, but I'll check it again tomorrow when I've had some sleep.

Edit: And it looks like you forgot to set your victory, menu and draw surface pointers to null in the constructor ;) I'm not sure if that makes a difference though.
Post edited April 15, 2012 by thebum06
avatar
thebum06: Edit: And it looks like you forgot to set your victory, menu and draw surface pointers to null in the constructor ;) I'm not sure if that makes a difference though.
Nope, it doesn't. But it IS a safe way to do things. There are more parts in the projects that require some tuning, like getting rid of magic numbers and sometimes placing functions where they belong, possible creating another file for AI. But... Well... It works :D Anyway, thanks. And Yeah, I spent a whole day figuring out how to transfer coordinate system to one dimensional array.
Post edited April 15, 2012 by Fenixp
avatar
Wishbone: ...
avatar
Fenixp: Just to let you guys know: I've had some real-life trouble and then, when I thought I can finally get to coding, I got a horrible flu that didn't quite let me to concentrate on anything. However, behold: I'm back on the track! And behold, I'm making progress! So, as soon as I finish tic-tac-toe, I'll start modifying the code into tetris, and uploading some tutorials written by almighty me ('cause I don't really like the basics tutorials on SDLtutorials website.)

Oh and don't bother watching the blog, I'll inform you trough here as soon as I finish first tutorial :-)
No problem :) i code once in a while when i have time and you are helping on your own time so dont worry to much about it :)
Just spotted this thread.

I got quite alot of experience making games using C++ aswell as Java, C# and Actionscript (and i got experience using a bunch of other languages for application and web programming aswell).

Thus: if anyone needs help with anything feel free to toss me a PM or email me at simon_forsman at hotmail dot com or SimonForsman83 at gmail dot com
(The hotmail address also works for windows live messenger)
(I've also registered on the GCGPG forums)
avatar
SimonForsman: ...
Thank you! You'll probably be best off watching this topic, thou, boards are pretty much dead and exist mainly for sharing code anyway :-)
avatar
Stevedog13: ...
avatar
Lafazar: ...
avatar
Nroug7: ...
avatar
Thunderstone: ...
avatar
CowboyBebop: ...
avatar
Kaldurenik: ...
avatar
Skunk: ...
avatar
jefequeso: ...
avatar
Aningan: ...
avatar
neophile: ...
avatar
WrathOfTheAngels: ...
avatar
Bodkin: ...
avatar
tomba4: ...
avatar
senbon: ...
avatar
Cameron: ...
avatar
xyem: ...
avatar
captfitz: ...
avatar
Psyringe: ...
avatar
kavazovangel: ...
avatar
thebum06: ...
avatar
Adzeth: ...
avatar
etb: ...
avatar
Wishbone: ...
I sure as heck hope you guys are still eager to learn, since after I managed to shovel trough all the crap life throws at me, I have finished writing the first two parts of the tutorial! Just head to http://gcgpg.fuzz.me.uk/, read the Prelude one and then you can start! And I would also really love to get some feedback from you guys: If there's not enough people following the tutorial and cheering for how awesome I am, I'll most probably just stop at some point.
Post edited April 26, 2012 by Fenixp