/ld26

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

« back to all changes in this revision

Viewing changes to main.lua

  • Committer: Josh C
  • Date: 2013-04-28 22:26:28 UTC
  • Revision ID: josh@9ix.org-20130428222628-iw5am8h8mrzedutb
really basic feedback that your inventory changed

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
require 'transition'
11
11
require 'displacer'
12
12
require 'inventory'
13
 
require 'flower'
14
13
require 'levels'
 
14
require 'items'
 
15
require 'troll'
15
16
 
16
17
require 'svg_levels'
17
18
 
40
41
   draw = function (self, x, y)
41
42
             View.draw(self, x, y)
42
43
             --love.graphics.print('FPS:' .. love.timer.getFPS(), 20, 20)
43
 
             love.graphics.print('version:' .. VERSION, 20, 570)
 
44
             --love.graphics.print('version:' .. VERSION, 20, 570)
44
45
          end,
45
46
   onUpdate = function (self, dt)
46
47
              end
49
50
the.app = App:new {
50
51
   level = 'shore', --default level
51
52
   onRun = function (self)
 
53
              print('Version: ' .. VERSION)
52
54
              self.view = GameView:new{level = self.level}
53
55
              if DEBUG then
54
56
                 self.console:watch('VERSION', 'VERSION')
60
62
                 -- back off that dark overlay a bit
61
63
                 self.console.fill.fill[4] = 75
62
64
              end
 
65
 
 
66
              --the.inventory:add(Flower:new())
63
67
           end,
64
68
   onUpdate = function (self, dt)
65
69
                 if the.keys:justPressed('escape') then