/zoeplat

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

« back to all changes in this revision

Viewing changes to main.lua

  • Committer: Josh C
  • Date: 2013-04-10 00:42:25 UTC
  • Revision ID: josh@9ix.org-20130410004225-ok7v6kq2g632mqmv
playing with text (disabled)

Show diffs side-by-side

added added

removed removed

Lines of Context:
189
189
                  self.jumping = false
190
190
               end
191
191
 
 
192
               -- text blob
 
193
               if not self.text then
 
194
                  self.text = Text:new{wordWrap = true, width = 50, tint = {0,0,0}}
 
195
                  self.textfill = Fill:new{width = 54, border = {0,0,255}}
 
196
                  --the.view:add(self.textfill)
 
197
                  --the.view:add(self.text)
 
198
               end
 
199
               self.text.text = "Blah blah big text etc etc wrapping"
 
200
               self.text:centerAround(self.x+16, self.y+16, 'horizontal')
 
201
               _, texth = self.text:getSize()
 
202
               self.text.y = self.y - texth - 4
 
203
               self.textfill.x = self.text.x - 2
 
204
               self.textfill.y = self.text.y - 2
 
205
               self.textfill.height = texth + 4
 
206
 
192
207
               Animation.update(self, elapsed)
193
208
            end,
194
209
   collide = function (self, ...)