This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-05-13 14:40:27

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

C++ Any tips/pointers?

Yeah, im trying to learn C++, mainly so I can make a game engine, so far im only learning the basics but I will get better, of course.

Any websites or things I should know while learning? Any tutorials I should follow?


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#2 2010-05-13 17:34:55

cds56
Scratcher
Registered: 2008-05-02
Posts: 500+

Re: C++ Any tips/pointers?

markyparky56 wrote:

Yeah, im trying to learn C++, mainly so I can make a game engine, so far im only learning the basics but I will get better, of course.

Any websites or things I should know while learning? Any tutorials I should follow?

If you're trying to take up C++ and openGL, then here are the tutorials I used  big_smile

http://www.lighthouse3d.com/opengl/glut/ OpenGL/glut

http://www.learncpp.com/ C++  programming tutorial/ good reference guide.

Last edited by cds56 (2010-05-13 17:51:30)


http://img192.imageshack.us/img192/909/meowdevlogo.pnghttp://i32.tinypic.com/pucti.png

Offline

 

#3 2010-05-14 07:50:40

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: C++ Any tips/pointers?

cds56 wrote:

markyparky56 wrote:

Yeah, im trying to learn C++, mainly so I can make a game engine, so far im only learning the basics but I will get better, of course.

Any websites or things I should know while learning? Any tutorials I should follow?

If you're trying to take up C++ and openGL, then here are the tutorials I used  big_smile

http://www.lighthouse3d.com/opengl/glut/ OpenGL/glut

http://www.learncpp.com/ C++  programming tutorial/ good reference guide.

Thanks.  smile  Iv got a book but its kinda old and isn't uptodate.
That tutorial uses C++ 6.0... im using 2008, some of the things it says I can't do.  hmm

Last edited by markyparky56 (2010-05-14 07:57:19)


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#4 2010-05-14 20:07:15

cds56
Scratcher
Registered: 2008-05-02
Posts: 500+

Re: C++ Any tips/pointers?

markyparky56 wrote:

cds56 wrote:

markyparky56 wrote:

Yeah, im trying to learn C++, mainly so I can make a game engine, so far im only learning the basics but I will get better, of course.

Any websites or things I should know while learning? Any tutorials I should follow?

If you're trying to take up C++ and openGL, then here are the tutorials I used  big_smile

http://www.lighthouse3d.com/opengl/glut/ OpenGL/glut

http://www.learncpp.com/ C++  programming tutorial/ good reference guide.

Thanks.  smile  Iv got a book but its kinda old and isn't uptodate.
That tutorial uses C++ 6.0... im using 2008, some of the things it says I can't do.  hmm

I'm gonna check out SDL, it sounds a bit better than just plain openGL, especially for game making...


http://img192.imageshack.us/img192/909/meowdevlogo.pnghttp://i32.tinypic.com/pucti.png

Offline

 

#5 2010-05-15 05:18:34

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: C++ Any tips/pointers?

cds56 wrote:

markyparky56 wrote:

cds56 wrote:


If you're trying to take up C++ and openGL, then here are the tutorials I used  big_smile

http://www.lighthouse3d.com/opengl/glut/ OpenGL/glut

http://www.learncpp.com/ C++  programming tutorial/ good reference guide.

Thanks.  smile  Iv got a book but its kinda old and isn't uptodate.
That tutorial uses C++ 6.0... im using 2008, some of the things it says I can't do.  hmm

I'm gonna check out SDL, it sounds a bit better than just plain openGL, especially for game making...

Yeah, but SDL comes with legal restrictions, so it might not be the best choice. Still an option though.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#6 2010-05-15 11:16:03

cds56
Scratcher
Registered: 2008-05-02
Posts: 500+

Re: C++ Any tips/pointers?

markyparky56 wrote:

cds56 wrote:

markyparky56 wrote:


Thanks.  smile  Iv got a book but its kinda old and isn't uptodate.
That tutorial uses C++ 6.0... im using 2008, some of the things it says I can't do.  hmm

I'm gonna check out SDL, it sounds a bit better than just plain openGL, especially for game making...

Yeah, but SDL comes with legal restrictions, so it might not be the best choice. Still an option though.

Which legal restrictions D:

Will it prevent commercial sales AAH?

haha, I wasn't worried about that, at all, but, what legal restrictions eek!


