Jump to content

  • Log In with Google      Sign In   
  • Create Account

Assassinbeast

Member Since 24 Sep 2012
Offline Last Active Apr 13 2014 12:00 PM

#5021830 How important is the iostream in gamedev?

Posted by Assassinbeast on 15 January 2013 - 10:01 AM

Hello folks :-)

 

I just wanna ask how important it is to learn/master the basics of iostream in c++.

 

eg:

 

cin.fail

cin.good

cin.clear

cin.bad

cin.putback

cin.get

cin.getline

cin.eof 

 

and all that bullshit.

 

for me, its kinda hard to remember because i never use it when i make games, and i never use it when i test my own code (only cout and cin), but sometimes when i read books, they use it. So its getting  hard and frustrating to remember how the iostream is made and when the states are set.




#5006416 How do you check collision against 1000x1000 objects?

Posted by Assassinbeast on 02 December 2012 - 04:40 PM

ahh ok, thanks for all the help and suggestions Posted Image


#5006408 How do you check collision against 1000x1000 objects?

Posted by Assassinbeast on 02 December 2012 - 04:16 PM

Hey, i just need some information on how to check collision if theres 1000 objects on the field.
And all 1000 objects are enemies to eachother.

So, do i for example have to make two for loops like this?:

[source lang="cpp"]for(int i = 0; i < objects.size(); ++i) //objects.size is the size of the vector(if i use that) for(int j = 0; j < objects.size(); ++i) collision(objects[i], objects[j]);[/source]
But thats 1000x1000 = a million loops in a single statement Posted Image

So, i just want to know if thats how you do it... cant see any other way of doing this so far Posted Image


#4990327 Can i become a professional gamedeveloper learning at home?

Posted by Assassinbeast on 15 October 2012 - 04:04 AM

Hey folks.
I just want to know if it is kinda possible to become a professional gamedeveloper learning at home.

Im currently learning win32 in c++ from Michael Morrisons book "Beginning Game Programmng" and i aim to learn directx afterwards.
There are many good books out there that teaches directx.. so i kinda think its possible to become a professional without a school, but im not that sure.

The reason why i dont wanna choose to go learn game programming through the school (which is much more safe way), is because then i have to go to college first which takes 2 years. And in those 2 years i will get tortured with homework and have to learn all kinds of subjects which i dont even need(only math, but i can take single courses with it).


So after the college i can go to a university in computer science... but i dont even know if they are teaching c++ which i chose and im pretty happy with it. Also i dont know if they will teach directx because thats what i aimed for since im learning win32 at this moment, so it will be a giant waste of time if i find out in the university that they teach java or c#.

Right now im just learning at home and i have a job besides me, so im not doing anything than that. Im 20 years old by the way.

If i choose to learn it through the school... then i start in 2013 after summer. So i have like 8 months from now on to learn it at home (without any homework/school interruption) before i get tortured in the college in two years. (and if i find out in my future university that they teach c# or java... then... thats like losing $1 million in poker)

I live in Denmark, so there are not that many opportunities.

Hope you can help me out
Thanks Posted Image


#4988857 win32 create a window question

Posted by Assassinbeast on 10 October 2012 - 03:03 PM

The L before a string literal means that the string should be represented with wide characters (wchar_t) instead of regular ANSI characters (char). If your compile options do not specify that you want to use wide unicode characters the windows API will assume you're using ANSI characters, hence the error you're getting.
The tutorial probably assumed that you would be using wide characters, but since you're not there's probably no harm in removing the L in front of the string.


Ahh ok, thanks alot bro Posted Image


PARTNERS