Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 06 Jun 2002
Offline Last Active May 19 2014 11:25 PM

#4956162 HELP!

Posted by on 05 July 2012 - 06:33 PM

As dkrogmann suggested, C++ is probably not the best choice for your first endeavors in programming. Perhaps try something easier, like Python or maybe C#. If you search the forums for "C++ first language" you'll turn up a lot of reasons why.

I disagree, if he already knows basic C++ it would be unwise to switch. Just stick with what you know, C++ may be harder but if your going to have to learn it anyways, and already know some of it, its more of a pain to switch. It is basically a waste of time to go learn something else just because people say its "easier."

Any language is easy if you work hard enough, quit being lazy and put in some hard work. Posted Image

#4955869 HELP!

Posted by on 05 July 2012 - 12:55 AM

Well, see, the thing is that, at this very second (Dont take me too literally haha), is basically draw something on the screen. Maybe at a later time like next week or next month or next year I will get to all of the stuff that makes a game, a game but right now I want to focus on learning straight up C++ and very, very, very basic Gui/ drawing/coloring stuff.

A game is no different then writing a large piece of software, the only thing that is different is its designed to be game. Their are literally tons of steps you must take before you reach what you can consider a game. My suggestion is you stop focusing on large things, such as a, "mine-craft clone" and start focusing on smaller projects. Not to make you feel bad but it's going to be years, before you get to where you can make a mine-craft clone. Especially if your not even fluent in C++ yet.

#4955548 DirectX 9 or DirectX 11 ?

Posted by on 04 July 2012 - 01:18 AM

Use DirectX11 if you can, the book you have is great, make sure you understand everything before moving between chapters. Its probably one of the best introduction to direct x books you can buy. For an advanced book on the subject id recommend Jason's.
Since your not sure how to do 2D sprites, I think this is what your looking for: http://www.rastertek.com/tutdx11.html check tutorial #11. Posted Image

#4955536 Help me understand how to hook DX application, to copy screen buffer

Posted by on 03 July 2012 - 11:53 PM

Why would i use complete library only to install a hook to 2 functions? Its also not free for commercial and limited in express edition, lets not be ridicilous here.

Because its a lot simpler and safer then doing it manually. If your doing this for a commercial reason, I see no reason why you wouldn't benefit from buying it, and I am pretty sure the express version is all your going to need for what you specified. I also would question why your trying to do this? Typically this is the type of thing game hacks do, which I am willing to guess is exactly what your trying to do.

But a quick google search produced the following: http://spazzarama.co...ct3d-api-hooks/

#4955468 Help me change my life and career.

Posted by on 03 July 2012 - 04:24 PM

I'm going to go out on the limb and say learn C++ first. Java can be easier for some people, but the transition from Java to C++ is a rather bad one. Many may suggest C# while its very elegant, I wouldn't considering the primary tool used to develop games unless you intend to use XNA, its better used for tool development. Languages like C# tend to wrap everything up for you in nice easy to use objects that you don't have to think too much about.

I don't like the idea of people suggesting that C# is a stepping stone to what they perceive as harder languages, you can easily learn C++ right away if you want. It is not conceptually harder to learn C++, its just like any other language, plus its very powerful. Once you know C++ you will begin to understand a lot of lower level coding going on, and be able to truly understand what a computer is doing. Especially if you eventually take up assembly. This in return makes you a better programmer within all languages.

Plus you will never get anywhere in life, yet alone game programming if you shy away from what is hard.

However if your planning on focusing on android you need to know java, if you prefer to do iOS you need to know Objective-C.

#4955114 Trying to program a game.

Posted by on 02 July 2012 - 06:12 PM

