🕹️ RPG game with a turn-based combat system
- The game is an RPG (Role Playing Game)
- The player embodies a character and must face other players
- The combat system: turn-based combat
- The game is composed of 2 players
- Each player has a team of 3 characters
- Each character has life points, a name and a weapon
- Player 1 must choose a character from his team
- Player 1 must choose a character who will take an action
- The character must perform the action (attack or heal)
- We check if the game is over
- If not, it is player 2's turn
- Each character attacks with a weapon
- A chest with another weapon can appear in front of the character during his turn
- Each player must create 3 characters
- The player must choose a name for each character that is different from all other characters created
- Each character must have a weapon. It is the weapon that determines the damage that the character will inflict
- A crate with a new weapon can appear randomly when a character takes a turn Once the game is over, the number of turns and the list of characters of both teams with their properties are displayed.
- Between 2 and 5 players on the same game
- Each player must choose his name (unique)
- Each player must choose the type of their warrior
- Each player must choose the name of his warrior (unique)
- Each player must choose the weapon of his warrior
Each player must create 3 warriors
- Name
- Type of warrior
- Description of the type of warrior
- Ability of the warrior type
- Life bar (100)
- Weapon
- Raw strength (0)
- Healing points (15)
- Attack: according to his weapon and his raw strength
- Heal : according to his healing points
Type: Elf 🧝♀️
- Description: Elves are nature spirits
- Ability: More life
Type: Dwarf 👨🔧
- Description: Dwarves are great builders
- Ability : Less life but more raw strength
Type: Wizard 🧙♂️
- Description : Wizards are known for their knowledge and wisdom
- Ability : More healing
Reciplease is written in Swift 5 and supports iOS 13.0+. Built with Xcode 13.
This application is developed according to the MVC architecture.
Run git@hhttps://github.com/yann-rzd/SwiftGame.git
Open SwiftGame.xcodeproj
Choose My Mac simulator
Build & Run 🔥