Ignore:
Timestamp:
09/04/13 22:36:30 (8 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Phase:
public
Message:

(really rubbish) bullets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/protagonist.py

    r249 r261  
    77    WEREWOLF_SOAK_FACTOR, PROTAGONIST_HEALTH_MIN_LEVEL, \
    88    PROTAGONIST_HEALTH_MAX_LEVEL
     9from nagslang.events import FireEvent
    910from nagslang.game_object import GameObject, Physicser, make_body
    1011from nagslang.mutators import FLIP_H
     
    219220        """Attempt to hurt something.
    220221        """
    221         pass
     222        vec = Vec2d.unit()
     223        vec.angle = self.angle
     224        vec.length = 100
     225        FireEvent.post(self.physicser.position, vec)
     226        print "Biff", self.physicser.position, vec
    222227
    223228    def in_wolf_form(self):
Note: See TracChangeset for help on using the changeset viewer.