PDF download Download Article PDF download Download Article

You can create a game engine to simplify the programming process for all of the games you make. If you're a developer looking to create your own game engine from scratch, check out this tutorial for coding your own a simple game engine!

Part 1
Part 1 of 4:

Programming Basics

PDF download Download Article
  1. There are a variety of languages from which programs are made. The language you choose doesn't matter too much, but the most important thing is that you start somewhere. [1]
    • There are many programming languages to choose from, but most go with C++ or Java and they are also the most useful in Game Development.
    • Once you learn one language, it's much easier to learn another.
  2. The most effective way (in my opinion) to learn programming/computer science is to take a class! Whether this is a class at your school, or outside of school shouldn't matter.
    • No matter who you are, you can find a programming class that suits you.
    • MIT OpenCourseWare ( http://ocw.mit.edu/ ) has a variety of free classes.
    • If you look around on Google, you'll find a number of other sites that also have free lectures and classes available.
    • You could also have a friend teach you a language, sharing is caring.
    Advertisement
  3. You don't want your first game to be you big, important game. You want a chance to screw up and not care too much about your project. [2]
    • Try to make a simple game.
    • If you learned Java, check out the Swing package.
    • Don't worry too much about this project(s), they should only take up a few weeks of your time.
    • Learn from your mistakes.
  4. Advertisement
Part 2
Part 2 of 4:

Planning

PDF download Download Article
  1. Try to challenge yourself. That way if you don't achieve all you set out to, you'll still (probably) have a pretty good game left over. [3]
    • Think for a while, don't feel pressured to do this in one sitting.
    • Sit on your idea for a while so you know it is good.
  2. Technical communications is important in any kind of engineering, including software engineering. You don't want to tell someone that you're making an apple and they go and make you audio for a pear.
    • Write up a "Game Design Document". These are used in professional game development, but more importantly, they easily communicate your idea(s) to others. There are many free templates available online.
  3. You don't have to go at this alone. It's also more fun and exciting in a group.
    • You can't make a custom game engine and manage the project without help.
    • Ask your Friends first before going to strangers or advertising for help, you'd be surprised who would love to get into the game industry.
  4. Advertisement
Part 3
Part 3 of 4:

Development

PDF download Download Article
  1. Look into what you're going to do before you do it. Even when you make an engine from scratch, there are still a number of tools that you could make your engine out of. [4]
    • Look into "OpenGL" if you learned C and "JOGL" if you learned Java.
    • Maybe buy a textbook on OpenGL, "Redbook" is the most famous one, but it is online for free.
  2. Render a primitive or 2D object to get started.
    • Make a 2D triangle, or a cube.
    • Look into "Display Lists" so you can draw many primitive objects.
  3. There aren't many games where you can't change where you're looking.
    • Make the perspective of your game (First person perspective, top-down, etc.)
  4. One step at a time! Except not actually because stepping is actually kind of complicated. [5]
    • Either move everything around the camera or move the camera view port, but they are the same to the processor.
    • Be able to move in all angles, not just along the axis.
  5. That default color will get old after a while, and not many games are used with only solid colors.
    • Splice them into your display list(s).
  6. This makes your game much more interesting and realistic.
    • Perhaps footsteps for when you walk.
  7. This also adds to the realism.
    • Learn the different kinds of lighting.
    • Use a sphere instead of a cube to make sure the lighting is working.
    • You could put a primitive object where the light should be coming from to debug. Just make sure the light can get out of the box/sphere you put it into.
  8. The biggest thing people notice when you show them an incomplete game engine is the lack of proper collision detection.
    • Make it impossible to walk through the cube.
    • Make it possible to move (in other directions) when you are colliding with the cube.
  9. Most games have falling things somewhere.
    • Make a floor, and jump around on it.
  10. Advertisement
Part 4
Part 4 of 4:

Completion

PDF download Download Article
  1. Don't forget to market it. You may want to enlist a marketer (friend) to help you. Assume your game is going to be a hit so that way you can work towards that.
    • Have Fun!
  2. Don't be coy, tell other developers that you made a game engine. You don't have to be the only one to develop with your engine. When you let other people use it, you have the right to some of their royalties, but also you get constructive feedback and perhaps improvements to your engine.
    • Game Engines are valuable and impressive.
    • Did you notice how much those other engines are charging indie developers? (You could be that engine!)
    • Use your engine to get wannabe game developers into the industry!
  3. Start your journey into the booming game industry!
    • Now you can laugh at your friends who said "Unity was easier".
  4. Advertisement


Expert Q&A

Ask a Question
      Advertisement

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!

      About This Article

      Thanks to all authors for creating a page that has been read 117,997 times.

      Did this article help you?

      Advertisement