Skip to content

Pathfinding and walking tests #10

@ivan-mogilko

Description

@ivan-mogilko

Walking / moving test:

  • order object or character to move with certain speed
  • loop with wait(1), and test that new position matches expectations on each game tick.
  • for characters, optionally, test that new loop matches expectation (depends on dir).

Do this test for:

  • room object moving along a straight horizontal, vertical and diagonal line (testing different speed ratios).
  • character doing same.
  • character walking along some path, testing that loops change as it turns.
    in ags4 this last test may be done using newest WalkPath command, but in ags3 we will need a walkable mask set properly to achieve different walking directions.

IMPORTANT: do SetGameSpeed(1000) in order to maximize fps for this test, as we don't need real-time test, but a logical test of game updates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions