81
Other Projects / Re: [Demo] Zombie Grinder
« on: January 23, 2012, 11:16:09 pm »
I added a better version to your post Jordan, less lagging mammy lol
Hey, you're currently at 97 of 5,139! :3Thats not to do with the voting, thats just daily popularity measurmemt. We've been in the top 10 a lot of times on that.
Very awesome idea going on here. I took a look at the video and I'm extremely impressed . What development tool was used to make this? Also, the only suggestion I have is to make the players move a bit faster; they're walking slower than molasses right now.Speed varies based on health and perks. They move more than fast enough.
// Work out angle between enemy and link.
// 0 degrees is assumed to be straight up in this example.
angle = atan2(enemy.Y - link.Y, enemy.X - link.X)
// Offset angle based on 45 degres (so we are checking angle based on an X shape, not a + shape).
angle -= 45;
// Work out direction.
direction = angle % 90;
// If direction <= 0 Then Face Up
// If direction == 1 Then Face Right
// If direction == 2 Then Face Down
// If direction >= 3 Then Face Left