/ld27

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

« back to all changes in this revision

Viewing changes to main.lua

  • Committer: Josh C
  • Date: 2014-07-03 14:41:57 UTC
  • Revision ID: josh@9ix.org-20140703144157-xydxt62xzcdq6bdk
cluke009 zoetrope + my spritebatch changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
 
134
134
              local nr = 'data/NewRocker-Regular.otf'
135
135
              self:add(Text:new{
136
 
                          text = 'Name Of Game',
 
136
                          text = 'Treasures of the Decimaze',
137
137
                          --x = 0,
138
138
                          y = 100,
139
139
                          width = self.bg.width,
179
179
}
180
180
 
181
181
the.app = App:new {
 
182
   name = "Treasures of the Decimaze",
182
183
   onRun = function (self)
183
184
              print('Version: ' .. VERSION)
184
185
 
194
195
              end
195
196
           end,
196
197
   onUpdate = function (self, dt)
 
198
                 if the.keys:justPressed('f1') then
 
199
                    local ss = love.graphics.newScreenshot()
 
200
                    ss:encode('screenshot-' ..love.timer.getTime()..'.png')
 
201
                 end
197
202
              end
198
203
}