/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 20:59:18 UTC
  • Revision ID: josh@9ix.org-20131214205918-w846mewpjguh3soj
align to grid

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'
14
13
 
15
14
GameView = View:extend {
16
15
   onNew = function (self)
27
26
 
28
27
              the.clones = Group:new()
29
28
              self:add(the.clones)
30
 
              for _ = 1, 15 do
 
29
              for _ = 1, 14 do
31
30
                 the.clones:add(Clone:new {
32
31
                                   x = math.random(2, tw-2) * 16,
33
32
                                   y = math.random(2, th-2) * 16
58
57
 
59
58
the.app = App:new {
60
59
   name = "LD28",
61
 
   fps = 30,
62
60
   onRun = function (self)
63
61
              print('Version: ' .. VERSION)
64
62