Skip to content

Snakes shoot venom!... also Moved Weapon handing up to Mob from player #745

merged 4 commits into from Mar 4, 2012

6 participants

Flet commented Mar 4, 2012
  • Moved weapon code out of player and into Mob so Mobs can now have weapons.
  • added checkIfInFront() check to see if Player is in front of mob before shooting
  • New BulletPoison with graphics (Thanks @GodleyDemon )
  • Every 20 ticks Snakes will randomly shoot venom 20% of the time if the player is in front of them and near

Note, venom does not poison... left for future enhancement by someone :)

Flet commented Mar 4, 2012

meh, conflicts.

@Flet Flet Merge branch 'develop' of
into snake


Although the logic might need some improvements. In 0:25 the snake shoots 3 times consecutively. That might be a bit too often imho. But we can change that later...

Elosanda commented Mar 4, 2012

you gave them weapons, are you crazy?! but i like it +1
i have also a little improvement in mind (shots create small poison pools an the floor which disappear slowly)


Is there a range limit?



@Maescool Maescool merged commit 923f599 into Maescool:develop Mar 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.