Lunar Survival

LunarSurvival – A SwiftUI Survival Game to teach people about the Moon

Overview

LunarSurvival is an immersive survival game built using Swift and SwiftUI. After crash-landing on the moon, players must scavenge resources, craft tools, and build essential structures to survive. The goal is to either hold out for 7 days or build an antenna to contact Earth and be rescued.

What I Used

- Languages/Tools: Swift, SwiftUI - Concepts: Game logic, state management, resource tracking - Platform: iOS/iPadOS

My Role & Contributions

I designed and built the entire game from scratch, including the core survival mechanics, inventory system, and win/loss logic. I used SwiftUI’s state management to control player energy levels, and interactions with the environment.

Key Features

  • Resource scavenging system with randomized lunar items

  • Energy depletion mechanic simulating survival pressure

  • Interactive crafting and building system (e.g. for antenna)

  • Two endings: survive 7 days or signal Earth for rescue

  • Clean, SwiftUI-based user interface optimized for gameplay

What I Learned

This project taught me how to manage complex game logic using SwiftUI and how to design state-driven gameplay loops. I also learned how to balance challenge and strategy to make survival gameplay fun and meaningful. Working with students from other schools was challenging but we persevered to publish our app

Download the app on App Store! https://apps.apple.com/us/app/lunar-survival/id6738861996

Not found

Last updated