/mice-wedding-game

2D game where players control a group of mice to avoid the cat using touch and swipe gestures. Created with SpriteKit game engine

Primary LanguageSwift

Mice Wedding Game

1682367640260

Run game

How to run the game on Swift Playgrounds:

  1. Download and install Swift Playgrounds from App Store on MacOS
  2. Download Playground-MiceWedding.swiftpm in this repository
  3. Run Playground-MiceWedding.swiftpm on Swift Playgrounds
  4. Let's play and enjoys!

Inspiration

Growing up in Sai Gon, I developed a strong connection to the people, culture, and natural beauty of my hometown. I was particularly fascinated by Dong Ho paintings, which have a rich history in Vietnam dating back to the 17th century. The charming illustrations and humorous storyline of a tale about two rats in love who must overcome obstacles to be married inspired me to create "Mice Wedding". Through this game, I aim to share this story with others in a fun and interactive way while also introducing them to Vietnamese culture.

Image credit: Wikimedia

Gameplay & Technologies

"Mice Wedding" is a 2D game featuring two levels of gameplay, where players control a group of mice using touch and swipe gestures to collect leaves and avoid the cat. The game offers unique challenges and obstacles in each level to keep players engaged.

  • SpriteKit, a 2D game engine, was utilized to create smooth and responsive animations for the game's characters and objects.
  • SKPhysicsContactDelegate protocol was used to manage the game's physics and collision detection, ensuring accurate and reliable collision detection between objects.
  • SKActions were employed to create natural-looking movements and animations, while data structures like ArrayList and loops were used to manage different node categories and set properties.

Demo

Credits

  • Image assets are freely available under the Creative Commons license and were sourced from platforms like Freepik and Vecteezy.
  • Sounds have been licensed from the Uppbeat platform under the Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.