I'm trying to add C+Plus to my knowledge, and I understand Galaxy Scripting is much like it, so I was wondering, could anyone point me towards a website where I could learn it that is towards game programming? I'm trying to read out of a book that is listed on a book store website but the purposely make the text so small. ;(
Proof I am trying to learn C+Plus:
// Game Over#include<iostream>intmain(){std::cout<<"Game Over!"<<std::endl;return0;}
:) Anyway, if anyone could help with finding a website, I would be most greatful!
Trying to learn Cxx or C in order to understand Galaxy is like learning quantum mechanics so that you can pass your high school physics class.
That said, if you're trying to learn "game programming" my advice would be to stop altogether and not buy into the "Game Programming 101" book hype.
As with all things, you need to start simple. Pick a language, any modern major language, and learn it. Don't learn it to program a game, but learn it to learn how to program. Once you understand how to design an application and the steps involved in planning and building something so that it can run in an organized fashion, you'll have 3/4 of the knowledge of game programming. The rest is just googling OpenGL/DirectX calls and how-tos.
I don't know any websites. I picked up Cxx by working on an active project with a group of people, and it took several years for me to grasp fully the things that were going on.
That said, most of programming is syntax. The difference between:
Console.WriteLine("Hello world.");
or
System.out.println("Hello world.");
or
printf("Hello world.");
are all miniscule. Maybe I would start out with an IRC Bot. Try grabbing a simple C# or Java IRC bot and fiddle around with it. Change things, add new chat commands, etc. Then start looking at the overall design. Why not make your own? Keep it simple at first, then rewrite it, and rebuild it better. And repeat. And repeat again. Etc.
Once you understand the syntax and you can pick that up, you'll be able to migrate between pretty much any language instantly.
Ex, I have no clue how to open a socket in Python (or any python for that matter) but a quick google search reveals:
# Echo server programimportsocketHOST=''#SymbolicnamemeaningallavailableinterfacesPORT=50007#Arbitrarynon-privilegedports=socket.socket(socket.AF_INET,socket.SOCK_STREAM)s.bind((HOST,PORT))s.listen(1)conn,addr=s.accept()print'Connectedby',addrwhile1:data=conn.recv(1024)ifnotdata:breakconn.send(data)conn.close()
And from this, I can get a fairly rudimentary understanding of how the language works, and how to open a socket. I can then modify it for my own needs.
Good programmers are always learning (and using google, too).
A website with step-by-step tutorials on using SDL (a 2D graphics engine to make games) and C+ +: http://lazyfoo.net/SDL_tutorials/index.php
That one's a very good choice once you get the basics straight, imo.
In my opinion the hardest thing to grasp in C+ + (even if you know a bit of other languages already) is dealing with objects, pointers and references and knowing all the subtle but important differences between them.
Like I said, programming is more a way of thinking than about learning the latest syntax to express the same stuff.
You need to sit down and look at how things are organized, not how to write them.
I'm trying to add C+Plus to my knowledge, and I understand Galaxy Scripting is much like it, so I was wondering, could anyone point me towards a website where I could learn it that is towards game programming? I'm trying to read out of a book that is listed on a book store website but the purposely make the text so small. ;(
Proof I am trying to learn C+Plus:
:) Anyway, if anyone could help with finding a website, I would be most greatful!
I know this is a useless comment but...I tried to type C + + also and it made the text green...Annoying , huh?
@zeldarules28: Go
Yeah, its really weird. Especially on a forum where Programming would be used in the Galaxy Scripter.
Trying to learn Cxx or C in order to understand Galaxy is like learning quantum mechanics so that you can pass your high school physics class.
That said, if you're trying to learn "game programming" my advice would be to stop altogether and not buy into the "Game Programming 101" book hype.
As with all things, you need to start simple. Pick a language, any modern major language, and learn it. Don't learn it to program a game, but learn it to learn how to program. Once you understand how to design an application and the steps involved in planning and building something so that it can run in an organized fashion, you'll have 3/4 of the knowledge of game programming. The rest is just googling OpenGL/DirectX calls and how-tos.
@MotiveMe: Go
Well the case with that would be CPlus+ then. Any good websites that has an up to date version of tutorials available?
I don't know any websites. I picked up Cxx by working on an active project with a group of people, and it took several years for me to grasp fully the things that were going on.
That said, most of programming is syntax. The difference between:
or
or
are all miniscule. Maybe I would start out with an IRC Bot. Try grabbing a simple C# or Java IRC bot and fiddle around with it. Change things, add new chat commands, etc. Then start looking at the overall design. Why not make your own? Keep it simple at first, then rewrite it, and rebuild it better. And repeat. And repeat again. Etc.
Once you understand the syntax and you can pick that up, you'll be able to migrate between pretty much any language instantly.
Ex, I have no clue how to open a socket in Python (or any python for that matter) but a quick google search reveals:
And from this, I can get a fairly rudimentary understanding of how the language works, and how to open a socket. I can then modify it for my own needs.
Good programmers are always learning (and using google, too).
Edit: Woo, found a nice resource for you.
http://codingbat.com/
It uses Java and python but teaches a lot of useful skills.
There's a ton of good websites with tutorials and info on C+ +
Tuts:
http://www.cplusplus.com/doc/tutorial/
http://www.cprogramming.com/tutorial.html
An excellent FAQ which starts with the basics and goes into the more complicated stuff:
http://www.parashift.com/c++-faq/
A website for everything:
http://www.codeguru.com/forum/index.php
Website with a bunch of blog posts that deals with smaller problems and useful stuff.
http://weseetips.com/category/c/
A website with step-by-step tutorials on using SDL (a 2D graphics engine to make games) and C+ +:
http://lazyfoo.net/SDL_tutorials/index.php
That one's a very good choice once you get the basics straight, imo.
In my opinion the hardest thing to grasp in C+ + (even if you know a bit of other languages already) is dealing with objects, pointers and references and knowing all the subtle but important differences between them.
@s3rius: Go
Yea, Im scared to approach objects. I have much trouble with them in Java already..
@StatusQ3: Go
Like I said, programming is more a way of thinking than about learning the latest syntax to express the same stuff.
You need to sit down and look at how things are organized, not how to write them.
Visual Studio 2010 C# Express
Basic Tutorial (Lessons 1-14 are key, the rest you'll learn as you go)
XNA Game Studio 4.0
XNA Tutorials
http:www.xnaresources.com/
http:www.xnadevelopment.com/
Enjoy