/ld26

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

« back to all changes in this revision

Viewing changes to realfairy.lua

  • Committer: Josh C
  • Date: 2013-04-27 17:03:40 UTC
  • Revision ID: josh@9ix.org-20130427170340-b3igg8jy0z0g0opm
s/basecode/ld26/

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
}
 
 
b'\\ No newline at end of file'