Snake Game for iOS
A modern take on the classic Snake game, reimagined with intuitive gesture controls for iOS. Swipe naturally in any direction to guide your snake โ no buttons needed!
Features
- ๐ฎ Natural Gesture Controls: Simply swipe in any direction to control your snake
- ๐ฑ Adaptive Grid: Automatically adjusts to different screen sizes
- ๐ฏ Multiple Game Modes:
- Classic Mode with walls
- Infinite Mode where snake wraps around edges
- โ๏ธ Customizable Settings:
- Three grid sizes (Small, Medium, Large)
- Toggle wall collision
- Haptic feedback support
- ๐ High Score System: Track and compete with your best performances
- ๐จ Modern UI: Clean, minimalist design that follows iOS design guidelines
- ๐ Progressive Difficulty: Snake speeds up as you collect more food
How to Play
- Swipe in any direction to start moving
- Guide your snake to the food (colored dots)
- Avoid hitting walls (in wall mode) and your own tail
- The snake moves faster as you collect more food
- Try to achieve the highest score possible!
Controls
- Swipe Up: Move snake upward
- Swipe Down: Move snake downward
- Swipe Left: Move snake left
- Swipe Right: Move snake right
Requirements
- iOS 17.0 or later
Installation
Clone the repository and open in Xcode:
git clone https://github.com/austincondiff/Snake.git
cd Snake
open Snake.xcodeprojTechnologies Used
- SwiftUI
- SwiftData
- Gesture Recognition
- Haptics
License
See the LICENSE file for details.
Acknowledgments
- Inspired by the classic Snake game