private void GameLoop(){
    if (within frames per second){
This isn't an accurate representation of frames per second. The code should be changed to the following:
private void GameLoop(){
    if (within frames per second){

#4955091 Help me understand how to hook DX application, to copy screen buffer

Posted by on 02 July 2012 - 04:49 PM

Why don't you simply use detours.

#4955086 Best way of learning C++?

Posted by on 02 July 2012 - 04:36 PM

I got a C++ book on the front of me. Are there any methods of learning C++ execpt reading it off...? Share your learning experience...!

You should try making some programs, if the book has exercises do them. Theirs also tutorials online for C++. http://www.learncpp.com/, http://www.cplusplus.com/doc/tutorial/.

Theirs really no wrong way to learn C++, (other then confusing it with C) if you feel comfortable using the book just use it.

#4954869 Good HTML5/JS tutorials? Trying to make a 2D platformer w/ Tiled

Posted by on 02 July 2012 - 05:21 AM

I found plenty of tutorials with a quick Google search...


#4954868 [Help] How do you properly organize game architecture?

Posted by on 02 July 2012 - 05:13 AM

How do you properly code a commercial game architecture?
How do you organize it?

Design it in UML first. Approach your designs using a software methodology that are you comfortable with with, and get used to using things such as a subversion system. If your really interested in mastering game architecture, study it, Game Engine Architecture, API Design for C++, 3D Game Engine Architecture: Engineering Real-Time Applications with Wild Magic.

How do you make it not become unmaintainable spaghetti code?
What specific things to keep in mind when building this, codewise?

Organize your code well, comment it VERY well. Design a coding "style" and do not skew from it. Take and implement insights from books such as Code Complete.

#4954453 College advice?

Posted by on 01 July 2012 - 01:43 AM

So maybe just go to ASU?

I would say yes to this, ASU is also a non-profit public school. So you will likely get a better looking degree purely from that standpoint. Many employers don't like the idea of for-profit degrees. If you can I would also recommend taking a course in linear algebra. It is heavily used in game development, as well as CS, and many CS curriculum's do not cover it, which is disappointing in my opinion.

I was once interested in the curriculum at UAT myself, but after have been doing stuff for awhile now. I have realize just how limited their curriculum truly is.

That's kinda disappointing because gaming is one of the few things I'm truly passionate about

I used to feel the same way, I still develop games in my free time. A lot of the people on this site actually do it more as a hobby then as a profession, partly due to how bad the industry is, this however is entirely dependent on where you work. However if you consider just how many games get produced every year, and how many are actually a success. The idea that yours will be a success, is pretty much like winning the lottery.

This combined with publishers restricting creative design to maximize profit, makes for a less then fun environment in some cases.

That is not to say you shouldn't go into game development, but you may eventually find yourself wanting to do something else.

#4954443 College advice?

Posted by on 01 July 2012 - 12:32 AM

I would highly suggest against the idea of a "game degree." The main reason being what will you do if you cannot find a job doing game development? Or more interestingly, you might find that after in the game development field for a few years, you hate it.

Many times when you combine "work" with something you enjoy you will get a result that turns what you used to enjoy into something you hate.

Besides this however, a degree in say computer science, or software engineering opens up many doors for you then the niche of just "game development." Many employers may think your degree in game development is laughable, but some may find it useful (specifically game development companies).

However in my experience most people with game degrees do not necessarily end up with jobs in game development, perhaps ask these colleges your considering what the rate is for their students to end up in game development. I am willing to bet only a small handful end up in game development. This is why a degree in computer science or software engineering would suite you much better.

All games are basically pieces of software the only main difference is they are games, and designed as such. You will also learn much more useful things in a computer science or software engineering curriculum then you will in only a game development curriculum.

#4954110 Matrix rotation (Tetris)

Posted by on 29 June 2012 - 03:52 PM

Rotate a n x n matrix by 90 degrees:
for(int i=0; i < N/2; i++)
	for(int j=0; j < (N+1)/2; j++)
		cyclic_roll(a[i][j], a[N-1-j][i], a[N-1-i][N-1-j], a[j][N-1-i]);

void cyclic_roll(int &a, int &b, int &c, int &d)
   int temp = a;
   a = b;
   b = c;
   c = d;
   d = temp;

Something like this...?

#4953192 New To programming, Where to start?

Posted by on 26 June 2012 - 06:49 PM

You need to know a computer language before you can produce a game. If your new to C++ I recommend you buy a book on it and read it, tutorials online are usually not that great.

I recommend this:

#4952563 programming student but game development newbie

Posted by on 24 June 2012 - 11:05 PM

So i want to know is there a process, flow chart, some kind of design that could help me write what the code will contain, then when i type it in i can figure out the process on how the procedure of the class will be done.

It seems you are stuck on the design process of the game code? Have you learned UML? This is typically how programmers develop a high level view of their game. It's not necessarily required, but it will save you a lot of hassle if you do so. So you should probably try learning that.

Another suggestion I can offer is reading about game design, check out the book, A Theory of Fun for Game Design.