Skip to content
This repository has been archived by the owner on Sep 19, 2022. It is now read-only.

Movement system refactor #55

Merged

Conversation

Winsalot
Copy link
Collaborator

@Winsalot Winsalot commented Feb 26, 2021

PR that implements changes discussed in #54

This has to be merged together with minigene PR: AnneKitsune/minigene#3

Basic changes of this PR are:

  • shotcaller/src/systems/simple_movement.rs now split into simple_destination.rs (which sets target to closest enemy) and movement_system.rs (which moves entity one step on AIPath if it has enough action points to do so).
  • minigene/src/systems/ai_movement.rs functionality moved into movement_system.rs
  • minigene/src/systems/ai_pathing.rs now checks if AIDestination has changed before running A*.

This PR didn't do anything with leader1_simple_movement.rs and leader2_simple_movement.rs because currently these two systems are commented out in main.rs. To re-enable them they will have to be rewritten by following the example code in simple_destination.rs.

@AnneKitsune AnneKitsune merged commit deb63e9 into spicylobstergames:master Mar 1, 2021
@Winsalot Winsalot deleted the movement_system_refactor branch March 2, 2021 08:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants