another screenshot
Hi fellow pyweekers,A friend of mine suggested turning my game into a beast hunt. So far I've added a beast (but without any AI yet, and basically just a large version of the main character with horns) and some minions (just clones of the main character at the moment).
I've added a way too aggressive controller for the minions
def update(self):
# do something sensible
# attack!
angle_betw = math.atan2(self.player1.avatar.y - self.avatar.y,
self.player1.avatar.x - self.avatar.x);
dist_betw = math.sqrt((self.player1.avatar.x - self.avatar.x)**2. +
(self.player1.avatar.y - self.avatar.y)**2.);
(self.player1.avatar.y - self.avatar.y)**2.);
if utils.shortest_difference_between_angles(angle_betw, self.avatar.facing) > 10. * math.pi / 180.:
# turn towards
if utils.compare_angles(angle_betw, self.avatar.facing) > 0:
self.set_turning_left();
else:
self.set_turning_right();
else:
# charge!
self.set_attacking();
self.set_moving_forward();
Oh shit ...
... i'm being attacked by clones.
The beast lurks here, but doesnt move yet.
My gameplay mechanics are fairly terrible right now.
--Scott
Oh shit ...
... i'm being attacked by clones.
The beast lurks here, but doesnt move yet.
My gameplay mechanics are fairly terrible right now.
--Scott
(log in to comment)
petraszd on 2013/04/19 06:23:
I want to see it in action. It should be cool game. In it's own wierd way, of course...