Jump to content
  • Advertisement

Lactose

GDNet+
  • Content Count

    1185
  • Joined

  • Last visited

  • Days Won

    6

Lactose last won the day on November 18

Lactose had the most liked content!

Community Reputation

11644 Excellent

2 Followers

About Lactose

Personal Information

  • Role
    Programmer
  • Interests
    Programming

Recent Profile Visitors

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

  1. The answer will depend on a few specifics. For these questions, assume the correct phrase is "mars". What is the expected result if the input is "sram"? (All input characters are correct, but order is not correct.) What is the expected result if the input is "mar"? (All input characters are correct, but correct phrase not solved.) What is the expected result if the input is "marss", "mmars", etc.? (All characters from the correct phrase are present and in the correct order -- but with additional characters.) What is the expected result if the input is "MARS"? (Case sensitivity.) An example solution could be something like (pseudo): auto minCount = min(correctPhrase.count(), guessedPhrase.count()); int numMatching = 0; for (int i = 0; i < minCount; i++) { if (correctPhrase[i] == guessedPhrase[i]) { ++numMatching; } } But like mentioned, it depends on the specifics of the expected results.
  2. Lactose

    collision sprite

    Putting exit in code to debug is not something I would recommend. Research breakpoints and debugging.
  3. Lactose

    Need Help For My Simple C# Code

    You didn't write what was going wrong (which you should keep in mind for the future), but in this case I'm fairly certain it's because your FixedUpdate() function is living outside the PlayerController class. Move it up inside the class and see if that helps.
  4. Lactose

    rotating sprites

    Is this the same game you were working on for a college class?
  5. Lactose

    rotating using trig functions

    When posting a question, what are you supposed to include in the post? Hint: You've been told probably a dozen times or more.
  6. Lactose

    What do game testers learn?

    You can't know which bugs are major and which are minor if you can't find them. Even if you know a bug exists, it's a lot more difficult to fix something if you can't reliably reproduce it (i.e. you prefer to have detailed steps for reproducing a bug, both for finding the bug and verifying fixes). Finding bugs can also be done in a number of ways. Managing automated tests is quite different than doing pure manual testing. Even for testing, someone with a decade of experience finding bugs can draw on a lot of knowledge when it comes to which bugs might exist, and see patterns others miss. Knowledge and experience with different kinds of bugs and testing can be a huge factor -- platform certification testing is quite different from localization testing or network related testing. QA is a job in which you can improve your skills, just like any other field. You probably won't gain a lot of programming skills from doing QA, but then again you probably don't get a lot of programming skills from making art assets, either. Basically, you can have good testers, and you can have bad testers. This means that, as a tester, there are things you can learn and improve.
  7. Lactose

    What do game testers learn?

    What do programmers learn from their job? All they ever do is implement features, create software architecture and fix bugs.
  8. Lactose

    Int vs. Float Graphics Programming

    When it comes to internal usage as well... This is not a good idea in many cases, due to e.g. movement speed and timesteps. You might convert/snap positions to be aligned to a grid in many cases for display/logical checks, but it's useful to have the raw position be without more rounding/inaccuracies than needed.
  9. I can't remember ever being able to do as you described, changing while not being in a breakpoint/step-through mode.
  10. Nothing. That's the same link twice.
  11. Lactose

    Keyboards for Programmers

    Currently using a Logitech G810 Orion Spectrum. I don't use all the LED stuff -- I use it mainly for the mechanical switches (Logitech's own Romer-G), which I much prefer to any of the Cherry series I've tried. https://www.tomsguide.com/us/logitech-g810-orion-spectrum,review-3384.html
  12. Lactose

    Find center and extents of AABB box

    At a guess, the vMin and vMax declarations are swapped. The minimum of -INFINITY and some other number will always leave you with -INFINITY. They are used as "what is the current minimum/maximum we've found so far". Setting them to their "opposite" infinities allows any number to override them and get proper values. I would guess the corrected version should be: XMFLOAT3 vMin = XMFLOAT3(INFINITY, INFINITY, INFINITY); XMFLOAT3 vMax = XMFLOAT3(-INFINITY, -INFINITY, -INFINITY);
  13. That would work if you're wanting just the direction, but surely it would prevent being able to use the magnitude as e.g. speed or similar? I would say stuff x and y into a vector, and normalize the vector only if its magnitude is larger than 1 (something I've seen with an old/flimsy/faulty gamepad). Like Promit says, atan2 will give you the angle
  14. What you describe doesn't sound like what things should be like. Does the controller work like you want it to in other games or when calibrating it? (in Windows, you can configure/test a gamepad fairly easily). Alternatively, this seems to work as well: http://html5gamepad.com/ If it works, it's not the controller, it's your code/framework/implementation. If it doesn't work, try with a different controller. Personally, I'm guessing it's your implementation that's to blame. At a guess, are you adding each axis, and getting a total of >= 1? This is not what you should be doing.
  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!