/traderous

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

« back to all changes in this revision

Viewing changes to enemy.lua

  • Committer: Josh C
  • Date: 2013-10-21 18:31:55 UTC
  • Revision ID: josh@9ix.org-20131021183155-vl7pxaor2u3pw0t0
have enemies disengage when you land

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
                        the.app.view:remove(self.thrust)
114
114
                        the.app.view:remove(self.shield)
115
115
 
 
116
                        if other.source == the.player then
 
117
                           the.player.kills = the.player.kills + 1
 
118
                        end
 
119
 
116
120
                        -- and add a new enemy somewhere else...
117
121
                        local e = Enemy:new{x = math.random(the.bg.width),
118
122
                                            y = math.random(the.bg.height)}