2
image = 'data/planet1.png',
4
{'Bobble-Headed Dolls', 100},
5
{'Alliance Foodstuffs', 400},
6
{'Moonbrained Passengers', 6000},
8
onNew = function (self)
9
self.indicator = Tile:new{ image = 'data/planet1ind.png' }
10
the.indicators:add(self.indicator)
12
onUpdate = function (self)
13
if the.keys:justPressed('l') then
14
local hw = self.width / 2
15
local pvec = vector.new(the.player.x - (self.x + hw),
16
the.player.y - (self.y + hw))
18
if pvec:len2() < hw ^ 2 then
19
tradeView = TradeView:new{ planet = self }
b'\\ No newline at end of file'