A delightful iOS puzzle game where you help a sleepy panda reach her bed by removing obstacles. Be careful not to wake her up!
Available on the App Store: Download Panda Nap
The panda is taking a nap, don't wake her up! In this physics-based puzzle game, you need to strategically remove obstacles so that the panda can fall smoothly onto her bed. The challenge is to ensure the panda doesn't fall to the ground, as that would wake her up and end the level.
- 10 Challenging Levels: Each level presents unique obstacle configurations
- Physics-Based Gameplay: Realistic physics simulation using SpriteKit
- Intuitive Touch Controls: Simple tap-to-remove obstacle mechanics
- Progressive Difficulty: Levels become more challenging as you advance
- Beautiful Artwork: Charming panda character and relaxing visual design
- Sound Effects: Immersive audio with background music and sound effects
- Multi-language Support: Available in English and Chinese (Simplified & Traditional)
- Objective: Help the panda reach her bed safely
- Controls: Tap on obstacles to remove them
- Challenge: The panda must not fall to the ground (she'll wake up!)
- Success: Guide the panda to land gently on the bed
- Progression: Complete each level to unlock the next one
- SpriteKit: Apple's 2D game framework for physics and rendering
- Swift: Modern iOS development language
- CocoaPods: Dependency management
- Google Mobile Ads: Monetization through banner and interstitial ads
Localize-Swift
: Internationalization supportSwiftyButton
: Custom button implementationsSnapKit
: Auto Layout DSLThen
: Object initialization utilitiesGoogle-Mobile-Ads-SDK
: Ad integrationSwiftySKScrollView
: Scroll view for SpriteKit
- MVC Pattern: Model-View-Controller architecture
- SpriteKit Scenes: Separate scenes for menu and gameplay
- Physics Engine: Realistic collision detection and physics simulation
- Audio Management: Background music and sound effect handling
- iOS: 11.0 or later
- Devices: iPhone and iPad (Universal app)
- Orientation: Landscape mode only
- Xcode: 12.0 or later (for development)
- Xcode 12.0 or later
- iOS 11.0+ deployment target
- CocoaPods installed
-
Clone the repository
git clone https://github.com/banghuazhao/panda-nap.git cd panda-nap
-
Install dependencies
pod install
-
Open the workspace
open "Panda Nap.xcworkspace"
-
Configure Ad IDs (Optional)
- Update
Constants.swift
with your Google AdMob IDs - Configure ad unit IDs in the project settings
- Update
-
Build and run
- Select your target device or simulator
- Press
Cmd + R
to build and run
Panda Nap/
โโโ Controller/ # View controllers
โโโ Model/ # Game objects and physics bodies
โโโ Scene/ # SpriteKit scenes and level files
โโโ Sound/ # Audio assets
โโโ Tools/ # Utilities and extensions
โโโ View/ # Custom UI components
โโโ Assets.xcassets/ # Images and app icons
โโโ Localization/ # Multi-language support
- GameScene.swift: Main gameplay logic and physics
- PandaNode.swift: Panda character behavior and animations
- BedNode.swift: Bed object and win condition
- BlockNode.swift: Removable obstacle objects
- MenuScene.swift: Main menu and level selection
- Constants.swift: Game configuration and constants
- Panda Character: Multiple states (normal, scared, sleeping)
- Obstacles: Various block types and configurations
- Background: Relaxing visual design
- UI Elements: Menu templates and buttons
- Background Music: Relaxing ambient soundtrack
- Sound Effects: Victory, lose, and interaction sounds
The game supports multiple languages:
- English (
en.lproj
) - Chinese Simplified (
zh-Hans.lproj
) - Chinese Traditional (
zh-Hant.lproj
)
- Banner Ads: Displayed during gameplay
- Interstitial Ads: Shown after losing multiple times
- App Store Integration: Links to other apps by the developer
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Tree vector: Created by brgfx - www.freepik.com
- Animal vector: Created by brgfx - www.freepik.com
Banghua Zhao
- GitHub: @banghuazhao
- Website: Personal Website
- LinkedIn: LinkedIn Profile
- YouTube: NewIsleJourneys
โญ If you enjoy this game, please give it a star on GitHub!