Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,676 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,204 people online right now. Registration is fast and FREE... Join Now!




Stepping up to 2D

2 Pages V  1 2 >  
Reply to this topicStart new topic

Stepping up to 2D

Solid
post 4 Sep, 2008 - 12:49 PM
Post #1


New D.I.C Head

*
Joined: 29 Aug, 2008
Posts: 23

Hey I have been here before, for help and you guys came through. I have finally finished my first console based program in C++ plus a few more. (just basic I/Os) But now I would like to step up to graphics (2D). Does anyone know a good place to start?

Sorry if this has already been posted before, but 13 pages and tons of topics a page.. well let's just say I'm the average American.

Can anyone point me in the right direction or another thread. It has to be C++ and cannot be a game engine (libraries are accepted of course).
User is offlineProfile CardPM

Go to the top of the page

WolfCoder
post 4 Sep, 2008 - 01:38 PM
Post #2


ギュウ~

Group Icon
Joined: 5 May, 2005
Posts: 3,575



Thanked 6 times

Dream Kudos: 1450
My Contributions


QUOTE(Solid @ 4 Sep, 2008 - 02:49 PM) *

... It has to be C++ and cannot be a game engine (libraries are accepted of course).


Sounds contradicting, but I assume you just want driver abstraction systems like DirectX, OpenGL, or stuff like SDL. Well, those three are great, but for a beginner, you should look into SDL because the commands are pretty simple and easy to use (plus it's cross platform).
User is offlineProfile CardPM

Go to the top of the page

modi123_1
post 4 Sep, 2008 - 02:08 PM
Post #3


D.I.C Addict

Group Icon
Joined: 12 Jun, 2008
Posts: 518



Thanked 10 times

Dream Kudos: 100
My Contributions


C++? No C#? If you could go c# i would say XNA 2.0 would be great!

http://creators.xna.com/
User is offlineProfile CardPM

Go to the top of the page

Solid
post 4 Sep, 2008 - 02:38 PM
Post #4


New D.I.C Head

*
Joined: 29 Aug, 2008
Posts: 23

QUOTE(modi123_1 @ 4 Sep, 2008 - 03:08 PM) *

C++? No C#? If you could go c# i would say XNA 2.0 would be great!

http://creators.xna.com/


I did try C# but C++ has more support so I could find the answer to problems easier.

And yes I was looking at those but didn't know which one was best... OR if I should go Allegro because I've heard a lot about it too.
User is offlineProfile CardPM

Go to the top of the page

gabehabe
post 5 Sep, 2008 - 02:13 AM
Post #5


Working Girl.

Group Icon
Joined: 6 Feb, 2008
Posts: 5,441



Thanked 94 times

Dream Kudos: 2625

Expert In: ruling the world.

My Contributions


Why do you keep recommending C# for games? Check out the poll here, you can have your say there... wink2.gif

Anyway, I'd recommend one of the following:
1) If you haven't already covered a little more: functions, classes, loops, etc, then you may not be ready for graphics
2) If you are ready for graphics, go for SDL. The syntax is so simple, even my mum could do it. (She didn't try, but you get the idea) wink2.gif
User is online!Profile CardPM

Go to the top of the page

modi123_1
post 5 Sep, 2008 - 06:26 AM
Post #6


D.I.C Addict

Group Icon
Joined: 12 Jun, 2008
Posts: 518



Thanked 10 times

Dream Kudos: 100
My Contributions


QUOTE(gabehabe @ 5 Sep, 2008 - 05:13 AM) *

Why do you keep recommending C# for games? Check out the poll here, you can have your say there... wink2.gif

Anyway, I'd recommend one of the following:
1) If you haven't already covered a little more: functions, classes, loops, etc, then you may not be ready for graphics
2) If you are ready for graphics, go for SDL. The syntax is so simple, even my mum could do it. (She didn't try, but you get the idea) wink2.gif


Sorry I have a semi hard on for XNA and XNA requires C#.. not to mention I use c# on a fairly daily basis and it seems that everyone who picks up c++ makes the transition to c# with ease...
User is offlineProfile CardPM

Go to the top of the page

gabehabe
post 5 Sep, 2008 - 09:07 AM
Post #7


Working Girl.

Group Icon
Joined: 6 Feb, 2008
Posts: 5,441



Thanked 94 times

Dream Kudos: 2625

Expert In: ruling the world.

My Contributions


Very true.

I started with C++ and C# is soooo easy compared to it.

A nice quote that I read once:
"Go ugly early."

C++ is a low level language, so the transition to a high level language such as C# is much easier than going high to low.

smile.gif
User is online!Profile CardPM

Go to the top of the page

Solid
post 5 Sep, 2008 - 12:33 PM
Post #8


New D.I.C Head

*
Joined: 29 Aug, 2008
Posts: 23

QUOTE(gabehabe @ 5 Sep, 2008 - 03:13 AM) *

Why do you keep recommending C# for games? Check out the poll here, you can have your say there... wink2.gif

Anyway, I'd recommend one of the following:
1) If you haven't already covered a little more: functions, classes, loops, etc, then you may not be ready for graphics
2) If you are ready for graphics, go for SDL. The syntax is so simple, even my mum could do it. (She didn't try, but you get the idea) wink2.gif


I've read about but never tried those things... cept for classes (I have done in Python).

So, if I haven't done these where is a good place to practice. Or a good way to practice?
User is offlineProfile CardPM

Go to the top of the page

modi123_1
post 5 Sep, 2008 - 12:47 PM
Post #9


D.I.C Addict

Group Icon
Joined: 12 Jun, 2008
Posts: 518



Thanked 10 times

Dream Kudos: 100
My Contributions


QUOTE(Solid @ 5 Sep, 2008 - 03:33 PM) *

QUOTE(gabehabe @ 5 Sep, 2008 - 03:13 AM) *

Why do you keep recommending C# for games? Check out the poll here, you can have your say there... wink2.gif

Anyway, I'd recommend one of the following:
1) If you haven't already covered a little more: functions, classes, loops, etc, then you may not be ready for graphics
2) If you are ready for graphics, go for SDL. The syntax is so simple, even my mum could do it. (She didn't try, but you get the idea) wink2.gif


I've read about but never tried those things... cept for classes (I have done in Python).

So, if I haven't done these where is a good place to practice. Or a good way to practice?


*whistle* Well... that's a pretty broad area to practice.. I mean it's serious programming fundamentals. As in taking a few classes in upper level high school or college. In other words you are asking "how do I program".

You can pickup a book on learning your langauge of choice (I find c++ to be well taught through the deitel and deitel books.. damn you smiley-bug!) (or vb.net if you just want concepts and simple to use functionality).

I don't know your age, background, or level of familiarity so I would highly suggest getting some books - specifically THAT book... C++ as a base language is a good thing (pointed out by gabehe).

Here's a link to an older version of the Deitel books.. for c++ pretty much any version is a good version.

http://www.amazon.com/How-Program-4th-Harv...7208&sr=1-4

Hit up ebay.. they go cheap. (versus buying new http://www.amazon.com/C-How-Program-5th/dp...6TDF36BHXGK0TPV)

This post has been edited by modi123_1: 5 Sep, 2008 - 12:47 PM
User is offlineProfile CardPM

Go to the top of the page

gabehabe
post 5 Sep, 2008 - 01:49 PM
Post #10


Working Girl.

Group Icon
Joined: 6 Feb, 2008
Posts: 5,441



Thanked 94 times

Dream Kudos: 2625

Expert In: ruling the world.

My Contributions


I suggest reading up on the following C++ topics:
functions, loops, conditional programming, objects (classes/structs)
click for a huge list of free C++ resources

Then move in to SDL~ the syntax is nice and simple for a beginner.
User is online!Profile CardPM

Go to the top of the page

WolfCoder
post 11 Sep, 2008 - 07:02 AM
Post #11


ギュウ~

Group Icon
Joined: 5 May, 2005
Posts: 3,575



Thanked 6 times

Dream Kudos: 1450
My Contributions


I would strongly not recommend C# because it makes your game really hard to port to Linux/Mac. Not everyone likes Vista, you know.
User is offlineProfile CardPM

Go to the top of the page

Noldona
post 11 Sep, 2008 - 08:49 AM
Post #12


Addicted to DIC

****
Joined: 2 Jul, 2002
Posts: 910



Thanked 2 times
My Contributions


QUOTE(gabehabe @ 5 Sep, 2008 - 12:07 PM) *

C++ is a low level language, so the transition to a high level language such as C# is much easier than going high to low.


Actually C++ is still considered a high level language. Assembly would be considered a low level language.

QUOTE

From Wikipedia:

In computing, a high-level programming language is a programming language with strong abstraction from the details of the computer. In comparison to low-level programming languages, it may use natural language elements, be easier to use, or more portable across platforms. Such languages hide the details of CPU operations such as memory access models and management of scope.


QUOTE(WolfCoder @ 11 Sep, 2008 - 10:02 AM) *

I would strongly not recommend C# because it makes your game really hard to port to Linux/Mac. Not everyone likes Vista, you know.


Beat me to it WolfCoder. I was going to say the same thing. C# is the brainchild of Microsoft as is XNA and the .NET framework. Using these technologies will almost guarantee that your program will be Windows specific. You would require significant rework to port it to other platforms.

I would also second WolfCoder's suggestion for using SDL. It has built in functions for handling 2D graphics as well as sound and input. If you write your game engine right, you can make it so it would take very little work to port to other platforms and can upgrade the engine to use 3D graphics with OpenGL (which SDL is designed to work with for 3D) in the future when you get to those stages. A well written game engine can be used over and over again for many games.
User is offlineProfile CardPM

Go to the top of the page

2 Pages V  1 2 >
Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 06:30AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month