/zoeplat

To get this branch, use:
bzr branch http://9ix.org/bzr/zoeplat

« back to all changes in this revision

Viewing changes to animation.lua

  • Committer: Josh C
  • Date: 2013-04-23 16:15:50 UTC
  • Revision ID: josh@9ix.org-20130423161550-2769i8ut566706p3
don't require underscore

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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