/ld27

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

« back to all changes in this revision

Viewing changes to main.lua

  • Committer: Josh C
  • Date: 2013-08-25 16:04:57 UTC
  • Revision ID: josh@9ix.org-20130825160457-m0le8k88t0i2ooun
win screen activate!

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
require 'player'
9
9
require 'goal'
10
10
require 'pause_view'
 
11
require 'win_view'
11
12
 
12
13
GameView = View:extend {
13
14
   gameStart = 0,
29
30
              self.maze3.playerScale = 1
30
31
 
31
32
              self.goals = {}
 
33
              the.goalsAchieved = 0
32
34
              for _, obj in ipairs(self.objects.sprites) do
33
35
                 if obj:instanceOf(Goal) then
34
36
                    obj.visible = false
62
64
 
63
65
                 if the.keys:justPressed('escape', 'q') then
64
66
                    PauseView:new():activate()
 
67
                 --elseif the.keys:justPressed('w') then
 
68
                 --   WinView:new():activate()
65
69
                 end
66
70
              end,
67
71
   switchMaze = function(self)