/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:
4
4
require 'zoetrope'
5
5
--require 'pepperprof'
6
6
 
7
 
--require 'group'
8
 
 
9
7
require 'version'
10
 
--require 'wrap_tile'
11
8
require 'player'
12
9
require 'goal'
13
10
require 'pause_view'
 
11
require 'win_view'
14
12
 
15
13
GameView = View:extend {
16
14
   gameStart = 0,
32
30
              self.maze3.playerScale = 1
33
31
 
34
32
              self.goals = {}
 
33
              the.goalsAchieved = 0
35
34
              for _, obj in ipairs(self.objects.sprites) do
36
35
                 if obj:instanceOf(Goal) then
37
36
                    obj.visible = false
65
64
 
66
65
                 if the.keys:justPressed('escape', 'q') then
67
66
                    PauseView:new():activate()
 
67
                 --elseif the.keys:justPressed('w') then
 
68
                 --   WinView:new():activate()
68
69
                 end
69
70
              end,
70
71
   switchMaze = function(self)