Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by kogen

  1. Hi Richard, I thought of the idea of having the whole game stored in an array and do the whole math on that array just showing the graphics as a visual representation... but I'm not sure if this is such a good idea. I would have to loop every update-cycle through the whole array and check if there is something near to my figures. I've figured out another way: I am looping through all living black figures, calling another loop in each black figure on each living white figure. Then I can check if it is within a specific circle that has its center in the center of the black figure. Thus I can
  2. Hei Phaser-Folks, finally I had to register and now I really would like starting asking questions I've been playing around with Phaser for like a month and came to a point today where I could need some help. Here is the problem: I have a checker board and two different groups of figures (let's say black and white). Now I want to check if any of those figures is surrounded by four other figures of the other group, like one black is surrounded by one white (left, right, up and down). Since I have them in a group I cannot do a simple distance check like if white.x - black.x < x1 do... I
  • Create New...