Browse Source

Adjust moving path for enemies

master
Elis Axelsson 3 years ago
parent
commit
67b65838e4
2 changed files with 15 additions and 15 deletions
  1. +2
    -2
      classes/enemies/enemy.py
  2. +13
    -13
      classes/settings.py

+ 2
- 2
classes/enemies/enemy.py View File

@ -23,8 +23,8 @@ class Enemy(object):
self.targetLocationList = []
for point in settings.enemyPath:
self.targetLocationList.append((
(point[0] + 0.5) * settings.gridSize,
(point[1] + 0.5) * settings.gridSize
point[0] * settings.gridSize,
point[1] * settings.gridSize
))
self.__properties = {


+ 13
- 13
classes/settings.py View File

@ -6,23 +6,23 @@ class Settings:
self.gridSize = self.size[1] / 12
self.enemyStart = (0, 1.5 * self.gridSize)
self.enemyPath = [
(15, 1),
(15, 4),
(1, 4),
(16, 1.5),
(15.5, 5),
(1, 4.5),
# Changing pattern here
(1, 10),
(4, 10),
(4, 7),
(7, 7),
(7, 10),
(10, 10),
(10, 7),
(13, 7),
(13, 10),
(1.5, 11),
(5, 10.5),
(4.5, 7),
(8, 7.5),
(7.5, 11),
(11, 10.5),
(10.5, 7),
(14, 7.5),
(13.5, 11),
# Exit labyrinth
(17, 10)
(17.5, 10.5)
]
# Legend of map:


Loading…
Cancel
Save