Commits

josefnpat committed f2f59a7

Randomization

  • Participants
  • Parent commits cc9ba1a

Comments (0)

Files changed (1)

denom/entitylib/entitylib.lua

   local ent = {}
   ent.x = x
   ent.y = y
-  ent.hp = 20 
-  ent.range = 600
-  ent.speed = 160
+  ent.hp = math.random(15,25)
+  ent.range = math.random(400,1200)
+  ent.speed = math.random(140,180)
   ent.skip = false
   ent.run = function(self,dt,tx,ty)
     local direction = math.atan2(tx-self.x,self.y-ty)+math.pi/2