royitaqi / HollowKnight.BossAttacks

4 stars 1 forks source link

Testing: add e2e test #19

Closed royitaqi closed 1 year ago

royitaqi commented 1 year ago

To simulate "left": override left.Value to 1f for the time period which you want the hero to walk left. (overrides on TwoAxisInputControl doesn't seem to be needed).

To simulate "repeated attacks": override attack.WasPressed to true for the time period which you want the hero to continuously attack.

Code example: https://github.com/royitaqi/HollowKnight.BossAttacks/blob/674086b4c80ae86daaad6d1a5dc0586fb17a5acd/BossAttacks/Debugger.cs#L117-L147 ModLog: https://github.com/royitaqi/HollowKnight.BossAttacks/commit/674086b4c80ae86daaad6d1a5dc0586fb17a5acd

royitaqi commented 1 year ago

Implemented in ad4ee7e9c23a8afbcd984d2a64797c2052d6d8e8