Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

105 Neutral

About nrgyzer

  • Rank
  1. Hi guys,   I read many tutorials in the last few days, but unfortunately I was unable to figure out, how to do the following...   The following 3 sample images are loaded during the startup of my game:     In the game they are displayed as illustrated below:     As you can see, it is possible that the images are overlapping. The question is, how do I know which image is picked? glReadPixels() is not fast enough. The images are having a transparent border... How to know which object was picked and what is the fastest method?   Thanks for any suggestions :)
  2. nrgyzer

    Merged and isolated bases

    Alright, thanks for the explanation. I'll try to implement the algorithm... 
  3. Hi guys,   I'm creating a small game where every user can have multiple bases and can connect them using power lines. Connecting multiple bases means that ressources are available between them. For example... the first base has 10 units building material and a second base 10 units water. Connecting them means that the water of the second base is also available in the first base. The same for building material. The units available depends on the buildings of each base. The user should be able to connect or disconnect multiple bases. This means the user can create an unlimited number of such power lines between his bases but can also destroy all the lines where every base is isolated again.   My problem is that I don't know how I can realize something like this. I already thought about creating a new base when the player creates the first power line between two bases, but what happens when the player destroys the power line? How can I unmerge the bases to be isolated again with his own ressources? I also don't know if this is the right way...   Any suggestions or ideas how to solve the problem? Sorry for bad english...   Thanks in advance!
  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!