/traderous

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

« back to all changes in this revision

Viewing changes to main.lua

  • Committer: Josh C
  • Date: 2013-05-14 00:15:01 UTC
  • Revision ID: josh@9ix.org-20130514001501-z14e702ncp21s0yr
try to not spawn rocks where you can see them.  not working if screen 
crosses game boundaries.

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'
5
6
vector = require 'vector'
6
7
 
7
8
require 'group'
14
15
require 'cursor'
15
16
require 'bullet'
16
17
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 = Group:new()
87
 
              the.bullets = Group:new()
88
 
 
89
86
              the.bg = Tile:new{
90
87
                 image = 'data/stars3.png',
91
88
                 -- 1366x768 * 3
140
137
 
141
138
                    self.lastRock = love.timer.getTime()
142
139
                 end
143
 
 
144
 
                 the.bullets:collide(the.rockColliders)
145
140
              end,
146
141
   draw = function (self, x, y)
147
142
             View.draw(self, x, y)