From 93472900b9b8c839e6853c9585e128dafb42e9cc Mon Sep 17 00:00:00 2001 From: Marcin Kostrzewski Date: Wed, 13 May 2020 19:48:51 +0200 Subject: [PATCH] Removed A* calls from game --- src/game/Game.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/game/Game.py b/src/game/Game.py index 4763ca8..a633b44 100644 --- a/src/game/Game.py +++ b/src/game/Game.py @@ -4,7 +4,6 @@ from pathlib import Path import pygame -from src.AI.AutomaticMovement import AutomaticMovement from src.entities.Player import Player from src.game.EventManager import EventManager from src.game.Map import Map @@ -72,15 +71,6 @@ class Game: self.map.addEntity(self.player, DONTADD=True) self.eventManager = EventManager(self, self.player) - # A* algorithm - self.movement = AutomaticMovement(self.player, self.map, self.screen.getUiWidth(Locations.LEFT_UI)) - - testTarget = self.map.entities[0] - if testTarget is self.player: - testTarget = self.map.entities[1] - - self.movement.gotoToTarget(testTarget) - # Start game loop self.mainLoop() @@ -95,9 +85,6 @@ class Game: # Call update() method for each entity self.spritesList.update() - # A* - self.movement.updatePlayerCoords() - # Draw all sprites self.spritesList.draw(self.screen.pygameScreen)