/spacey

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

« back to all changes in this revision

Viewing changes to main.lua

  • Committer: Josh C
  • Date: 2013-05-14 17:49:03 UTC
  • Revision ID: josh@9ix.org-20130514174903-790agtxqfvz8lnzv
player death

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
DEBUG = true
3
3
 
4
4
require 'zoetrope'
5
 
--__ = require 'underscore'
6
5
vector = require 'vector'
7
6
 
8
7
require 'group'
15
14
require 'cursor'
16
15
require 'bullet'
17
16
require 'rock'
 
17
require 'boom'
18
18
 
19
19
util = {
20
20
   signOf = function(value)
83
83
              --    end
84
84
              -- end
85
85
 
86
 
              the.rockColliders = {}
87
 
              the.bullets = {}
 
86
              the.rockColliders = Group:new()
 
87
              the.bullets = Group:new()
88
88
 
89
89
              the.bg = Tile:new{
90
90
                 image = 'data/stars3.png',
140
140
 
141
141
                    self.lastRock = love.timer.getTime()
142
142
                 end
 
143
 
 
144
                 the.bullets:collide(the.rockColliders)
143
145
              end,
144
146
   draw = function (self, x, y)
145
147
             View.draw(self, x, y)