/ld26

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

« back to all changes in this revision

Viewing changes to realfairy.lua

  • Committer: Josh C
  • Date: 2013-04-29 00:35:28 UTC
  • Revision ID: josh@9ix.org-20130429003528-6o7b23zq3c4m8nxe
be moved

Show diffs side-by-side

added added

removed removed

 
1
RealFairy = Tile:extend{
 
2
   image = 'data/realfairy.png',
 
3
   carryingPlayer = true,
 
4
   onUpdate = function (self, dt)
 
5
                 -- TODO: move player to self
 
6
                 if self.carryingPlayer then
 
7
                    the.player.x = self.x
 
8
                    the.player.y = self.y
 
9
                 end
 
10
              end
 
11
}
 
 
'\\ No newline at end of file'