http://img192.imageshack.us/img192/909/meowdevlogo.pnghttp://i32.tinypic.com/pucti.png

Offline

 

#7 2010-05-15 11:47:45

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: C++ Any tips/pointers?

cds56 wrote:

markyparky56 wrote:

cds56 wrote:


I'm gonna check out SDL, it sounds a bit better than just plain openGL, especially for game making...

Yeah, but SDL comes with legal restrictions, so it might not be the best choice. Still an option though.

Which legal restrictions D:

Will it prevent commercial sales AAH?

haha, I wasn't worried about that, at all, but, what legal restrictions eek!

I quote:

SDL is distributed under GNU LGPL version 2. This license allows you to use SDL freely in commercial programs as long as you link with the dynamic library.

The GNU liscense is what the Quake 3 engine is released under.

Lets see what it true is all about...
Well its barely restricting at all. I think we should just give thanks to them in the credits (In a textfile)
How good is SDL?


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#8 2010-05-15 14:38:06

cds56
Scratcher
Registered: 2008-05-02
Posts: 500+

Re: C++ Any tips/pointers?

markyparky56 wrote:

cds56 wrote:

markyparky56 wrote:


Yeah, but SDL comes with legal restrictions, so it might not be the best choice. Still an option though.

Which legal restrictions D:

Will it prevent commercial sales AAH?

haha, I wasn't worried about that, at all, but, what legal restrictions eek!

I quote:

SDL is distributed under GNU LGPL version 2. This license allows you to use SDL freely in commercial programs as long as you link with the dynamic library.

The GNU liscense is what the Quake 3 engine is released under.

Lets see what it true is all about...
Well its barely restricting at all. I think we should just give thanks to them in the credits (In a textfile)
How good is SDL?

SDL seems cool, it'll take me another couple hours to really get the gist of it, but it looks ideal for creating a little engine on!(or big, whichever you chose.)


http://img192.imageshack.us/img192/909/meowdevlogo.pnghttp://i32.tinypic.com/pucti.png

Offline

 

#9 2010-05-17 08:45:19

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: C++ Any tips/pointers?

cds56 wrote:

markyparky56 wrote:

cds56 wrote:


Which legal restrictions D:

Will it prevent commercial sales AAH?

haha, I wasn't worried about that, at all, but, what legal restrictions eek!

I quote:

SDL is distributed under GNU LGPL version 2. This license allows you to use SDL freely in commercial programs as long as you link with the dynamic library.

The GNU liscense is what the Quake 3 engine is released under.

Lets see what it true is all about...
Well its barely restricting at all. I think we should just give thanks to them in the credits (In a textfile)
How good is SDL?

SDL seems cool, it'll take me another couple hours to really get the gist of it, but it looks ideal for creating a little engine on!(or big, whichever you chose.)

Big. Big is better.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#10 2010-05-17 21:13:52

cds56
Scratcher
Registered: 2008-05-02
Posts: 500+

Re: C++ Any tips/pointers?

markyparky56 wrote:

cds56 wrote:

markyparky56 wrote:

cds56 wrote:

Which legal restrictions D:

Will it prevent commercial sales AAH?

haha, I wasn't worried about that, at all, but, what legal restrictions eek!

I quote:

The GNU liscense is what the Quake 3 engine is released under.

Lets see what it true is all about...
Well its barely restricting at all. I think we should just give thanks to them in the credits (In a textfile)
How good is SDL?

SDL seems cool, it'll take me another couple hours to really get the gist of it, but it looks ideal for creating a little engine on!(or big, whichever you chose.)

Big. Big is better.

big_smile  Yeah, I was hoping you'd say that.

SDL would be the way to go if someone could learn it.
Not saying it's hard to learn, some just needs to... and I'm going to my cottage this weekend  big_smile  for me and D: cause I won't be able to help much this weekend.


http://img192.imageshack.us/img192/909/meowdevlogo.pnghttp://i32.tinypic.com/pucti.png

Offline

 

#11 2010-05-17 21:16:32

cds56
Scratcher
Registered: 2008-05-02
Posts: 500+

Re: C++ Any tips/pointers?

Speaking of which, I may have found a half-useful proper tutorial!

http://www.lazyfoo.net/SDL_tutorials/

It has good examples, good explanations, and it's more beginner oriented, seeing as we both(I think) are trying to learn SDL from having no previous knowledge of it.

