/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 23:14:19 UTC
  • Revision ID: josh@9ix.org-20130428231419-930dlct49eh71pr8
gate

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
require 'items'
16
16
require 'troll'
17
17
require 'gatetrigger'
18
 
require 'fairyactivator'
19
 
require 'realfairy'
20
18
 
21
19
require 'svg_levels'
22
20
 
34
32
                 if not the.inventory.items[obj.name] then
35
33
                    self:add(obj)
36
34
                 end
37
 
                 if obj.name == 'flag' then
38
 
                    self:add(obj)
39
 
                 end
40
35
              end
41
36
 
42
37
              --self:add(Fill:new{x=100,y=100,width=25,height=25,fill={255,255,255}})
74
69
              end
75
70
 
76
71
              --the.inventory:add(Flag:new())
77
 
              the.inventory:add(Fairy:new())
78
72
           end,
79
73
   onUpdate = function (self, dt)
80
74
                 if the.keys:justPressed('escape') then