/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:00:27 UTC
  • Revision ID: josh@9ix.org-20130428220027-uneuwd3am4wl6klk
GET FISH

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
DEBUG = true
3
3
 
4
4
require 'zoetrope'
5
 
--inspect = require 'inspect'
6
5
 
7
6
--require 'sprite'
8
7
require 'version'
13
12
require 'inventory'
14
13
require 'levels'
15
14
require 'items'
16
 
require 'troll'
17
 
require 'gatetrigger'
18
15
 
19
16
require 'svg_levels'
20
17
 
26
23
              end
27
24
              for _, obj in ipairs(levels[self.level].objects()) do
28
25
                 self:add(obj)
29
 
                 --if obj.gateup then print('ADDING GATEUP') end
30
26
              end
31
27
              for _, obj in ipairs(svg_objects[self.level]) do
32
28
                 if not the.inventory.items[obj.name] then
34
30
                 end
35
31
              end
36
32
 
37
 
              --self:add(Fill:new{x=100,y=100,width=25,height=25,fill={255,255,255}})
38
 
 
39
33
              self:add(the.inventory)
40
34
 
41
35
              self:flash({0,0,0})
67
61
                 -- back off that dark overlay a bit
68
62
                 self.console.fill.fill[4] = 75
69
63
              end
70
 
 
71
 
              --the.inventory:add(Flag:new())
72
64
           end,
73
65
   onUpdate = function (self, dt)
74
66
                 if the.keys:justPressed('escape') then