/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-27 17:06:27 UTC
  • Revision ID: josh@9ix.org-20130427170627-tz6h157jbi708yke
art

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'