Pick is a SwiftUI-based game where users interact with "Needles" and score points based on their actions. The game features a dynamic UI with options to customize the number of needles and display scores in words.
- Dynamic Needle Views: Interact with needle objects that appear on the screen.
- Score Tracking: View your score in both numeric and word formats.
- Customization: Adjust the number of needles using the settings sheet.
- Winning Condition: The score resets and a congratulatory message appears when all needles are picked.
Description of what the screenshot shows.
-
Clone the repository:
git clone https://github.com/OmPreetham/pick.git
-
Navigate to the project directory:
cd pick
-
Open the project in Xcode:
open Pick.xcodeproj
-
Build and run the project in Xcode.
-
Start the Game: Launch the app in the iOS Simulator or on a physical device.
-
Interact with Needles: Drag the needle views to score points.
-
Adjust Needles: Tap the settings icon in the top right corner to adjust the number of needles.
-
View Score: The current score is displayed in numeric and word formats at the top of the screen.
-
Win Condition: When all needles are picked, the score resets, and a "YEYY! You Picked All" message is displayed.
- PlayView.swift: Contains the main game view with score display, needle management, and settings sheet.
- NeedleView.swift: Handles the individual needle views and their interaction logic.
- EditView.swift: Manages the settings sheet for adjusting the number of needles.
- Stand.swift: Represents the static elements or background of the game.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch for your changes.
- Make your modifications.
- Submit a pull request with a clear description of the changes.
This project is licensed under the MIT License.