/ld28

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

« back to all changes in this revision

Viewing changes to main.lua

  • Committer: Josh C
  • Date: 2013-12-14 22:33:14 UTC
  • Revision ID: josh@9ix.org-20131214223314-gxlkcixtm6ma1mlr
put some walls and a goal... doesn't feel quite right.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
require 'version'
11
11
require 'player'
12
12
require 'clone'
 
13
require 'goal'
13
14
 
14
15
GameView = View:extend {
15
16
   onNew = function (self)
26
27
 
27
28
              the.clones = Group:new()
28
29
              self:add(the.clones)
29
 
              for _ = 1, 14 do
 
30
              for _ = 1, 15 do
30
31
                 the.clones:add(Clone:new {
31
32
                                   x = math.random(2, tw-2) * 16,
32
33
                                   y = math.random(2, th-2) * 16
57
58
 
58
59
the.app = App:new {
59
60
   name = "LD28",
 
61
   fps = 30,
60
62
   onRun = function (self)
61
63
              print('Version: ' .. VERSION)
62
64