• 0

How to be a game programmer and developer?


Question

Hello :) .I am new in this forum and i am really interested in programming.I really want to learn to program with Cuda, C++ you know. I want to make my own game engines and 3D games with stunning grafiks. I saw really interesting things in the Nvidia developer zone like Nvidia PhysX SDK, OpenGL, OpenCL, DirectX and many other stuff. I want to learn how to program with them and for what and how can i use it? What i must learn first? From what i must start? What book's i must read of i am new to software and game programming? I am really confused. Thank's :D .

Recommended Posts

  • 0

XNA!? No thank you. I am not ready for this. It's too advanced. Don't you know that i am on level console applications?

PS: And my question was totaly different.

You asked: And i know the code is horrible. Some advice? I mean what i must do to fix this? Not the code for the Tic-Tac-Toe. I mean my programming style at all?

I gave you links for reference that you can use for structuring. I know you are using C++, but the links I gave you will give you some ideas on how to structure the code (as in make it object oriented and dynamic).

  • 0

Yes, but for XNA. Then you edited it and posted some good stuff. The problem is that i don't understand anything xD. There are just some for loops and i don't understand anything what's in them.

The not understanding makes me angry. I want to understand this code, but i can't :cry: .

  • 0

Yes, but for XNA. Then you edited it and posted some good stuff. The problem is that i don't understand anything xD. There are just some for loops and i don't understand anything what's in them.

The not understanding makes me angry. I want to understand this code, but i can't :cry: .

s1 = (NSString *)[board objectAtIndex:i];

is the same as

char s1 = board;

the rest is all pretty universal

  • 0

C#, Python, C++, or any other language does not matter. Algorithms are algorithms. I would try understanding how to read code before you actually start programming, because once you can, you can look at code from any language (any modern language) and translate it to C++ (or your language) with no trouble at all. I will suggest doing what other people have suggested. Take some classes, or get some books.

80% of all languages have the same syntax, so I would focus on how to read syntax before actually coding.

For example: C++, Java, C#, C, Objective-C, PHP, and many others have the EXACT same syntax for while loops, for loops, conditional statements, and more.

This is one of the reasons I prefer people would start with a managed language like C# or Java (no pointers, memory allocations and deallocations, and so on). Because you are just concerned about algorithms. Once you learn that, you can use any language and framework you want very easily.

  • 0

I think getting some books is better. I won't pay for classes. And i have a question.

If:

s1 = (NSString *)[board objectAtIndex:i];

is the same as

char s1 = board;

Then why the first one? And i want to ask why the array board has an i and not a number?

  • 0

s1 = (NSString *)[board objectAtIndex:i]; is the Objective-C way of doing it. but i was trying to say it in a way that you would understand

i represents the current value of the loop. it is declared at the start of the for loop. So it will always be a number

  • 0
Then why the first one?

The first one uses language specific coding (Objective C). char s1 = board is universal to MOST languages.

And i want to ask why the array board has an i and not a number?

This was in the middle of a for loop with i as the variable being used.

char s1;
for(int i = 0; i < 5; i++)
{
     s1 = board[i];  //useless line to use, but good for demonstration
}

Is the same as:

char s1;
s1 = board[0];
s1 = board[1];
s1 = board[2];
s1 = board[3];
s1 = board[4];

  • 0

Oh of course. I've read before time for that. Really good idea. I have been thinking many time for what this for loop is used. This is the best loop i thing. And to answer for AI: Yes it isn't really inteligent to make random things, but from time to time you must make random desizions. Making a desizion is AI. Isn't it?

  • 0

I think getting some books is better. I won't pay for classes. And i have a question.

If:

s1 = (NSString *)[board objectAtIndex:i];

is the same as

char s1 = board;

Then why the first one? And i want to ask why the array board has an i and not a number?

I try to respect that you're not taking classes and want to learn all by yourself, but come on? this topic started way back in December and after all these months you've just now learned about arrays and you're still surprised about using a variable to index them? These are absolute basics of pretty much any programming language! What have you been learning all this time?

