/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-11 02:07:08 UTC
  • Revision ID: josh@9ix.org-20130411020708-psrxtdnm8xe4pz7d
text balloon system

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
   --        end
56
56
}
57
57
 
58
 
MenuScreen = View:extend {
59
 
   --title = Text:new{text = "Test Platform Game", font = 48, wordWrap = false},
60
 
   title = Tile:new{image = 'data/title.png', x = 0, y = 0},
61
 
   onNew = function(self)
62
 
              self:add(self.title)
63
 
              --self.title:centerAround(400, 200)
64
 
           end,
65
 
   onUpdate = function(self, elapsed)
66
 
                 if the.keys:allJustPressed() then
67
 
                    the.app.view = GameView:new()
68
 
                 end
69
 
              end
70
 
}
71
 
 
72
58
the.app = App:new {
73
59
   record = true,
74
60
   onRun = function (self)
75
 
              self.view = MenuScreen:new()
 
61
              self.view = GameView:new()
76
62
              if DEBUG then
77
63
                 self.console:watch('onGround', 'the.player.onGround')
78
64
                 self.console:watch('onWall', 'the.player.onWall')
94
80
                       outfile:close()
95
81
                    end
96
82
 
97
 
                    if self.record and the.recorder then
 
83
                    if self.record then
98
84
                       if not love.filesystem.remove('record.lua') then
99
85
                          print('could not remove record.lua')
100
86
                       end