Advertisement Jump to content
  • Advertisement

Foot Soldier

  • Content Count

  • Joined

  • Last visited

Everything posted by Foot Soldier

  1. Foot Soldier

    Anyone tried GameTutorials

    I also used them when they were free, and I thought they were really good. Because each lesson is all ready to compile, you can play around with the code and figure it out without making a new project every time. I think scets comment is misguided, because it's basically the tutorial is in comments in the code file. If it gets longer then the actual code, I don't see the problem. It might be a little steep what they're charging, but I'd definatly keep it as an option. You'll learn a hell of a lot.
  2. Foot Soldier

    help getting started

    My first piece of advice, is don't be intimidated. Just dive right in, whats the worst that could happen? But anyway, I HIGHLY reccomend SDL ( You will be drawing bitmaps on the screen in no time at all, and that is very rewarding. Once you get a bitmap to draw on the screen, the rest will come avalanching in. Here is a wonderful tutorial to start with: Some people might say start with directX, but ignore them. It takes too much experience to set up and understand. Good luck!
  3. Foot Soldier

    tip for share.

    I'm not "dissing" him, I'm just pointing out how inane it is to share every random tidbit of bungled logic you come to realize.
  4. Foot Soldier

    (C++) Creating Homing Missiles

    y = mx + b 8)
  5. Foot Soldier

    Reading from file problems

    You're really just going to have to debug the program, step through it, and see where it is going wrong. I can only say so much because I don't have to full program, and really have no interest in debugging it if I did. Just set a break point and figure out what is going wrong. The only thing I can see, it what is %i for? Use %d for integers.
  6. Foot Soldier

    tip for share.

    I think calling it, "research" is going a little overboard.
  7. Foot Soldier

    function object

    1) why don't you try and compile it and see what happens? 2) why would you do something like that? It solves nothing and complicates everything.
  8. Foot Soldier

    3D Modeling

    I think the root of your problem is that you're looking for an easy way out. There is no such thing. 3D modeling is no less difficult of an art then animating 2D sprites. Both are going to take mountains of time to get proficient at. In response to the last question you asked, the answer is the same for any subject, PRACTICE Learning to program 3D is a whole new host of problems and solutions from 2D, and worrying about one microcosm such as 3D collision detection is worthless. Obviously 3D objects can collide, they just do it much much differently then 2D sprites do. One last thing, saying 2D is not an option is naive. I could give a million reasons why.
  9. Foot Soldier

    Reading from file problems

    Instead of reading the name character by character, just use fgets. It reads in a string until it hits a newline of end of file. char * fgets ( char * str, int num, FILE * stream ); So just nix the j loop and use this function. Hope that helped.
  10. Foot Soldier

    Visual Studio AppWizard

    It used to be pretty easy to create a custom code wizard, but with .NET it appears to have gotten a bit confusing. Good luck:
  11. Foot Soldier

    Reading from file problems

    You have to step through the logic. You seemed to have ignored my advice about binary structs and strtok, so I guess I'll explain what is wrong with the logic. Lets step through the code for the file with the name, "braves", and all stats at 0: - Opens the file - numTeams is 1, only the braves are in the file - the for j loop goes the first time, getting the letter B into temp, the first to ifs fail - mystems[0].name[0] = 'B' - The loop does that 5 more times - The fscanf reads in a newline character - (j is 6), j is set to 20 - The loop breaks out (the name never recives a delimeter '\0') - It reads in a bunch of ints. Because I do not know what the actual file looks like, I can't say what else could be causing a problem. Do you have the [ and ] around each item? Let me paraphrase the tutorial I linked already: //substitute your team struct struct OBJECT { int number; char letter; } obj; //set the values inside of the program obj.number = 15; obj.letter = ‘M’; //with file out, write the object out fout.write((char *)(&obj), sizeof(obj)); The line (char *)(&obj) may be confusing, but don't worry about the specifics. Do you understand how this is much easier then parsing text? Here is how simple your load function will be if you write out to a binary file: for(int i = 0; i < numTeams; i++) { *)(&tempTeam), sizeof(TEAM)); myTeams = tempTeam; }
  12. Foot Soldier

    MFC Question

    I don't think you can. I could be wrong, obviously, but devc++ doesn't have the files required. Just get the free version of visual studio, and then compile it with that.
  13. Foot Soldier

    Reading from file problems

    That code is ungodly. It is very poorly written, and has unclear comments. The first mistake is writing to and from text files. To do that, you need to translate from data to text, and back again. You said you had a list of 12 structs, why not just write the whole struct to a binary file? Read this very helpful tutorial, and pay attention to when he writes and reads structs: The second mistake is the poorly thought out logic of the function. Spend more time clarifying exactly what you are trying to do before doing it. Thirdly, and this one fits with the second, the code formatting makes it even harder to read. If, for some reason, you need to use plain text files, please look into the strtok function: It will make your life (and code) much easier. Hope this helped.
  14. I would basically have a conditional statement in the SDL_KEYDOWN message, that goes off if they just hit a button to set a key. Here is the example: - User presses GUI button to set the "foreward" key. Pressing this button sets a varible "foreward_key_check" to true; - In the message loop, in the keydown section, you check if "foreward_key_check" is true. If so, you set the key that is being dealt with as the foreward key. - Once you set the foreward key, set "foreward_key_check" to false. - In the code for handling the key press to move foreward, instead of checking a constant, you check for if the key == a variable that holds the key the user chose. Of course, wrap this up in tidy classes or functions or whatever, but this is the general idea. Do the same check in mouse code as well.
  15. Foot Soldier

    Has the discrimination started yet?

    In response to the OP: The way you justified introversion was a delusion. It is only like that because of fear. I have all respect for someone who chooses to be alone rather then hides away from people, but ask yourself honestly, is that the reality?
  16. Recently I have looked at the pike documentation, and it seems fairly well suited for 2D game programing. The syntax is c style, and the standard modules encapsulate many many things. Does anyone here have experience with pike? Being interpreted, is it fast at all?
  17. Foot Soldier

    SDL Horizontal Flipping

    How fast is that? I can't imagine it would be fast at all, but I forget what the putpixel code looks like.
  18. Foot Soldier

    SDL and image transformation

    For the first question, just place him somewhere random along the x axis and let the gravity and collision detection get him snug in there. As for the other question, look into SDL rotozoom, it lets you rotate images.
  19. Foot Soldier

    SDL Horizontal Flipping

    Look up the SDL rotozoom library. It is made for rotating images, but if you pass -1 in the horizontal field and 0 in the vertical, it will flip it horizontally.
  20. Foot Soldier

    My genius plan!

    Quote:But all games are single player at one point in their life and then some go multiplayer then after multiplayer some go MMO, just this may happen faster for some games then others. :P This is false. They are designed as MMOs from the very begining.
  21. Foot Soldier

    New job XD

    You're quitting a firefighting job?! Geez man, I know dozens of people who are chomping at the bit to BE one. The competition to get into that is rediculously steep, I'm suprised you are just dumping it becuase it doesn't suit you perfectly. I mean, you probably put alot of work into getting that position? At least EMT, probably paramedic depending on where you are, and all the training and testing you went through?
  22. Foot Soldier


    Your question was extremly unclear. Since I can't understand what you were asking, I'll simply explain the descructor since your question seems to have to do with when that is called. The destructor is called whenever the object is destroyed. For local variables, this could be when they go out of scope, or when objects created on the free store (with the new operator) are deleted (with the delete operator. Here is an example: MyClass *mc = new MyClass; //Constructor is called delete mc; //destructor is called void func() { MyClass mc2;//constructor is called }//destructor is called
  23. Foot Soldier

    Hello World failure

    Slow down man, whats the rush. It's unreasonable to go straight to 3D programming without taking the time and care to know how to program first. The tutorials and books are not assuming you are a super genius, they are just slowly trying to build up your knowledge of programming, even if it is temporarily superficial. After you become better at programming, then you start to understand WHY you do certain things. Until then, just relax, slow down, and pay attention to what the tutorial is telling you. Forget about 3D for now, infact forget about graphics. This may sound harsh, but understand that the things you want are things you have to spend a great amount of time sowing, so you may later reap.
  24. Foot Soldier

    [SDL] how to increase "w" member

    Are you trying to stretch the image? Or just increase the size of the surface? Ill assume the former, and link ya to an SDL library: Either of those should be able to resize an image. If you were trying to do the latter, why not just delete and remake the surface?
  25. Let me make this point clear, where you do undergrad does NOT matter. The only people who care where you went to undergrad do not matter. Even medical schools and dental schools, some of the hardest places to get into, don't put ANY weight on where the applicant went to college. Do yourself a favor, save 10 grand, and stay closer to home. Any of the UCs are great schools.
  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!