123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|408|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> C/C++/C#/Other -> C++ Snake.

Sun, 31 Jul 2011, 07:05
steve_ancell
I'm a big kid look what I can do... socoder.net/uploads/51/SnakeC++.zip

|edit| I know it's not much, but it shows I'm making progress with C++ |edit|

It's a VC++ 2008 project, there's a EXE file in the release folder for those who don't have VC++ 2008 and SFML.
Sun, 31 Jul 2011, 11:04
Hotshot
Main.cpp code is so small but very good....it seem to me that is much better than SDL

You are showing good progress in such as short time as you have done well to pace yourself with C++ skill

p.s. I know add on that you put such as #include "Snake.h" but it still very good
Sun, 31 Jul 2011, 15:05
steve_ancell
Snake.h, Segment.h etc is all my work, but the graphics and events stuff is handled by SFML.
Sun, 31 Jul 2011, 16:29
shroom_monk
Pretty neat, nice to see you're getting on well. Your code is certainly neater than some of mine.

One thing you may want to know (if you don't already) is that you can include the SFML libraries statically as opposed to dynamically as you do here. Instructions for your specific compiler will be on the SFML website, but basically it means that the libraries are compiled into the executable itself, and you don't have to include all the SFML DLLs with your program. I don't know whether there's some standard practice as to whether you do it statically or dynamically, but as personal preference I do mine statically. Just something to consider.

-=-=-
A mushroom a day keeps the doctor away...

Keep It Simple, Shroom!
Sun, 31 Jul 2011, 17:44
steve_ancell
Thanx shroom. It would be more sensible doing it that way.