/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:35:26 UTC
  • Revision ID: josh@9ix.org-20130825153526-dcl4okzlmbyhmziz
cruft

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