Return to “Everything & Anything”

Post

Inspired to learn coding, help?

#1
Hey everyone, I'm starting to get very interested in game development and I think I want to get some know how for C++ before college. I just want anyone here to maybe suggest some programs they use to code/ learn code? I was suggested Microsoft Visual Studio 2012, but I'm very unsure how to get started so, yea. I've always wanted to make a game of my own just like Josh here and I want to start learning the basics for making a game.
Any amount of help is much appreciated! :D
Anything is possible if you can dream it.
Post

Re: Inspired to learn coding, help?

#2
StarJumper wrote:Hey everyone, I'm starting to get very interested in game development and I think I want to get some know how for C++ before college. I just want anyone here to maybe suggest some programs they use to code/ learn code? I was suggested Microsoft Visual Studio 2012, but I'm very unsure how to get started so, yea. I've always wanted to make a game of my own just like Josh here and I want to start learning the basics for making a game.
Any amount of help is much appreciated! :D
http://www.cplusplus.com/ is your best friend :)

Code: Select all

#include <iostream>
#include <ctime>
#include <cstdlib>

using namespace std;

int main() {
  // My first c++ game!
  srand(time(NULL));
  while (true) {
    int guess;
    int secret = (1 + rand()%10);
    cout << "I'm thinking of a number between 1 and 10...can you guess it?\n >> ";
    cin >> guess;
    if (guess == secret)
      cout << "Nice! " << guess << " is the number I was thinking of :) !!!\n";
    else
      cout << "Sorry...I was thinking of " << guess << " :/ \n\n";
  }
  return 0;
}
Enter it into VS and start playing around with it ;)
“Whether you think you can, or you think you can't--you're right.” ~ Henry Ford
Post

Re: Inspired to learn coding, help?

#3
JoshParnell wrote:
StarJumper wrote:Hey everyone, I'm starting to get very interested in game development and I think I want to get some know how for C++ before college. I just want anyone here to maybe suggest some programs they use to code/ learn code? I was suggested Microsoft Visual Studio 2012, but I'm very unsure how to get started so, yea. I've always wanted to make a game of my own just like Josh here and I want to start learning the basics for making a game.
Any amount of help is much appreciated! :D
http://www.cplusplus.com/ is your best friend :)

Code: Select all

#include <iostream>
#include <ctime>
#include <cstdlib>

using namespace std;

int main() {
  // My first c++ game!
  srand(time(NULL));
  while (true) {
    int guess;
    int secret = (1 + rand()%10);
    cout << "I'm thinking of a number between 1 and 10...can you guess it?\n >> ";
    cin >> guess;
    if (guess == secret)
      cout << "Nice! " << guess << " is the number I was thinking of :) !!!\n";
    else
      cout << "Sorry...I was thinking of " << guess << " :/ \n\n";
  }
  return 0;
}
Enter it into VS and start playing around with it ;)
Great! I'll get started! Thanks for the link and ^code lines^ Josh :)
Anything is possible if you can dream it.
Post

Re: Inspired to learn coding, help?

#5
@ Starjumper, i am not a programmer (i wouldn't call myself one) but i do use some programming tools for my own attempts at learning C++ etc.

I use MingGW as my C++ compiler (mainly as it is OpenSource):

http://en.wikipedia.org/wiki/MinGW

http://mingw.org/

And i use that with an IDE called CodeBlocks (again because it is OpenSource):

http://www.codeblocks.org/

I also have looked into higher level languages that can fit alongside/inside C++ code, as i find them in general easier to get a grasp off, and those are Python and Pygame:

http://www.python.org/

http://www.pygame.org/news.html

Python can be pretty slow, and is it's main issue for complex stuff.

LUA is a faster scripting type language, but suffers from not having as user friendly (beginner level) websites as Python:

http://www.lua.org/

http://en.wikipedia.org/wiki/Lua_%28pro ... anguage%29

With all that info i have not mastered any language yet! But then i am more a designer than a programmer, but i hope you find something useful in those links, i certainly wish when i was at school we had access to such handy information :)

Online Now

Users browsing this forum: No registered users and 25 guests

cron