Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coldi/r3f-game-demo
/ functions
Functions
155 in github.com/coldi/r3f-game-demo
⨍
Functions
155
◇
Types & classes
37
Function
SceneStoreProvider
({ children }: ProviderProps)
src/@core/useGameObjectStore.tsx:95
Function
SceneSwitch
({ targetScene }: Props)
src/@core/SceneSwitch.tsx:10
Function
Sound
(props: SoundProps)
src/@core/Sound.tsx:56
Function
Sprite
({ sheet, state: initialState = 'default', flipX: initialFlipX, color: initialColor, opaci
src/@core/Sprite.tsx:22
Function
TileMap
({ data, resolver, definesMapSize = false }: Props)
src/@core/TileMap.tsx:22
Function
Workstation
(props: GameObjectProps)
src/entities/Workstation.tsx:30
Function
WorkstationScript
()
src/entities/Workstation.tsx:11
Method
angleDeg
(t: TileLike)
src/@core/utils/tileUtils.ts:108
Function
begin
()
src/@core/Moveable.tsx:108
Function
blockMovement
(delayMs)
src/@core/Moveable.tsx:63
Function
canCrossEdge
()
src/@core/Collider.tsx:63
Function
canInteract
()
src/@core/Interactable.tsx:55
Function
canMove
(position)
src/@core/Moveable.tsx:55
Function
canReceiveInteraction
()
src/@core/Interactable.tsx:58
Function
combineStyles
(...args: any[])
src/@core/utils/styleUtils.ts:7
Method
constructor
(public x = 0, public y = 0)
src/@core/utils/tileUtils.ts:7
Function
createMapData
( width: number, height: number, callback: MapDataCallback )
src/@core/utils/mapUtils.ts:7
Method
diagonalNeighbor
(index: number)
src/@core/utils/tileUtils.ts:132
Function
enterNextLevel
()
src/@core/Scene.tsx:109
Function
enterPrevLevel
()
src/@core/Scene.tsx:106
Function
findGameObjectById
(id)
src/@core/Game.tsx:117
Function
findGameObjectsByLayer
(layer)
src/@core/Game.tsx:126
Function
getSceneState
(key)
src/@core/SceneManager.tsx:83
Function
getTilesFromMapData
( data: TileMapData, filter: (value: TileMapDataValue) => boolean )
src/@core/utils/mapUtils.ts:29
Function
getTilesFromRect
(offset: Position, width: number, height: number)
src/@core/utils/mapUtils.ts:19
Function
globalStyles
()
src/styles/global.ts:3
Function
handleCanPlay
()
src/@core/Sound.tsx:14
Function
handleClick
(event: PointerEvent)
src/@core/usePointerClick.ts:12
Function
handleLoad
(event: Event)
src/@core/AssetLoader.tsx:37
Function
handleResize
()
src/@core/useWindowSize.ts:7
Function
injectMapData
( source: TileMapData, data: TileMapData, { x, y }: Position // bottom left )
src/@core/utils/mapUtils.ts:64
Function
interact
({ x, y })
src/@core/Interactable.tsx:31
Function
isMoving
()
src/@core/Moveable.tsx:60
Function
makeRandom
(seed: Seed)
src/@core/utils/seedRandom.ts:16
Function
move
(targetPosition, type = 'move')
src/@core/Moveable.tsx:68
Method
negate
()
src/@core/utils/tileUtils.ts:78
Method
normalize
()
src/@core/utils/tileUtils.ts:90
Function
onCollision
(ref)
src/@core/Collider.tsx:66
Function
onInteract
(gameObject)
src/@core/Interactable.tsx:46
Function
onTrigger
(ref)
src/@core/Collider.tsx:69
Function
onTriggerExit
(ref)
src/@core/Collider.tsx:72
Method
outerRangeNeighbors
(rangeX: number, rangeY = rangeX)
src/@core/utils/tileUtils.ts:146
Function
port
(target = targetProp)
src/@core/ScenePortal.tsx:47
Function
resetScene
()
src/@core/SceneManager.tsx:68
Function
resolveMapTile
(type, x, y)
src/scenes/OfficeScene.tsx:27
Function
resolveMapTile
(type, x, y)
src/scenes/OtherScene.tsx:20
Method
ringNeighbors
(radius: number)
src/@core/utils/tileUtils.ts:157
Function
setSceneState
(key, value)
src/@core/SceneManager.tsx:80
Function
setSeed
(seed: Seed)
src/@core/utils/seedRandom.ts:7
Method
toArray
()
src/@core/utils/tileUtils.ts:205
Function
update
()
src/@core/Moveable.tsx:112
Function
useCircleOfSight
()
src/@core/useCircleOfSight.ts:6
Function
useGameObjectStoreValue
(key: string)
src/@core/useGameObjectStore.tsx:66
Function
useLevel
()
src/@core/Scene.tsx:43
Function
useSightTest
(options: Options = { sight: true })
src/@core/useSightTest.ts:11
← previous
101–155 of 155, ranked by callers