MCPcopy Create free account

hub / github.com/azerion/phaser-ts-boilerplate / functions

Functions83 in github.com/azerion/phaser-ts-boilerplate

↓ 22 callersMethodgetInstance
(game?: Phaser.Game)
ts/Managers/SoundManager.ts:18
↓ 9 callersMethodplay
(key: string, volume: number = 1, loop: boolean = false)
ts/Managers/SoundManager.ts:30
↓ 5 callersMethodsave
* Saves the game's data to storage
ts/Managers/SaveDataManager.ts:90
↓ 5 callersMethodsetBounds
(game: Phaser.Game)
ts/Fabrique/Effects/SlideState.ts:87
↓ 3 callersMethodhide
()
ts/Fabrique/LoaderHelper.ts:9
↓ 3 callersMethodsetText
* Every time it sets the text, it will also check if the label still fits the max size. * @param text * @returns {Label}
ts/Objects/Label.ts:23
↓ 3 callersMethodstop
(key: string)
ts/Managers/SoundManager.ts:43
↓ 3 callersMethodupdateScaling
* Updates the scaling until the text fits the given size. * @param {number} scale
ts/Objects/LabeledButton.ts:63
↓ 3 callersMethodupdateSoundButtons
()
ts/States/Menu.ts:116
↓ 2 callersMethodhandleCorrect
* Hides rotate device image and shows game.
ts/States/Boot.ts:257
↓ 2 callersMethodhandleIncorrect
* Hides game and shows an image asking to rotate device.
ts/States/Boot.ts:269
↓ 2 callersMethodhash
* Hashing function to calculate the hash of any given string, used for anti-cheat * * @param data * @returns {string}
ts/Managers/SaveDataManager.ts:162
↓ 2 callersMethodmobileResizeCallback
* Called every time the orientation on mobile device changes. * @param manager
ts/States/Boot.ts:122
↓ 2 callersMethodplayMusic
(key: string)
ts/Managers/SoundManager.ts:49
↓ 2 callersMethodresize
* Called every time the rotation or game size has changed. * Rescales and repositions the objects.
ts/States/Menu.ts:139
↓ 2 callersMethodshow
()
ts/Fabrique/LoaderHelper.ts:2
↓ 2 callersMethodtoggle
()
ts/Objects/ToggleButton.ts:31
↓ 1 callersMethodcreateTexture
* Create easily a texture with graphics. * @param bgColor
ts/Objects/LabeledButton.ts:37
↓ 1 callersFunctioncreateURL
(name, version)
tasks/write-version.js:4
↓ 1 callersMethoddestroy
* Override destroy function so it also destroys the label attached to the button. * @param destroyChildren
ts/Objects/LabeledButton.ts:74
↓ 1 callersFunctiongetPkgInfo
()
tasks/write-version.js:14
↓ 1 callersMethodmakeFontFit
* Makes the font size smaller until the text fits the max size allowed. * Useful when handling different languages or dynamic text (like score, f
ts/Objects/Label.ts:42
↓ 1 callersMethodrecursiveUpdateText
* This function will set the dirty property to true on all text objects in the current active stage * * @param obj
ts/app.ts:107
↓ 1 callersMethodresize
* Called every time the rotation or game size has changed. * Rescales and repositions the objects.
ts/States/Gameplay.ts:61
↓ 1 callersMethodrestore
* Restores a save game from storage
ts/Managers/SaveDataManager.ts:108
↓ 1 callersMethodsetMaxSize
(maxWidth: number, maxHeight: number)
ts/Objects/Label.ts:33
↓ 1 callersMethodsetScaling
* Calculates the right scaling based on the inner size of the window. * Only used for mobile devices, because on desktop the default scale is alw
ts/States/Boot.ts:152
↓ 1 callersMethodsetText
* Call the setText function of the button's label.
ts/Objects/LabeledButton.ts:55
↓ 1 callersMethodstopMusic
()
ts/Managers/SoundManager.ts:76
↓ 1 callersMethodtoggleMenu
()
ts/Objects/LanguageMenu.ts:77
↓ 1 callersMethodupdateLanguage
(language: string)
ts/Objects/LanguageButton.ts:31
Methodconstructor
()
ts/app.ts:14
Methodconstructor
()
ts/States/Gameplay.ts:24
Methodconstructor
()
ts/States/Boot.ts:19
Methodconstructor
()
ts/States/Menu.ts:35
Methodconstructor
(game: Phaser.Game, color: number, nextState: string, extraData?: any)
ts/Fabrique/Effects/FadeToColor.ts:4
Methodconstructor
(game: Phaser.Game, color: number, callback: () => void = null)
ts/Fabrique/Effects/FadeFromColor.ts:4
Methodconstructor
(game: Phaser.Game, x: number, y: number, text: string, style: Object, maxWidth?: number, maxHeight?: number)
ts/Objects/Label.ts:9
Methodconstructor
(game: Phaser.Game, x: number, y: number, sprite1: string, sprite2: string, callback: Function, callbackContex
ts/Objects/ToggleButton.ts:15
Methodconstructor
(game: Phaser.Game)
ts/Objects/LanguageMenu.ts:25
Methodconstructor
(game: Phaser.Game, language: string, callback: Function, callbackContext: any)
ts/Objects/LanguageButton.ts:12
Methodconstructor
(game: Phaser.Game, x: number, y: number, text: string, textStyle: any, callback: Function, callbackContext: a
ts/Objects/LabeledButton.ts:16
Methodconstructor
(game: IGame, callback?: () => void, callbackContext?: any)
ts/Managers/SaveDataManager.ts:21
Methodconstructor
(game: Phaser.Game)
ts/Managers/SoundManager.ts:14
Methodcreate
()
ts/States/Gameplay.ts:35
Methodcreate
* Load all the assets needed for the preloader before starting the game. * First load cachebuster before running Splash screen preloader. *
ts/States/Boot.ts:195
Methodcreate
()
ts/States/Menu.ts:46
Methoddestroy
* Override destroy function so it also destroys the label attached to the button. * @param destroyChildren
ts/Objects/ToggleButton.ts:41
Methoddestroy
* Override destroy function so it also destroys the label attached to the button. * @param destroyChildren
ts/Objects/LanguageMenu.ts:140
Methoddestroy
* Override destroy function so it also destroys the label attached to the button. * @param destroyChildren
ts/Objects/LanguageButton.ts:38
MethodfadeMusicVolume
(duration: number, volume: number)
ts/Managers/SoundManager.ts:70
MethodfromLeft
(game: Phaser.Game, cb?: () => void)
ts/Fabrique/Effects/SlideState.ts:72
MethodfromRight
(game: Phaser.Game, cb?: () => void)
ts/Fabrique/Effects/SlideState.ts:42
MethodfromTop
(game: Phaser.Game, cb?: () => void)
ts/Fabrique/Effects/SlideState.ts:12
MethodgenerateResponse
()
ts/Backend/Game.ts:11
MethodgetInstance
(game?: IGame, callback?: () => void, callbackContext?: any)
ts/Managers/SaveDataManager.ts:48
Methodinit
()
ts/States/Gameplay.ts:28
Methodinit
* Init, this is where game and google analytics are set up. * Small tweaks such as limiting input pointers, disabling right click context menu ar
ts/States/Boot.ts:27
Methodinit
()
ts/States/Menu.ts:39
Methodlanguage
()
ts/Managers/SaveDataManager.ts:56
Methodmusic
()
ts/Managers/SaveDataManager.ts:67
MethodonAnimationFinihed
(targetObject: Phaser.Sprite, targetTween: Phaser.Tween, open: boolean)
ts/Objects/LanguageMenu.ts:102
MethodonFlagClicked
(clickedSprite: Phaser.Sprite)
ts/Objects/LanguageMenu.ts:111
MethodopenMoreGamesMenu
()
ts/States/Menu.ts:130
MethodplaySound
* Play click sound every time the button is released. * @param destroyChildren
ts/Objects/ToggleButton.ts:51
MethodplaySound
* Play click sound every time the button is released. * @param destroyChildren
ts/Objects/LabeledButton.ts:87
Methodpreload
()
ts/States/Boot.ts:167
Methodresize
(x: number, y: number, scaling: number)
ts/Objects/LanguageMenu.ts:126
Methodsfx
()
ts/Managers/SaveDataManager.ts:77
Methodshutdown
()
ts/States/Gameplay.ts:71
Methodshutdown
()
ts/States/Menu.ts:186
MethodstartGame
* Start the game play state
ts/States/Menu.ts:96
MethodstartMenu
()
ts/States/Gameplay.ts:53
MethodstateCreator
()
ts/app.ts:54
MethodstatePreloader
* Here we load all the Azerion scripts we need
ts/app.ts:48
MethodtoLeft
(game: Phaser.Game, cb?: () => void)
ts/Fabrique/Effects/SlideState.ts:57
MethodtoRight
(game: Phaser.Game, cb?: () => void)
ts/Fabrique/Effects/SlideState.ts:27
MethodtoggleMusic
()
ts/States/Menu.ts:108
MethodtoggleMusic
()
ts/Managers/SoundManager.ts:90
MethodtoggleSfx
()
ts/States/Menu.ts:100
MethodtoggleSfx
()
ts/Managers/SoundManager.ts:86
MethodupdateText
()
ts/app.ts:81
MethodupdateText
()
ts/States/Menu.ts:124