Oh of course. I've read before time for that. Really good idea. I have been thinking many time for what this for loop is used. This is the best loop i thing. And to answer for AI: Yes it isn't really inteligent to make random things, but from time to time you must make random desizions. Making a desizion is AI. Isn't it?

Making complex decisions based on data from an environment is AI. Making random decisions isn't.

  • Like 2
  • 0

Do you thing i have learned all this time programming? I must go to school. Now it's summer vacation so i can learn programming, but i had to learn for school. And the reason why i won't go to classes, because i must pay for them. I am not a milioner you know xD. Ok it isn't nessecerly to be a milioner, but my parents don't have the money for this and i haven't heared that in Bulgaria you can take programming classes.

And can we leave this AI question behind?

  • 0
I will ignore the last post of njlouch.

That is your choice. Feel free to continue claiming what you write is "perfect". Your code is an absolutel mess, my first attempts at coding were possibly similar, but I would never had made such ridiculous claims!

  • 0
I try to respect that you're not taking classes and want to learn all by yourself, but come on? this topic started way back in December and after all these months you've just now learned about arrays and you're still surprised about using a variable to index them? These are absolute basics of pretty much any programming language! What have you been learning all this time?
OP is trying to become an APL god. Why are you so jealous?
  • 0

If you're not going to take programming classes (which is required if you want a career in programming IMO, unless you go indie) then at least find a book or an online course or something. Sporadically posting in a forum thread is not going to teach you programming.

Edit: I was self-taught for five years or so, and even shipped a program before I had any formal programming education. Then I went to Uni, and learned much more in those three years than I did in self-teaching. I look back at the code I wrote then and? *shudder*.

  • 0

For me it's important to work perfectly. Yes it works, but it isn't complete. I mean the AI. Everything other works perfectly. Yes ot WORKS PERFECTLY except the AI. And can you make something different in this topic. You just insult me and don't help fix these things like "you code is an absolute mess". If i say this to you and you know this would you few good then?

And yes it is important to go to classes, but this will be far in the future when i go to colege an university.

  • 0

Tell you what emilxp, I?m going to give you some of the assignments I was given in one of my high school courses. Hopefully they won?t be so hard, but help you get some of the fundamentals. Here are 3 separate assignments.

  1. Populate an array with 10 random numbers. Print out those numbers, then ask the user if they want to search for a value (printing out it?s index), find the max value, find the minimum value, or to quit and have the program respond appropriately.
  2. Populate an array with the following values ?a?, ?b?, ?c?, ?d?, ?e?. Ask the user for a number value and preform a right shift operation on the array and prints the new array. For instance a value of 1 would produce the output ?eabcd? and 2 would be ?deabc?.
  3. Preform a Selection Sort on an array of 5 random integers, printing out the array at each step. For example:
    5 2 7 4 1
    1 2 7 4 5
    1 2 7 4 5
    1 2 4 7 5
    1 2 4 5 7
    1 2 4 5 7

  • 0
Yes ot WORKS PERFECTLY except the AI

On that basis, I would NEVER ever hire someone like you. You genuinely believe that your code (except the AI LOL) is the best it can be?

I look back at the code I wrote then and? *shudder*

Ha yeah. I love revisiting old code, and then scrapping it to hell!

  • 0

We don't learn really programming in high school in Bulgaria. Now i will be 8th grade. In the 10th grade we will learn programming, but really basic things. My teacher showed me some stuff when i don't knowed C++. She showed me some PASCAL and the program i think multiplicated 2 values or made something other with them. This is what we learn in School in Bulgaria, but this is in normal schools. I am learning in Sofia and i am now in the Sofian Matematic Gymnasium. I am 100% sure that you don't don't know this gymnasium. Sorry if i don't speal it correctly. Ok so this is the best highschool for matematic and computers in Bulgaria. I haven't been before in it, but with a lot of work i am now in and i will see how it is in it. I saw that they teach you 3D Design. And we are now the 1st in the world in computers. The winners are 13 years old(like me), but they learned before in this school and for that. I am not sure if it is for programming, but i thing so.

