/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-06-15 15:58:55 UTC
  • Revision ID: josh@9ix.org-20130615155855-3i8a1hotsohsi82g
breakĀ outĀ planet

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
require 'bullet'
17
17
require 'rock'
18
18
require 'boom'
 
19
require 'planet'
19
20
 
20
21
util = {
21
22
   signOf = function(value)
123
124
              self:add(the.interface)
124
125
 
125
126
              for _ = 1, math.random(6) do
126
 
                 local planet = Tile:new{
127
 
                    image = 'data/planet1.png',
 
127
                 local planet = Planet:new{
128
128
                    x = math.random(the.app.width / 2,
129
129
                                    the.bg.width - the.app.width / 2),
130
130
                    y = math.random(the.app.height / 2,
132
132
                    rotation = math.random() * math.pi
133
133
                 }
134
134
                 the.planets:add(planet)
135
 
 
136
 
                 planet.indicator = Tile:new{
137
 
                    image = 'data/planet1ind.png',
138
 
                 }
139
 
                 the.indicators:add(planet.indicator)
140
135
              end
141
136
 
142
137
              the.cursor = Cursor:new()