/zoeplat

To get this branch, use:
bzr branch /bzr/zoeplat

« back to all changes in this revision

Viewing changes to animation.lua

  • Committer: Josh C
  • Date: 2013-04-11 02:07:08 UTC
  • Revision ID: josh@9ix.org-20130411020708-psrxtdnm8xe4pz7d
text balloon system

Show diffs side-by-side

added added

removed removed

 
1
-- monkey patches for Animation
 
2
 
 
3
local oldnew = Animation.new
 
4
function Animation:new(obj)
 
5
   obj = oldnew(self, obj)
 
6
 
 
7
   if obj.dialog and not obj.balloon then
 
8
      obj.balloon = Balloon:new{sprite = obj}
 
9
   end
 
10
 
 
11
   return obj
 
12
end