MCPcopy Create free account

hub / github.com/IlyaAgarishev/react-gameboy / functions

Functions48 in github.com/IlyaAgarishev/react-gameboy

↓ 5 callersFunctionuseOnKeyDown
({ requestedKeys }: IProps)
src/hooks/useOneKeyDown/useOnKeyDown.ts:8
↓ 4 callersFunctionuseAppDispatch
()
src/hooks/reduxHooks.ts:5
↓ 3 callersFunctiongetDirection
(key: ControlKey)
src/hooks/useSnake/useSnakeMotion/utils-use-snake-motion.ts:12
↓ 3 callersFunctionsetCoordinatesAction
(state, action: PayloadAction<Coordinates>)
src/store/reducers/snakeSlice.ts:17
↓ 3 callersFunctionsetSnakeHasFailedAction
(state, action: PayloadAction<boolean>)
src/store/reducers/snakeSlice.ts:31
↓ 2 callersFunctiongetKeysConflict
(keys: string[])
src/hooks/useSnake/useLastControlKeyPressed/utils-use-last-control-key-pressed.ts:17
↓ 2 callersFunctiongetOpacity
(showOpacity: boolean)
src/components/Screen/utils-screen.ts:1
↓ 2 callersFunctiongetRandomColor
()
src/hooks/useSnake/useRandomFood/utils-use-random-food.ts:5
↓ 2 callersFunctiongetRandomCoordinate
(coordinates: Coordinates)
src/hooks/useSnake/useRandomFood/utils-use-random-food.ts:13
↓ 2 callersFunctionisControlKey
(x: any)
src/hooks/useSnake/useLastControlKeyPressed/utils-use-last-control-key-pressed.ts:12
↓ 1 callersFunctioncheckIfSnakeIsOutOfHorizontalRange
({ lastCoordinate, }: ICheckIfSnakeIsOutOfHorizontalRange)
src/hooks/useSnake/useSnakeHasFailed/utils-use-snake-has-failed.ts:28
↓ 1 callersFunctioncheckIfSnakeIsOutOfVerticalRange
({ lastCoordinate, penultimateCoordinate, }: ICheckIfSnakeIsOutOfVerticalRange)
src/hooks/useSnake/useSnakeHasFailed/utils-use-snake-has-failed.ts:9
↓ 1 callersFunctionclearScoreAction
(state)
src/store/reducers/snakeSlice.ts:28
↓ 1 callersFunctionclick
()
src/components/Button/Button.tsx:17
↓ 1 callersMethodget
()
src/classes/PersistedBestScore.ts:12
↓ 1 callersFunctiongetBackground
({ randomFoodCoordinate, coordinates, index, randomFoodColor, snakeColor, snakeHasFailed, }: IGetB
src/components/GameplayScreen/utils-gameplay-screen.ts:33
↓ 1 callersFunctiongetBorder
(snakeHasFailed: boolean)
src/components/GameplayScreen/utils-gameplay-screen.ts:15
↓ 1 callersFunctiongetClassName
({ coordinates, snakeHasFailed, index, }: IGetClassName)
src/components/GameplayScreen/utils-gameplay-screen.ts:63
↓ 1 callersFunctiongetCoordinatesWithoutTheLastOne
(coordinates: Coordinates)
src/hooks/useSnake/useSnakeHasFailed/utils-use-snake-has-failed.ts:39
↓ 1 callersFunctiongetFilter
(blur: boolean)
src/components/GameplayScreen/utils-gameplay-screen.ts:5
↓ 1 callersFunctiongetGameSquareData
({ randomFoodCoordinate, coordinates, index, randomFoodColor, snakeColor, snakeHasFailed, }: IGetG
src/components/GameplayScreen/utils-gameplay-screen.ts:82
↓ 1 callersFunctiongetIncreasedCoordinates
( coordinates: Coordinates, coordinateNumber: number )
src/hooks/useSnake/useSnakeMotion/utils-use-snake-motion.ts:16
↓ 1 callersFunctionincrementScoreAction
(state)
src/store/reducers/snakeSlice.ts:20
↓ 1 callersFunctionisRightKey
(key: ControlKey, lastKeyPressed: ControlKey)
src/hooks/useSnake/useLastControlKeyPressed/utils-use-last-control-key-pressed.ts:16
↓ 1 callersMethodset
(value: number)
src/classes/PersistedBestScore.ts:8
↓ 1 callersFunctionsetDefaultLastControlKeyPressed
()
src/hooks/useSnake/useLastControlKeyPressed/useLastControlKeyPressed.tsx:31
↓ 1 callersFunctionsetRequestedKey
({ requestedKeys, key, setState }: IProps)
src/hooks/useOneKeyDown/utils-use-on-key-down.ts:19
↓ 1 callersFunctionsetupStore
()
src/store/store.ts:8
↓ 1 callersFunctionsliceFirstThanAddNewAndGetNewCoordinates
( coordinates: Coordinates, coordinateNumber: number )
src/hooks/useSnake/useSnakeMotion/utils-use-snake-motion.ts:26
↓ 1 callersFunctionuseLastControlKeyPressed
()
src/hooks/useSnake/useLastControlKeyPressed/useLastControlKeyPressed.tsx:16
↓ 1 callersFunctionuseRandomFoodCoordinate
()
src/hooks/useSnake/useRandomFood/useRandomFood.tsx:6
↓ 1 callersFunctionuseSnake
()
src/hooks/useSnake/useSnake.ts:11
↓ 1 callersFunctionuseSnakeColor
()
src/hooks/useSnake/useSnakeColor.ts:4
↓ 1 callersFunctionuseSnakeHasFailed
()
src/hooks/useSnake/useSnakeHasFailed/useSnakeHasFailed.ts:10
↓ 1 callersFunctionuseSnakeMotion
(lastControlKeyPressed: ControlKey)
src/hooks/useSnake/useSnakeMotion/useSnakeMotion.ts:17
↓ 1 callersFunctionuseTurnOnGameboy
()
src/hooks/useTurnOnGameboy.ts:3
FunctionApp
()
src/App.tsx:4
FunctionButton
({ keyboardButton, content })
src/components/Button/Button.tsx:11
FunctionContinueScreen
()
src/components/ContinueScreen/ContinueScreen.tsx:8
FunctionDirectionalButtons
()
src/components/DirectionalButtons/DirectionalButtons.tsx:6
FunctionGameboy
()
src/components/Gameboy/Gameboy.tsx:7
FunctionGameplayScreen
({ blur })
src/components/GameplayScreen/GameplayScreen.tsx:11
FunctionHomeScreen
({ setGameIsStarted })
src/components/HomeScreen/HomeScreen.tsx:10
FunctionMadeBy
()
src/components/MadeBy/MadeBy.tsx:4
FunctionScreen
()
src/components/Screen/Screen.tsx:10
FunctionSpaceButton
()
src/components/SpaceButton/SpaceButton.tsx:11
Methodconstructor
()
src/classes/PersistedBestScore.ts:4
FunctiononKeyDown
({ key }: KeyboardEvent)
src/hooks/useOneKeyDown/useOnKeyDown.ts:11