├── .gitignore ├── KongfuPanda.xcodeproj ├── project.pbxproj └── project.xcworkspace │ └── contents.xcworkspacedata ├── KongfuPanda ├── AppDelegate.swift ├── AppleFactory.swift ├── Background.swift ├── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard ├── BitMaskType.swift ├── GameScene.sks ├── GameScene.swift ├── GameViewController.swift ├── Images.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── icon-hd@2x-1.png │ │ ├── icon-hd@2x-2.png │ │ ├── icon-hd@2x.png │ │ ├── icon-hd@3x-1.png │ │ ├── icon-hd@3x-2.png │ │ └── icon-hd@3x.png │ ├── LaunchImage.launchimage │ │ ├── Contents.json │ │ ├── Default Retain 4.png │ │ └── Default.png │ ├── Spaceship.imageset │ │ ├── Contents.json │ │ └── Spaceship.png │ ├── apple.imageset │ │ ├── Contents.json │ │ └── apple.png │ ├── platform_l.imageset │ │ ├── Contents.json │ │ └── platform_l.png │ ├── platform_m.imageset │ │ ├── Contents.json │ │ └── platform_m.png │ └── platform_r.imageset │ │ ├── Contents.json │ │ └── platform_r.png ├── Info.plist ├── Panda.swift ├── Platform.swift ├── PlatformFactory.swift ├── SoundManager.swift ├── apple.mp3 ├── atlas │ ├── jump.atlas │ │ ├── panda_jump_01.png │ │ ├── panda_jump_02.png │ │ ├── panda_jump_03.png │ │ ├── panda_jump_04.png │ │ ├── panda_jump_05.png │ │ ├── panda_jump_06.png │ │ ├── panda_jump_07.png │ │ └── panda_jump_08.png │ ├── jump_effect.atlas │ │ ├── jump_effect_01.png │ │ ├── jump_effect_02.png │ │ ├── jump_effect_03.png │ │ └── jump_effect_04.png │ ├── roll.atlas │ │ ├── panda_roll_01.png │ │ ├── panda_roll_02.png │ │ ├── panda_roll_03.png │ │ ├── panda_roll_04.png │ │ ├── panda_roll_05.png │ │ ├── panda_roll_06.png │ │ ├── panda_roll_07.png │ │ └── panda_roll_08.png │ └── run.atlas │ │ ├── panda_run_01.png │ │ ├── panda_run_02.png │ │ ├── panda_run_03.png │ │ ├── panda_run_04.png │ │ ├── panda_run_05.png │ │ ├── panda_run_06.png │ │ ├── panda_run_07.png │ │ └── panda_run_08.png ├── background.mp3 ├── background │ ├── background_f0.png │ └── background_f1.png ├── fly.mp3 ├── hit.mp3 ├── hit_platform.mp3 ├── jump_from_platform.mp3 └── lose.mp3 ├── KongfuPandaTests ├── Info.plist └── KongfuPandaTests.swift ├── LICENSE └── README.md /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/.gitignore -------------------------------------------------------------------------------- /KongfuPanda.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda.xcodeproj/project.pbxproj -------------------------------------------------------------------------------- /KongfuPanda.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda.xcodeproj/project.xcworkspace/contents.xcworkspacedata -------------------------------------------------------------------------------- /KongfuPanda/AppDelegate.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/AppDelegate.swift -------------------------------------------------------------------------------- /KongfuPanda/AppleFactory.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/AppleFactory.swift -------------------------------------------------------------------------------- /KongfuPanda/Background.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/Background.swift -------------------------------------------------------------------------------- /KongfuPanda/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/Base.lproj/LaunchScreen.xib -------------------------------------------------------------------------------- /KongfuPanda/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/Base.lproj/Main.storyboard -------------------------------------------------------------------------------- /KongfuPanda/BitMaskType.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/BitMaskType.swift -------------------------------------------------------------------------------- /KongfuPanda/GameScene.sks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/GameScene.sks -------------------------------------------------------------------------------- /KongfuPanda/GameScene.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/GameScene.swift -------------------------------------------------------------------------------- /KongfuPanda/GameViewController.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/GameViewController.swift -------------------------------------------------------------------------------- /KongfuPanda/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/Images.xcassets/AppIcon.appiconset/Contents.json -------------------------------------------------------------------------------- /KongfuPanda/Images.xcassets/AppIcon.appiconset/icon-hd@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/Images.xcassets/AppIcon.appiconset/icon-hd@2x-1.png -------------------------------------------------------------------------------- /KongfuPanda/Images.xcassets/AppIcon.appiconset/icon-hd@2x-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/Images.xcassets/AppIcon.appiconset/icon-hd@2x-2.png -------------------------------------------------------------------------------- /KongfuPanda/Images.xcassets/AppIcon.appiconset/icon-hd@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/Images.xcassets/AppIcon.appiconset/icon-hd@2x.png -------------------------------------------------------------------------------- /KongfuPanda/Images.xcassets/AppIcon.appiconset/icon-hd@3x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/Images.xcassets/AppIcon.appiconset/icon-hd@3x-1.png -------------------------------------------------------------------------------- /KongfuPanda/Images.xcassets/AppIcon.appiconset/icon-hd@3x-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/Images.xcassets/AppIcon.appiconset/icon-hd@3x-2.png -------------------------------------------------------------------------------- /KongfuPanda/Images.xcassets/AppIcon.appiconset/icon-hd@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/Images.xcassets/AppIcon.appiconset/icon-hd@3x.png -------------------------------------------------------------------------------- /KongfuPanda/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/Images.xcassets/LaunchImage.launchimage/Contents.json -------------------------------------------------------------------------------- /KongfuPanda/Images.xcassets/LaunchImage.launchimage/Default Retain 4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/Images.xcassets/LaunchImage.launchimage/Default Retain 4.png -------------------------------------------------------------------------------- /KongfuPanda/Images.xcassets/LaunchImage.launchimage/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/Images.xcassets/LaunchImage.launchimage/Default.png -------------------------------------------------------------------------------- /KongfuPanda/Images.xcassets/Spaceship.imageset/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/Images.xcassets/Spaceship.imageset/Contents.json -------------------------------------------------------------------------------- /KongfuPanda/Images.xcassets/Spaceship.imageset/Spaceship.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/Images.xcassets/Spaceship.imageset/Spaceship.png -------------------------------------------------------------------------------- /KongfuPanda/Images.xcassets/apple.imageset/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/Images.xcassets/apple.imageset/Contents.json -------------------------------------------------------------------------------- /KongfuPanda/Images.xcassets/apple.imageset/apple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/Images.xcassets/apple.imageset/apple.png -------------------------------------------------------------------------------- /KongfuPanda/Images.xcassets/platform_l.imageset/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/Images.xcassets/platform_l.imageset/Contents.json -------------------------------------------------------------------------------- /KongfuPanda/Images.xcassets/platform_l.imageset/platform_l.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/Images.xcassets/platform_l.imageset/platform_l.png -------------------------------------------------------------------------------- /KongfuPanda/Images.xcassets/platform_m.imageset/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/Images.xcassets/platform_m.imageset/Contents.json -------------------------------------------------------------------------------- /KongfuPanda/Images.xcassets/platform_m.imageset/platform_m.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/Images.xcassets/platform_m.imageset/platform_m.png -------------------------------------------------------------------------------- /KongfuPanda/Images.xcassets/platform_r.imageset/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/Images.xcassets/platform_r.imageset/Contents.json -------------------------------------------------------------------------------- /KongfuPanda/Images.xcassets/platform_r.imageset/platform_r.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/Images.xcassets/platform_r.imageset/platform_r.png -------------------------------------------------------------------------------- /KongfuPanda/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/Info.plist -------------------------------------------------------------------------------- /KongfuPanda/Panda.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/Panda.swift -------------------------------------------------------------------------------- /KongfuPanda/Platform.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/Platform.swift -------------------------------------------------------------------------------- /KongfuPanda/PlatformFactory.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/PlatformFactory.swift -------------------------------------------------------------------------------- /KongfuPanda/SoundManager.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/SoundManager.swift -------------------------------------------------------------------------------- /KongfuPanda/apple.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/apple.mp3 -------------------------------------------------------------------------------- /KongfuPanda/atlas/jump.atlas/panda_jump_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/jump.atlas/panda_jump_01.png -------------------------------------------------------------------------------- /KongfuPanda/atlas/jump.atlas/panda_jump_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/jump.atlas/panda_jump_02.png -------------------------------------------------------------------------------- /KongfuPanda/atlas/jump.atlas/panda_jump_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/jump.atlas/panda_jump_03.png -------------------------------------------------------------------------------- /KongfuPanda/atlas/jump.atlas/panda_jump_04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/jump.atlas/panda_jump_04.png -------------------------------------------------------------------------------- /KongfuPanda/atlas/jump.atlas/panda_jump_05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/jump.atlas/panda_jump_05.png -------------------------------------------------------------------------------- /KongfuPanda/atlas/jump.atlas/panda_jump_06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/jump.atlas/panda_jump_06.png -------------------------------------------------------------------------------- /KongfuPanda/atlas/jump.atlas/panda_jump_07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/jump.atlas/panda_jump_07.png -------------------------------------------------------------------------------- /KongfuPanda/atlas/jump.atlas/panda_jump_08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/jump.atlas/panda_jump_08.png -------------------------------------------------------------------------------- /KongfuPanda/atlas/jump_effect.atlas/jump_effect_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/jump_effect.atlas/jump_effect_01.png -------------------------------------------------------------------------------- /KongfuPanda/atlas/jump_effect.atlas/jump_effect_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/jump_effect.atlas/jump_effect_02.png -------------------------------------------------------------------------------- /KongfuPanda/atlas/jump_effect.atlas/jump_effect_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/jump_effect.atlas/jump_effect_03.png -------------------------------------------------------------------------------- /KongfuPanda/atlas/jump_effect.atlas/jump_effect_04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/jump_effect.atlas/jump_effect_04.png -------------------------------------------------------------------------------- /KongfuPanda/atlas/roll.atlas/panda_roll_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/roll.atlas/panda_roll_01.png -------------------------------------------------------------------------------- /KongfuPanda/atlas/roll.atlas/panda_roll_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/roll.atlas/panda_roll_02.png -------------------------------------------------------------------------------- /KongfuPanda/atlas/roll.atlas/panda_roll_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/roll.atlas/panda_roll_03.png -------------------------------------------------------------------------------- /KongfuPanda/atlas/roll.atlas/panda_roll_04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/roll.atlas/panda_roll_04.png -------------------------------------------------------------------------------- /KongfuPanda/atlas/roll.atlas/panda_roll_05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/roll.atlas/panda_roll_05.png -------------------------------------------------------------------------------- /KongfuPanda/atlas/roll.atlas/panda_roll_06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/roll.atlas/panda_roll_06.png -------------------------------------------------------------------------------- /KongfuPanda/atlas/roll.atlas/panda_roll_07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/roll.atlas/panda_roll_07.png -------------------------------------------------------------------------------- /KongfuPanda/atlas/roll.atlas/panda_roll_08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/roll.atlas/panda_roll_08.png -------------------------------------------------------------------------------- /KongfuPanda/atlas/run.atlas/panda_run_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/run.atlas/panda_run_01.png -------------------------------------------------------------------------------- /KongfuPanda/atlas/run.atlas/panda_run_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/run.atlas/panda_run_02.png -------------------------------------------------------------------------------- /KongfuPanda/atlas/run.atlas/panda_run_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/run.atlas/panda_run_03.png -------------------------------------------------------------------------------- /KongfuPanda/atlas/run.atlas/panda_run_04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/run.atlas/panda_run_04.png -------------------------------------------------------------------------------- /KongfuPanda/atlas/run.atlas/panda_run_05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/run.atlas/panda_run_05.png -------------------------------------------------------------------------------- /KongfuPanda/atlas/run.atlas/panda_run_06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/run.atlas/panda_run_06.png -------------------------------------------------------------------------------- /KongfuPanda/atlas/run.atlas/panda_run_07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/run.atlas/panda_run_07.png -------------------------------------------------------------------------------- /KongfuPanda/atlas/run.atlas/panda_run_08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/atlas/run.atlas/panda_run_08.png -------------------------------------------------------------------------------- /KongfuPanda/background.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/background.mp3 -------------------------------------------------------------------------------- /KongfuPanda/background/background_f0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/background/background_f0.png -------------------------------------------------------------------------------- /KongfuPanda/background/background_f1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/background/background_f1.png -------------------------------------------------------------------------------- /KongfuPanda/fly.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/fly.mp3 -------------------------------------------------------------------------------- /KongfuPanda/hit.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/hit.mp3 -------------------------------------------------------------------------------- /KongfuPanda/hit_platform.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/hit_platform.mp3 -------------------------------------------------------------------------------- /KongfuPanda/jump_from_platform.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/jump_from_platform.mp3 -------------------------------------------------------------------------------- /KongfuPanda/lose.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPanda/lose.mp3 -------------------------------------------------------------------------------- /KongfuPandaTests/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPandaTests/Info.plist -------------------------------------------------------------------------------- /KongfuPandaTests/KongfuPandaTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/KongfuPandaTests/KongfuPandaTests.swift -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakciehoo/KongfuPanda/HEAD/README.md --------------------------------------------------------------------------------