Changeset 531:a29f53a83a7d for nagslang


Ignore:
Timestamp:
Sep 7, 2013, 6:59:02 PM (7 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
rebase_source:
68f09ac36f2be0e0b63d31b95d8dd814156e3368
Message:

Notice when trying to pick up things in wolf form.

Location:
nagslang
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • nagslang/collectable.py

    r528 r531  
    44from nagslang import render
    55from nagslang.constants import ZORDER_LOW
    6 from nagslang.game_object import (GameObject, SingleShapePhysicser, Result,
    7                                   make_body)
     6from nagslang.events import AddDrawableEvent
     7from nagslang.game_object import (
     8    GameObject, SingleShapePhysicser, Result, make_body, EphemeralNote)
    89from nagslang.resources import resources
    910
     
    2930            interactible=environment.Interactible(
    3031                environment.Action(
    31                     self._collect, environment.HumanFormCondition())),
     32                    self._collect, environment.HumanFormCondition()),
     33                environment.Action(self._object)),
    3234        )
    3335
     
    3638        self.physicser.remove_from_space()
    3739        self.collected = True
     40
     41    def _object(self, protagonist):
     42        AddDrawableEvent.post(EphemeralNote(
     43            "You can't get a grip on it, but you have no pockets in this form"
     44            " anyway.", 2))
    3845
    3946    def update(self, dt):
  • nagslang/protagonist.py

    r520 r531  
    302302    def shoot(self):
    303303        if not self.has_item('gun'):
    304             AddDrawableEvent.post(EphemeralNote('You are not armed', 1))
     304            AddDrawableEvent.post(EphemeralNote('You are not armed.', 1))
    305305            return
    306306        vec = vec_from_angle(self.angle, BULLET_SPEED)
Note: See TracChangeset for help on using the changeset viewer.