Browse files

Balance tweaking, attempt to fix animation bug

  • Loading branch information...
1 parent 5ef497c commit cf1716cf1b49a352b6f13bc1efdecc7a0c1687a6 @GloryFish committed Jan 9, 2011
Showing with 7 additions and 4 deletions.
  1. +3 −3 enemy.lua
  2. +3 −0 main.lua
  3. +1 −1 player.lua
View
6 enemy.lua
@@ -84,8 +84,8 @@ Enemy = class(function(enemy, pos, prey)
enemy.jumpVector = vector(0, -200)
enemy.path = nil
- enemy.pathInterval = 3 -- Wait 5 seconds before generating a new path
- enemy.pathDuration = 2 -- how long since last path generation
+ enemy.pathInterval = 2 -- Wait x seconds before generating a new path
+ enemy.pathDuration = 1 -- how long since last path generation
enemy.bursting = false
enemy.burstInterval = 3
@@ -238,7 +238,7 @@ function Enemy:getAIMovement(target, level)
node = self.path.nodes[1]
end
else -- we need a new path
- self.pathDuration = 3
+ self.pathDuration = 3.1
end
if node ~= nil then
View
3 main.lua
@@ -29,6 +29,9 @@ function love.load()
game = love.audio.newSource("resources/music/gamemusic.mp3", 'stream')
}
+ music.title:setLooping(true)
+ music.game:setLooping(true)
+
input = Input()
Gamestate.registerEvents()
View
2 player.lua
@@ -123,7 +123,7 @@ function Player:burst()
if not self.bursting then
self.bursting = true
self.burstDuration = 0
- self.resolve = self.resolve - 0.07
+ self.resolve = self.resolve - 0.15
end
end

0 comments on commit cf1716c

Please sign in to comment.