This tutorial is bettah than the others I'd found earlier.

Last edited by cds56 (2010-05-17 21:24:16)


http://img192.imageshack.us/img192/909/meowdevlogo.pnghttp://i32.tinypic.com/pucti.png

Offline

 

#12 2010-05-18 12:10:15

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: C++ Any tips/pointers?

cds56 wrote:

Speaking of which, I may have found a half-useful proper tutorial!

http://www.lazyfoo.net/SDL_tutorials/

It has good examples, good explanations, and it's more beginner oriented, seeing as we both(I think) are trying to learn SDL from having no previous knowledge of it.

This tutorial is bettah than the others I'd found earlier.

Hmmm... very helpful, though in Code::blocks I can't set the debugger...


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#13 2010-05-18 12:39:27

Sperry
Scratcher
Registered: 2010-03-09
Posts: 500+

Re: C++ Any tips/pointers?

markyparky56 wrote:

cds56 wrote:

Speaking of which, I may have found a half-useful proper tutorial!

http://www.lazyfoo.net/SDL_tutorials/

It has good examples, good explanations, and it's more beginner oriented, seeing as we both(I think) are trying to learn SDL from having no previous knowledge of it.

This tutorial is bettah than the others I'd found earlier.

Hmmm... very helpful, though in Code::blocks I can't set the debugger...

Great tuts! I've just set up SDL and loaded an image to the screen! w00T!  big_smile   big_smile   big_smile   big_smile


http://img709.imageshack.us/img709/3252/gobanim2.gifhttp://ls.gd/bo

Offline

 

#14 2010-05-18 12:56:38

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: C++ Any tips/pointers?

Sperry wrote:

markyparky56 wrote:

cds56 wrote:

Speaking of which, I may have found a half-useful proper tutorial!

http://www.lazyfoo.net/SDL_tutorials/

It has good examples, good explanations, and it's more beginner oriented, seeing as we both(I think) are trying to learn SDL from having no previous knowledge of it.

This tutorial is bettah than the others I'd found earlier.

Hmmm... very helpful, though in Code::blocks I can't set the debugger...

Great tuts! I've just set up SDL and loaded an image to the screen! w00T!  big_smile   big_smile   big_smile   big_smile

sad  I can't get it to do anything!


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#15 2010-05-18 13:03:31

Sperry
Scratcher
Registered: 2010-03-09
Posts: 500+

Re: C++ Any tips/pointers?

markyparky56 wrote:

Sperry wrote:

markyparky56 wrote:


Hmmm... very helpful, though in Code::blocks I can't set the debugger...

Great tuts! I've just set up SDL and loaded an image to the screen! w00T!  big_smile   big_smile   big_smile   big_smile

sad  I can't get it to do anything!

Oh, can I help at all? (It worked with VS2008  big_smile )


http://img709.imageshack.us/img709/3252/gobanim2.gifhttp://ls.gd/bo

Offline

 

#16 2010-05-18 13:10:15

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: C++ Any tips/pointers?

Sperry wrote:

markyparky56 wrote:

Sperry wrote:

Great tuts! I've just set up SDL and loaded an image to the screen! w00T!  big_smile   big_smile   big_smile   big_smile

sad  I can't get it to do anything!

Oh, can I help at all? (It worked with VS2008  big_smile )

Well obviously it would, im using Code::blocks, it can't set the debugger or compiler.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#17 2010-05-18 13:13:15

Sperry
Scratcher
Registered: 2010-03-09
Posts: 500+

Re: C++ Any tips/pointers?

markyparky56 wrote:

Sperry wrote:

markyparky56 wrote:


sad  I can't get it to do anything!

Oh, can I help at all? (It worked with VS2008  big_smile )

Well obviously it would, im using Code::blocks, it can't set the debugger or compiler.

What? I suggest going on to another compiler then.


http://img709.imageshack.us/img709/3252/gobanim2.gifhttp://ls.gd/bo

Offline

 

#18 2010-05-18 14:06:47

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: C++ Any tips/pointers?

Sperry wrote:

markyparky56 wrote:

Sperry wrote:

Oh, can I help at all? (It worked with VS2008  big_smile )

Well obviously it would, im using Code::blocks, it can't set the debugger or compiler.

What? I suggest going on to another compiler then.

hmm  Hmmmm...


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#19 2010-05-18 14:25:14

Raven14
Scratcher
Registered: 2009-06-04
Posts: 25

