/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-19 01:44:47 UTC
  • Revision ID: josh@9ix.org-20130619014447-mtpps0g4w7aeckpg
enemy "patrol path" (pick random destination)

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
 
106
106
              self:add(the.enemies)
107
107
 
108
 
              local e = Enemy:new{x=400, y=300}
109
 
              --local e = Enemy:new{x=the.bg.width / 2, y=the.bg.height / 2}
 
108
              --local e = Enemy:new{x=400, y=300}
 
109
              local e = Enemy:new{x=the.bg.width / 2, y=the.bg.height / 2}
110
110
              the.enemies:add(e)
111
111
              self:add(e.thrust) -- why doesn't this work in Enemy.new?
112
112
              self:add(e.shield)