-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec7fd68
commit 631435c
Showing
10 changed files
with
237 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { Point } from "@flatten-js/core"; | ||
|
||
export const getJumpLocation = (position: Point, rotation: number, jumpSide: "Left" | "Right") => position | ||
.translate(0, jumpSide === "Left" ? -0.25 : 0.25) | ||
.rotate((Math.PI * rotation) / 180, position); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,26 @@ | ||
import { point } from "@flatten-js/core"; | ||
import { jumpingOneTwoPaw } from "../jumpingOneTwoPaw"; | ||
import { pickOne } from "../../../../gamestate/helpers"; | ||
import { BlackCat } from "../boss/BlackCat"; | ||
import { shenanigansStore1 } from "./store1"; | ||
|
||
export const shenanigans1Jump = () => { | ||
const side = pickOne(["Left", "Right"] as const); | ||
const jumpSide = pickOne(["Left", "Right"] as const); | ||
|
||
export const shenanigans1Jump = ( | ||
jump1: { | ||
jumpSide: "Left" | "Right"; | ||
swipeSide: "Left" | "Right"; | ||
storeLocation: "North" | "South"; | ||
}, | ||
jump2: { | ||
jumpSide: "Left" | "Right"; | ||
storeLocation: "North" | "South"; | ||
} | ||
) => { | ||
return jumpingOneTwoPaw( | ||
jumpSide, | ||
side, | ||
jump1.jumpSide, | ||
jump1.swipeSide, | ||
point(0.5, 0.5), | ||
90, | ||
(pos, rot) => <BlackCat position={pos} rotation={rot} />, | ||
(p) => shenanigansStore1(jumpSide, side, p) | ||
(p) => | ||
shenanigansStore1(jump1.jumpSide, jump1.swipeSide, jump1.storeLocation, p, jump2) | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.