/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 15:24:12 UTC
  • Revision ID: josh@9ix.org-20130825152412-t0uzxw6fd92i81rj
pause/quit screen

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