Jump to content
  • Advertisement


  • Content count

  • Joined

  • Last visited

Community Reputation

595 Good

About Neophyte

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Neophyte

    Newbie Javascript question

    The problem is right there in the error message: You are calling  this.Update(elapsedMS);   in your this.Tick function, but you have not defined an Update function anywhere.
  2. I've been kind of on the fence about the whole debate over whether or not to test private members, but I'm of the mind that private members are most likely to be small helper functions that are easy to prove that they work, and they require in-class access to test them.   Normally this sort of thinking can work out fine, but since you specifically mentioned Test Driven Development in your first post you should start thinking about tests differently. In TDD a test is not written to prove that something works, it's written to specify how it should work.  A test is, in a manner of speaking, a functional specification written in code.   Once you start thinking about tests as specifications instead of verifications then a lot of the things that initially seem "weird" about TDD makes immediate and intuitive sense (such as why you write the tests before the code, and why the code should not have the minimal functionality required to pass the tests, for instance).   So you should not test private methods. Not because they tend to be small and it is easy to prove that they work (which is often not the case anyway), but because they are not part of the specification of the class, and as such they are merely an implementation detail rather than something that should have  tests written for it.
  3. Neophyte

    The #'th game engine question.

    If you want something like Unreal Engine or Cryengine, then why don't you use Unreal Engine or Cryengine? This may seem like a frivolous question, but these are both available and fit the criteria you have listed, so there must be *something* that makes you not choose these, and telling us what that is will help us answer your question.
  4. It's been a while since I played with OpenGL, so take this with a grain of salt, but glOrtho doesn't require you to use the actual resolution of the screen. That is, your call GL11.glOrtho(0.0D, xRes, 0.0D, yRes, 1.0D, -1.0D); could be replaced with, for instance GL11.glOrtho(0.0D, 1920.0D, 0.0D, 1080.0D, 1.0D, -1.0D); which ought to solve your problem.
  5. Neophyte

    toString() [Java]

    [color=#000088]Use an anonymous inner class, like this public class Tester { public static void main(String [] args) { C cObj = new C() { @Override public String toString() { return "I am C"; } }; B [] bList = { cObj }; for (int i = 0; i < bList.length; i++) { System.out.println( bList.toString() ); } } } [color=#000088]Edit: Fixed whitespace-issues
  6. What makes you think that there being a package named "com" in two different libraries is causing you trouble? I ask because it is certainly not causing you trouble, so if you are having problems it comes from somewhere else, and you have not given information to let us help you solve it.
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!