• Advertisement

DeafTV

Member
  • Content count

    30
  • Joined

  • Last visited

Community Reputation

1705 Excellent

About DeafTV

  • Rank
    Member

Personal Information

  • Interests
    Design
    Programming
  1. What kind of game should I make first?

    Here is an article that goes through the beginning steps in game development.  In it there is a list of some basic games to work from and what skills each game works a lot with.  I  also agree with Tutorial Doctor; make sure you see a project to completion.
  2. Handling user input

    Hard to understand what you're looking for without details like HappyCoder said, but I would start here.
  3. My first game, a Pong spinoff.

    I didn't build it and run it since I don't have allegro, but I glanced over it real quick.   Just a couple styling questions:   Why are D_WIDTH and D_HEIGHT defines?  It would be better (style wise) to use constants like you did for your FPS variable. For variables like scor and diflevel, you may want to consider using vectors so you can add more amounts of score? and difficulty with ease.   For the next step in the project I would sort things into classes and more functions instead of having everything in main.  Looks good for a beginner, although I didn't play it and just glanced through it.
  4. How can I make a 2d pong game. SFML

    Serapth just posted this earlier and it is a great tutorial series on how to do it in C++ and SFML: Here   SFML has pretty good bindings for OpenGL so you can kind of work your way towards that (since you mentioned you wanted to work with OpenGL is 3d).
  5. Game programming Tips(Beginners Here)

    Here is a good post one of the gamdev members made: Here   This kind of reiterates what the others said but goes into a deeper level of detail about different languages.  Have fun :)
  6. Annoying Visual Studio problem

    So a black box appears on the letter in front of what you are editing?  Sounds like overtype is on and I think it is default bound to insert.  I couldn't find an option to turn the key off so try insert if it happens again.  I'm assuming it happens randomly because insert accidentally gets hit, but if it keeps happening you may need to re install visual studio.   Hope that fixes your problem :)
  7. Doing things the way they should be done

    I would suggest designing a basic Use Case since they tend to trick your brain into thinking in more of a real-application approach.  Usually these are for more of an overall design feature and it looks like you are more worried about the code side.  I still think it is worth taking a look at as it can help you pick out classes and variables you may need (and thus the method you may want to use).
  8. Beginner looking into game making

      This is assuming you are jumping straight into 3D programming (and not using an engine).  The first link I posted explains about different languages and expectations, so I won't go into much detail about that here.  There are many languages that you can pick from and still be a successful programmer.  Most AAA rated games do use c++, but that doesn't necessarily mean you should, especially if you are just starting out and don't feel comfortable with it.   You do not have to jump straight into OpenGL (in fact I don't advise it) as you should probably be starting with 2D games.  There are many libraries for 2D games that handle most of the lower-level drawing.  Eventually if you want to get into 3D, you would need to learn OpenGL with the math that goes along with it.   So, in short, pick a language you enjoy, learn the language, make simple games, and then slowly move on to harder things.   Another good article I remembered: Here
  9. Beginner looking into game making

    I don't have much time to answer all of your questions right now so here's a couple links to good articles:   http://www.gamefromscratch.com/post/2011/08/04/I-want-to-be-a-game-developer.aspx http://www.gamedev.net/page/resources/_/technical/game-programming/your-first-step-to-game-development-starts-here-r2976   Good luck!
  10. The first problem is here:   gameState currentgameState = Fighting; Since gameState is an enum, you don't need to use the type to refer to it again.  Thus it should look like this. switch (menuChoice) { case 1: currentgameState = Fighting; //Removed gameState here break; case 2: currentgameState = Fighting; //And here. I think you meant for this option to be statistics break; //Needs another break here default: break; //Always good to have a default } I noticed a couple other places that also needed break statements.  that's a common beginner error that can lead to some annoying bugs as well.  Good to see someone familiarizing themselves with gamestates early on.  
  11. Start with the basics and begin to learn java (assuming you haven't by the way it sounds).  Java is a good language to start with but keep in mind that there will be road bumps along the way.   I recommend picking up a book on java (someone else can probably recommend one since I don't use java much).  There are also many online tutorials that are great to go along with.  Just understand that these basic console programs you make at first are important steps in creating what you want to make.  You must learn to crawl before you can walk and walk before you can run.   Once you get the hang of the java and have good practice with it (which is essential) you can begin working on small games.  Your first game will not be astounding and will probably be poorly written, but it's about the journey and the things that you learn while getting there.  Putting these things into practice will increase your understanding and teach you useful techniques to use.  I personally recommend making pong as your first game since it is simple, but more complicated than it looks on the surface.   Along the lines of libraries I only know of a few and do not know much about them, so here they are.  There ones I know of are: Slick2d,  LWJGL, libGDX, and OpenGL.  OpenGL is mostly used for 3d and is not recommended to use until you have completed a couple projects.  Here's the websites for the libraries so you can read about them:   http://www.slick2d.org/ http://libgdx.badlogicgames.com/ http://www.lwjgl.org/   I'm sure there's stuff I missed but here's a basic overview of what is ahead.  Have fun and remember to take breaks when you want to throw your computer out of the window! (Which tends to happen a lot in programming...)
  12. Game instantly quits.

    I would have the start function initialize the library and an end function to close the library. I would also have a separate function for your main loop to call Update, Draw, etc.   I would also have the bool quit as a member variable to allow for more "dynamic" changing.  In my current project, the core class, GameEngine, is set up as a singleton with the bool quit as a static.  Then my main function calls are called in main within my main loop.   Just some design ideas as you progress further.  Cleverly placed print statements also help in debugging something like this    Edit: Forgot to mention that your init(), update(), and draw() functions only return 0 and not 1 which is what your if tests for.
  • Advertisement