Re: C++ Any tips/pointers?

Why dont you just use DirectX to make a small lib of things you want to use e.g
dxDrawSprite("file" x pos, y pox)

And I know some C++ if you need a little help but I cant devote a lot of time.

Offline

 

#20 2010-05-18 14:28:30

cds56
Scratcher
Registered: 2008-05-02
Posts: 500+

Re: C++ Any tips/pointers?

markyparky56 wrote:

Sperry wrote:

markyparky56 wrote:


sad  I can't get it to do anything!

Oh, can I help at all? (It worked with VS2008  big_smile )

Well obviously it would, im using Code::blocks, it can't set the debugger or compiler.

What? tell me what isn't working, cause my Code::blocks installation works fine!

Did you install SDL properly?


@Raven:

We want this to be craws plat form (cross platform)

DirectX, is a no. unless marky wants to use it......


http://img192.imageshack.us/img192/909/meowdevlogo.pnghttp://i32.tinypic.com/pucti.png

Offline

 

#21 2010-05-18 16:14:20

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: C++ Any tips/pointers?

cds56 wrote:

markyparky56 wrote:

Sperry wrote:


Oh, can I help at all? (It worked with VS2008  big_smile )

Well obviously it would, im using Code::blocks, it can't set the debugger or compiler.

What? tell me what isn't working, cause my Code::blocks installation works fine!

Did you install SDL properly?


@Raven:

We want this to be craws plat form (cross platform)

DirectX, is a no. unless marky wants to use it......

No, we're going to use SDL, which sort of uses openGL, for the graphics, not Direct X.
I followed the tutorial , but it says i don't have the correct compiler. I really like Code::Blocks, though its a bit confusing to make a source file.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#22 2010-05-18 20:45:16

cds56
Scratcher
Registered: 2008-05-02
Posts: 500+

Re: C++ Any tips/pointers?

markyparky56 wrote:

cds56 wrote:

markyparky56 wrote:


Well obviously it would, im using Code::blocks, it can't set the debugger or compiler.

What? tell me what isn't working, cause my Code::blocks installation works fine!

Did you install SDL properly?


@Raven:

We want this to be craws plat form (cross platform)

DirectX, is a no. unless marky wants to use it......

No, we're going to use SDL, which sort of uses openGL, for the graphics, not Direct X.
I followed the tutorial , but it says i don't have the correct compiler. I really like Code::Blocks, though its a bit confusing to make a source file.

Strange.... I found Code::Blocks really easy to work with.

SDL appears to be easy to work with so far.

I'm experimenting and learning...
I may download Cube's source and take a look  big_smile


http://img192.imageshack.us/img192/909/meowdevlogo.pnghttp://i32.tinypic.com/pucti.png

Offline

 

#23 2010-05-19 10:55:53

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: C++ Any tips/pointers?

cds56 wrote:

markyparky56 wrote:

cds56 wrote:


What? tell me what isn't working, cause my Code::blocks installation works fine!

Did you install SDL properly?


@Raven:

We want this to be craws plat form (cross platform)

DirectX, is a no. unless marky wants to use it......

No, we're going to use SDL, which sort of uses openGL, for the graphics, not Direct X.
I followed the tutorial , but it says i don't have the correct compiler. I really like Code::Blocks, though its a bit confusing to make a source file.

Strange.... I found Code::Blocks really easy to work with.

SDL appears to be easy to work with so far.

I'm experimenting and learning...
I may download Cube's source and take a look  big_smile

I can make source files, I think i've just been confused a bit, iv only used VC++ 2008 before.
Anyway. I say we use Code::blocks, ill just try setting it up properly.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#24 2010-05-19 13:21:14

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: C++ Any tips/pointers?

YES!!!! It works!!!

And i've also found out how to add new files, so simple!
*does happy dance*


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#25 2010-05-19 14:39:36

cds56
Scratcher
Registered: 2008-05-02
Posts: 500+

Re: C++ Any tips/pointers?

markyparky56 wrote:

YES!!!! It works!!!

And i've also found out how to add new files, so simple!
*does happy dance*

YAY!

now It'll be easy to share the files and build them because \

WE ALL CAN USE THE SAME IDE!


http://img192.imageshack.us/img192/909/meowdevlogo.pnghttp://i32.tinypic.com/pucti.png

Offline

 

Board footer