Ignore:
Timestamp:
09/07/13 18:20:25 (8 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Phase:
public
Message:

Ephemeral messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/protagonist.py

    r440 r520  
    1111    CMD_TOGGLE_FORM, CMD_ACTION)
    1212from nagslang.game_object import (
    13     GameObject, Physicser, Result, Bullet, ClawAttack, make_body)
     13    GameObject, Physicser, Result, Bullet, ClawAttack, EphemeralNote,
     14    make_body)
    1415from nagslang.mutators import FLIP_H
    1516from nagslang.resources import resources
    16 from nagslang.events import DeathEvent
     17from nagslang.events import AddDrawableEvent, DeathEvent
    1718from nagslang.utils import vec_from_angle, vec_with_length
    1819
     
    301302    def shoot(self):
    302303        if not self.has_item('gun'):
     304            AddDrawableEvent.post(EphemeralNote('You are not armed', 1))
    303305            return
    304306        vec = vec_from_angle(self.angle, BULLET_SPEED)
Note: See TracChangeset for help on using the changeset viewer.