Tuesday, April 17, 2007

Wrapping Bees to Board



The initial bee setup was such that they'd just wrap from one side of the screen to the other. So you'd see a bee leave the right side of the screen (across the water) and then the bee would immediately pop onto the left side of the screen. This made the edges of the board unexpectedly unsafe.

To fix this, I'm setting up bounds at the edges of the play space so that bees stay on the grassy area. I thought about a few ways to do this. One way is to have each bee project raycasts to see where they're at. The second option, which is what I went with, is to have repelling forces coming from the sides of the board.

In either case, invisible walls are needed to box in the bees. In the actual game, these are set to not be visible.

Hopefully, this little tweak will make the game more fun and less unpredicitable.

Check it out: Lilly Bloom's Magic Garden

No comments: