VladimirVnnk

Tiny Tennis Match

Tiny Tennis Match iOS

Screenshots

Tiny Tennis Match iOS
Tiny Tennis Match iOS
Tiny Tennis Match iOS
Tiny Tennis Match iOS
Tiny Tennis Match iOS
Tiny Tennis Match iOS
Tiny Tennis Match iOS
Tiny Tennis Match iOS
Tiny Tennis Match iOS

Specification

How to Use

Sample Code

/** If system call memory warning load cleaner for preload textures. And this function make this, also it's function load textures for next scene. - parameter name: It's current scene to load textures. */ fileprivate func tryToCleanMemoryAndLoadTextureForScene(_ name: sceneName) { //This parameter it's can bee change in GameViewController in didReceiveMemoryWarning() function. if UserDefaults.standard.bool(forKey: "_needToCleanMemory") { if name != .menu { GraphicPreloadsMenuScene.destroy()} if name != .store { GraphicPreloadsStoreScene.destroy()} if name != .settings { GraphicPreloadsSettingsScene.destroy()} if name != .tutorial { GraphicPreloadsTutorialScene.destroy()} if name != .end { GraphicPreloadsEndScene.destroy()} //In first memory warning system don't remove game textures. If system have memory problem second time make unload for game scene textures. if UserDefaults.standard.bool(forKey: "_needToCleanMemoryFatal") { if name != .game { GraphicPreloadsGameScene.destroy()} } switch name { case .menu: _ = GraphicPreloadsMenuScene.preload case .store: _ = GraphicPreloadsStoreScene.preload case .settings: _ = GraphicPreloadsSettingsScene.preload case .tutorial: _ = GraphicPreloadsTutorialScene.preload case .game: _ = GraphicPreloadsGameScene.preload case .end: _ = GraphicPreloadsEndScene.preload case .miniGame: _ = GraphicPreloadsMiniGameScene.preload } }

Video

Comments (0)

  • {{com.username}}
    {{com.username}}
    Buyer
    Seller

    {{com.username}}

    {{com.ctime}}

    {{com.content}}

    • {{com2.username}}
      {{com2.username}}
      Buyer
      Seller

      {{com2.username}}

      {{com2.ctime}}

      {{com2.content}}