And specialy njlouch: This topic isn't named "INSULT ME" SO GO OT OF THIS TOPIC IF YOU WANT TO CONTINUE WITH YOUR.............................................................

And you problem if you don't like MY CODE.

  • 0
And you problem if you don't like MY CODE.

No... Actually it's YOUR PROBLEM seeing as you want to be a coder. It's not a case of me not liking your code (what does it matter what I like or don't?), it's a case of your code not being at an acceptable level yet. You can choose to take this as an insult - or to go learn more about coding and not tell people that it "works perfectly".

I'm not insulting you. Please grow the hell up. I am criticizing your code and arrogance about your "perfectly working" simple game!

  • 0

PS: I have learned C++ for a few days. So this will explain my code. And i wanted to make me a challenge to make a Tic-Tac-Toe with just these things that i know for C++. And you see it is possible.

What the hell!? How old are you njlouch?

And i want to say that learning a few days C++ won't make me a master coder. So stop with your insults.

"it's a case of your code not being at an acceptable level yet. You can choose to take this as an insult"

This isn't an insult for me. This is a really good answer i can say. Why don't you talk in this way. Everything othe is insulting. This isn't, because it is carefully said i can say.

  • 0

And you problem if you don't like MY CODE.

You're going to have to lose that attitude fairly quickly - everywhere I've worked has had fairly strict coding guidelines. If your style doesn't fit in with that, then tough - find another job. For example, my coding style has changed considerably since joining Spotify to match their coding guidelines. It's not better, or worse, just different. Live and adapt, etc.

  • 0

You're going to have to lose that attitude fairly quickly - everywhere I've worked has had fairly strict coding guidelines. If your style doesn't fit in with that, then tough - find another job. For example, my coding style has changed considerably since joining Spotify to match their coding guidelines. It's not better, or worse, just different. Live and adapt, etc.

I said that i have learned C++ for a few days. This explains everything. And i know my code is horrible, but i am happy with it, because this is my best program. Not the best written.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • If you are willing to go to approx $200, then as mentioned in your other thread I think a refurbished Pixel 8 will be a great deal that will last you for years. I recently recommended that to someone at work, he was on a strict £200 budget, which got him an excellent conditioned refurbished Pixel 8 here. He's since told me its the best phone he's ever had and feels its a massive upgrade over his old Samsung A series device. I don't know the sites which deal in refurbished devices in the US, however I’m sure you will have some options like we do here. Failing that Ebay is also quite good in my experience. If you wanted something a bit cheaper, then you could maybe go for an older Pixel 7, these will still get security updates until the end of 2027. Even after that you have good third party OS support from LineageOS. It doesn't have to be a Pixel though, you can buy many older devices for a good deal that would be better than a new $100 phone and flash LineageOS to them: https://wiki.lineageos.org/devices/
    • I don't use one drive, but then I don't use any cloud storage, not even Icloud on my mac. If I did use cloud storage, then I would not use One drive, not because there is anything wrong with it, but because I can use Icloud. The only reason I see to use one drive is if your job requires you to have access to it
    • Not built in, which is not a bad thing. There are ways of adding cloud storage to it, Dropbox is the most well know that also have a client for Linux, but there are others.
    • My advice, dont use teams, use the web version if possible. https://teams.microsoft.com/v2/
  • Recent Achievements

    • Collaborator
      WndSks went up a rank
      Collaborator
    • One Month Later
      Sopa flores earned a badge
      One Month Later
    • First Post
      StaticMatrix earned a badge
      First Post
    • Week One Done
      StaticMatrix earned a badge
      Week One Done
    • Rookie
      lamborghiniv10 went up a rank
      Rookie
  • Popular Contributors

    1. 1
      +primortal
      506
    2. 2
      PsYcHoKiLLa
      209
    3. 3
      +Edouard
      152
    4. 4
      Steven P.
      89
    5. 5
      ATLien_0
      79
  • Tell a friend

    Love Neowin? Tell a friend!