/ld28

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

« back to all changes in this revision

Viewing changes to main.lua

  • Committer: Josh C
  • Date: 2013-12-15 18:36:53 UTC
  • Revision ID: josh@9ix.org-20131215183653-47wmq1ux17xspk93
intermidiate + win screens

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
           end
118
118
}
119
119
 
120
 
TitleView = View:extend {
121
 
   onNew = function(self)
122
 
              self:add(Tile:new{
123
 
                          image = 'data/title.png'
124
 
                       })
125
 
           end,
126
 
   onUpdate = function(self)
127
 
                 if the.keys:allJustPressed() then
128
 
                    the.app.view = GameView:new{level = 1}
129
 
                 end
130
 
              end
131
 
}
132
 
 
133
120
the.app = App:new {
134
121
   name = "LD28",
135
122
   fps = 30,
136
123
   onRun = function (self)
137
124
              print('Version: ' .. VERSION)
138
125
 
139
 
              --self.view = GameView:new{level = 1}
140
 
              self.view = TitleView:new()
 
126
              self.view = GameView:new{level = 1}
 
127
              --self.view = SlowView:new{level = 1}
141
128
 
142
129
              if DEBUG then
143
130
                 self.console:watch('VERSION', 'VERSION')