Jump to content
  • Advertisement


  • Content count

  • Joined

  • Last visited

Community Reputation

275 Neutral

About Aluthreney

  • Rank
  1. Thanks for the responses. I've decided to keep it simple and implement the player character as a simple class.
  2. I am implementing the player character of my game as a class, and I only need one instance. I want the code to reflect this "single instance" requirement by allowing only one instance to be made. I'm currently looking into the Singleton pattern; it seems to satisfy my requirements of only one instance, as well as limiting access to the player character data, given the scope in which I would instantiate the class. With that said, there seems to be a substantial debate over the use of the Singleton pattern. So, my question: Is it appropriate to use the Singleton pattern to implement my player character class (of which I only need one instance)? If not, are there any alternatives which meet my requirement for a single instance and limited access to the player character data?
  3. Aluthreney

    Inverse Proportion and Zero

    That's exactly what I needed, thank you very much. Just one more question: Could you point me to a source of information that discusses the formula you posted? I don't mean to bother, but I always like to have a conceptual understanding of the things I work with.   Once again, thank you very much.
  4. Aluthreney

    Inverse Proportion and Zero

    I am sorry if I was unclear; I was trying to get to the point quickly. I am trying to create an user interface where, in order to pick a color, the user must click within the area of a circle. Absolute red (255) lies at 90º; Absolute green at 210º; Absolute blue 330º. When the user clicks within the circle's area, the distance between the clicked point and each absolute color node is calculated. Finally, in order to obtain the each color's intensity, I calculate the distances with the circle's diameter.   I am having trouble with that last part (calculating the color's intensity).
  5. Aluthreney

    Inverse Proportion and Zero

    For a few days now, I have been trying to find a way in which I can calculate the intensity of each component of an RGB color based on two lengths. To exemplify: Let us say I am trying to measure the Red component of a color. The minimum length is 0 (which represents 255); the maximum length is 10 (which represents 0); the length I wish to measure is 10.   In so far, I have attempted to use the inverse proportion formula, but apparently it does not work well with zeros: 5/10 = 127.5/x (=) 10/5 = 127.5/x <- Inverse (=) x = 5 * 127.5/10 (=) x = 637.5/10 (=) x = 63.75 The, logically, correct answer is 0. I have been looking for an alternative, but so far I have found nothing. I would be very thankful if someone could point out a formula I could use to calculate the color intensity.
  6. Aluthreney

    Practical use of Vector Math in Games

    Thank you so much for this *tears of joy*
  7. Aluthreney

    Math for Game Developers Video Series

    Amazing. Fantastic. Exquisite. For the last few months I've been pondering on how to finally start getting serious with math to better myself in game programming. It seems the answer found me. Thank you very much for these videos :D P.S. Could you post a link to your channel?
  8. Aluthreney

    Update 3- 3D models and animations!

    I prefer the gas pump on the right. I'm not familiar with 3D/graphic arts terminology, but the "depth" of the texture on the left image seems too exaggerated.
  • 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!