Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 08 Aug 2001
Online Last Active Today, 10:43 AM

#5177072 Starting a game for learning and fun

Posted by Glass_Knife on 30 August 2014 - 11:24 AM

Check out the FAQ: http://www.gamedev.net/page/reference/faq.php/_/for-beginners-r1


Also, the beginner's section on my website has a lot of useful information.


#5176939 OpenAL EFX support and alternatives

Posted by Glass_Knife on 29 August 2014 - 10:47 AM



And I forgot someone just wrote an article about all this...

#5176934 OpenAL EFX support and alternatives

Posted by Glass_Knife on 29 August 2014 - 10:28 AM

If was a long time ago, then maybe you need to switch to OpenALSoft, which took over the development when the OpenAL development stopped.  Looking at the lastest list of features shows a lot more than reverb.



#5175526 Trying to start a studio is painful

Posted by Glass_Knife on 22 August 2014 - 12:05 PM

First, thanks for sharing.  It can't be easy to lay it all out like this to the very internet that causes pain.  It seems that with all the success stories, all the digital distribution avenues, all the free tools and information available on the internet, that the number of people trying to become successful game developers is on the rise.


And you hear this a lot.  "Don't give up.  Don't be afraid of failure."  I dislike this advice.  It implies that failure isn't anything to worry about, like it is some minor annoyance or irrelevant feeling that you can just ignore.  


I think better advice should be "You are going to fail, and it is going to hurt.  Like hell!  If it didn't hurt so much that you're not sure you can try again, then you didn't really put everything you had into it, and you didn't really fail.  True failure is painful.  But it makes you stronger.  If you are wiling to suffer through real failure again and again, then you have what it takes to succeed."


As you have found out, it is not so easy.  I poured 16 months into a project that was only mildly successful.  Now I'm doing another one.  Just yesterday I felt like giving up because all the pain doesn't seem to be worth the effort.  But I'll see it through, because quitting is way more painful in the long run.  

#5175357 Checkstyle

Posted by Glass_Knife on 21 August 2014 - 03:54 PM

They still teach programming in programming classes?  No one programs anymore.  You just download, install, configure, and wire up technology stacks using other people's libraries.  If you're "writing" your own code it is obvious you didn't research the problem well enough.



#5174805 n00b question on 2D game programming

Posted by Glass_Knife on 19 August 2014 - 01:19 PM

The short answer is:  Everyone one has great ideas, but it's not as easy as finding a programmer, paying them to make your game, and then becoming rich.


The long answer is:  http://www.sloperama.com/advice/idea.htm

#5174766 Where to start (kind of)

Posted by Glass_Knife on 19 August 2014 - 10:59 AM



Here's a great opinion on the subject.

#5174765 How do you make these "long" web sites?

Posted by Glass_Knife on 19 August 2014 - 10:57 AM

If you mean infinite scroll, personally I detest it.


Since we all hate them so much, that means they will become the new "Gold Standard" and everyone will have them very soon.



#5174462 How to build a virtual machine

Posted by Glass_Knife on 18 August 2014 - 09:27 AM



This is an older book, and has a terrible name.  It actually teaches how to build a scripting language compiler and virtual machine from the ground up.  It's written in C++, and not without some bugs in the code, but it is still a great book.  


I used this to make a scripting language, compiler, and virtual machine for my final project for my programming degree.  I was able to get math, variable, and recursive functions working, as well as embedding the language in C++ and adding C++ extensions to call C++ from the scripting language.

#5173167 "No such file or directory" but it's obviously there!

Posted by Glass_Knife on 12 August 2014 - 03:08 PM

These things are so common, you'd think all these issues would be worked out.  But we need a little more info:





Off the top of my head, either you think that the math/Vec2.h file has been added to the include path but it has not, or you've moved from windows where file names are case insensitive to Linux where case matters.


If it makes you feel any better, I've been coding since the 90s and I just spent two days trying to get my windows C++ compiler to link some SFML static libraries.  That actually doesn't make me feel any better.

#5172935 Can't solve problems without googling?

Posted by Glass_Knife on 11 August 2014 - 04:15 PM

It seems like the best programmers are able to take problems that no one has solved before and develop solutions on their own.


"How did they figure this out without any help?"


I will make an assumption that since you're at gamedev you are interested in making games.  So try making a new game.  Not a re-imaging of something that already exists, but a completely new idea.  If your idea is good enough (and it may take a few) you will arrive at a place where you are stuck, and there is no one on the planet that can help you.  You are doing something completely new.  Google, friends, books, nothing will help.  


Now solve the problem.  It is so much more difficult than you think.  You will give up, but it will haunt you.  Then one night, while falling asleep, the solution to the problem you've already cast aside will snap into your mind.


There really isn't a better feeling.

#5172373 Stuck in C#......

Posted by Glass_Knife on 08 August 2014 - 05:25 PM

I know how to write it, and call it in C++, but I'm at a complete loss here.


I am not sure what you mean here.

#5172282 Battleship in java

Posted by Glass_Knife on 08 August 2014 - 08:37 AM

I don't want to argue semantics with people, I just want to know how to optimize my code. 


1.  Understand the more you learn about programming, the harder it gets.  Frustration is good.  It means you are learning.  If you expect to master programming this month you will disappointed. 


2.  You are not trying to optimize your code, but are trying to refactor the code.  The two are not mutually exclusive, but you are not replacing you algorithms to improve the speed or reduce the memory usage, you just want to make the code easier to read without changing the behavior.  That's refactoring.


Watch this:


#5172150 Battleship in java

Posted by Glass_Knife on 07 August 2014 - 04:32 PM

The first is the variable names. Short names like "s1", "e" and "b1" are devoid of meaning.


Yes.  It took a while to figure out rowf = rowFront.  Naming things is really hard, and when you're just starting out, you may think "Well, I know what all this is, so I don't need descriptive names."  But when you come back to your code later, you won't remember all this stuff.


For example, to make it easier to understand, I would make a simple point class:

public class Point {

  private int x;
  private int y;

  public Point( int x, int y ) {
    this.x = x;
    this.y = y;

  public int getX() { return x; }
  public int getY() { return y; }


Then, instead of rowf, colf, rowb, colb, I would do this:

  Point bow = new Point( 0, 1 );
  Point stern = new Point( 0, 3 );

And as rip-off pointed out, when you see the same code repeated over and over again, there is probably a better way to do it.


My first program, which shuffled a deck of cards in C++, looked just like this.  I had so many nested for loops I'm surprised it didn't run out of memory.

#5172080 Java and JOGL for serious Game development?

Posted by Glass_Knife on 07 August 2014 - 11:54 AM

I'm thinking about switching to using Java and JOGL for any future applications I develop because of this but I'm concerned about performance, has anyone here developed any graphically demanding games in Java/JOGL?


If you do this you will soon say "I was having trouble with my OpenGL, so I switched to JOGL, and now I have two problems."


If you look at the documentation for the different JOGL versions you'll see that it isn't going to fix anything (scroll to the picture at the bottom).