Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 09 Dec 2005
Offline Last Active Today, 04:42 AM

#5220915 Very first game attempt. Would LOVE feedback!

Posted by MarekKnows.com on 02 April 2015 - 06:53 AM

Here is a coding tip.  If you know that all of your options are going to have 2 choices and basically do the same thing, you could wrap up that code into a function.  That way you can organize your code in such a way as, "here is the display code" and "here is the logic code".  Then later on, when you want to change the display code, you just do that in the one function, and everything will still work the same way, but now look slightly differently.

#5212495 Explicit uniform buffer location

Posted by MarekKnows.com on 23 February 2015 - 12:55 PM

In OpenGL v4.3+ you can specify the layout for uniforms.  See section 4.4 in this doc: https://www.opengl.org/registry/doc/GLSLangSpec.4.40.pdf


Also have a look here:


#5198947 Where should I start learning game development?

Posted by MarekKnows.com on 18 December 2014 - 09:25 AM

as The_Neverending_Loop said, start simple and work your way up especially if you've never made a game before.  Depending on which engine you choose to use, there may be built in support for some simple primitives like boxes, spheres etc.  In that case you won't have to worry about creating and importing 3D meshes since you can use those primitives instead.  Even with simple primitives you can makes games like Pong or tetris.  

#5197164 How is a game engine made?

Posted by MarekKnows.com on 09 December 2014 - 08:10 AM

Before I made my game engine(s) I started by making games.  After finishing my first game and wanting to start my second, I realized there was stuff from the first game that I could reuse in my second game.  So I ripped those pieces out of my first games code base and put them into my "engine".  Then I did the same thing with my 3rd, 4th, 5th etc game.  After a while my "engine" started to take shape containing a bunch of common reusable code.  

#5197158 Drawing many enemies

Posted by MarekKnows.com on 09 December 2014 - 08:02 AM

I recently posted an article here: http://www.gamedev.net/page/resources/_/technical/opengl/opengl-batch-rendering-r3900 that should help you out.  If you Batch your quads in the way that I show in the article you'll minimize the number of draw calls.

#5194593 Best language for mobile apps

Posted by MarekKnows.com on 25 November 2014 - 07:56 AM

Have a look at the Marmalade SDK: https://www.madewithmarmalade.com/products/marmalade-sdk


It is now free and lets you program in C++ and then distribute across a number of mobile platforms.

#5179915 Already ready to start making simple games

Posted by MarekKnows.com on 12 September 2014 - 10:57 AM

Do you need to know about polyformism and inheritance in order to make games?


You don't have to know polymorphism or inheritance to make games, however if you do understand these concepts it will save you a bunch of repetitive code, meaning your final game source code will be much smaller.

#5179906 Already ready to start making simple games

Posted by MarekKnows.com on 12 September 2014 - 10:37 AM

You will need to figure out how you can render your game on the screen.  If you plan on doing something basic with ASCII art then you can get away with simple console commands to output text.  However if you want to render graphics then you'll need to know how to load images and display them on the screen.  

#5179675 C++ college courses vs learning on your own..

Posted by MarekKnows.com on 11 September 2014 - 02:15 PM

-What is a good, easy to read book or tutorial to help, I'm open for online tutorials and stuff like that as well


also, I would hopefully be able to create something other than just display a triangle or rectangle to the screen, which I have heard some people have taken programming classes and this seems like their big final project (though some of these people were in Information Systems and not strictly a software based degree)


also, if anyone is willing to 'mentor' or just kind of keep me on track, show me how they started and what small programs they started with, as far as people to reach out to professionally, I have nearly no one in my social or professional circle that understands any of this, nor would want to learn haha.


I post C++ video tutorials on my website when ever I have spare time.  You'll also find a step-by-step tutorial series that takes you from a blank Visual Studio project to a 3D dungeon crawler game created using OpenGL.  So if you are interested, have a look.


I also take requests for video tutorials.  If there is a specific topic that you want to learn, just email me and I'll create a tutorial and post it on my site if I haven't covered the topic already.

#5179136 C++ starter

Posted by MarekKnows.com on 09 September 2014 - 01:25 PM


I'm only guessing, but I think most programmers, even after decades of programming, still constantly reference things and look things up. Programming entirely from memory might be a useful exercise to test your abilities/knowledge, but I would hazard a guess it's not the best way to do things in the long run.


The more you learn, the more impossible it becomes to remember every detail of everything.  But so long as you keep your skills in use, you can get by with looking the details up when you need them.  My memory was terrible 30 or so years ago when I started programming and it's even worse now, so I always have to have several reference sources close by whenever I do anything.



This is so true!  A few weeks ago I lost my internet connection on the weekend when I was programming.  I realized very quickly how difficult it was to program without access to the internet to look things up.  I had to pull out my text books to find code examples to refresh my memory on how certain things worked.  Needless to say, that weekend I got very little done :)

#5179077 C++ starter

Posted by MarekKnows.com on 09 September 2014 - 07:26 AM

i have 1 very big question to ask. ok i am only 15 and been so into programming since i was 12 and i know this is what i love. but i am not a very good at teaching my self through books or video but i have tryed so hard and  i have learned so much but it never seems like i know enough. like i am always going to be a beginner. so should i just give up and wait till i go to college for game dev and learn there or keep going on like a snail and learning really slowly and feeling like i know nothing all the time?


C++ programming just takes a few years to get really comfortable working with it.  I would say it took me well over 5 years to get to a level where I can look at any code and understand it now.  It just takes time to learn.  Remember there are always many different ways to program code, some good, some bad.  I found that reading the Scott Meyer's books http://www.aristeia.com/books.html really helped me understand the nitty-gritty details of how the language works.  

#5170582 College or Solo?

Posted by MarekKnows.com on 31 July 2014 - 06:55 AM

Creating a simple clone game can be relatively easy to do if you have the skills to program and make/get art assets.  The problem is that you won't be able to make much money off something like that.  To make a game that becomes viral and makes money for you, you'll need to spend lots of time on it.  


My advice to you would be to make a few simple games (from start to finish) to get a feel for the amount of work that is involved.  Once you have that under your belt, draft a design/plan for the game that you want to make that you hope will make you some money.  You can then plan out how much of the work you can do yourself, and how much you will need to outsource to get it released when you want to.  Remember, marketing your game is a big part if you hope that people will hear about it and buy it.  Making a game and releasing it won't make you any money if no one knows about it.


Good luck!

#5164553 How do you get ideas for new games?

Posted by MarekKnows.com on 03 July 2014 - 06:43 AM

I will read the news, usually something in the science section and then I get inspired on what I could make into a game.  Cool new technologies always spark my interest for new game ideas.

#5156019 C++ Game Programming Tutorial

Posted by MarekKnows.com on 26 May 2014 - 08:59 AM

You can find 100's of C++ video tutorials on my website.  They start off using Visual Studio 2003 but the C++ code will still work on newer compilers.  In the new Shader series that I'm working on right now, I'm using VS 2010 but a lot of members are actually using VS 2012 with no problems.

#5130530 Needing help on how to "re-begin" on C++

Posted by MarekKnows.com on 11 February 2014 - 07:45 AM

I also like to use http://www.codeproject.com/, there are some interesting articles there.