MCPcopy Create free account
hub / github.com/candybox2/candybox2.github.io / tryToGoToIntendedXPosition

Method tryToGoToIntendedXPosition

code/main/Seahorse.ts:42–44  ·  view source on GitHub ↗
(baseX: number)

Source from the content-addressed store, hash-verified

40
41 // Public methods
42 public tryToGoToIntendedXPosition(baseX: number): void{
43 this.goTowards(this.getGlobalPosition(), new Pos(baseX + this.intendedXPosition, this.getGlobalPosition().y), 0, new Pos(1, 0));
44 }
45
46 // Private methods
47 private castWaterBall(): void{

Callers 1

runMethod · 0.80

Calls 2

goTowardsMethod · 0.80
getGlobalPositionMethod · 0.80

Tested by

no test coverage detected