Pangea
A playable iPhone RPG with wildlife, companion hunting, and a custom renderer.
Playable native iPhone prototype in development. Recent work includes wildlife awareness, earned hunting targets, companion hunting and melee presentation. No public download is available yet.
Overview.
Pangea is a native iPhone action RPG set in the world of my novels. The current playable prototype follows Alrek and Hallbjørn through forest exploration, tracking and hunting, combat, changing weather and an ancient ruin.
Recent work has made the wildlife and companion systems more connected. Animals respond independently to Alrek and Hallbjørn, hunting targets become available through actual tracking, and companion hunting requires an explicit command. Sword attacks now carry through the character’s posture instead of moving the weapon alone.
I’m building the game in Swift with a custom Metal renderer, native menus, touch controls and controller support. The screenshots are real simulator captures with provisional art. The game is still in development, with final assets, physical-device qualification and wider playtesting ahead.
Screens & workflows.
Application screens and development prototypes. Select a capture for a closer look.
Explore the route
- Move through the forest using the virtual stick or a supported controller.
- Rotate, raise, lower or zoom the tactical camera to inspect the route.
- Approach a point of interest and use its contextual Inspect, Gather or Use action.
- Open the journal or discovered map to review progress and route information.
Track and hunt
- Inspect the tracks that introduce the hunting encounter.
- Locate the moving grazer and select it when the encounter and line of sight allow it.
- Approach with sword or bow while accounting for distance, facing and stamina.
- Keep Hallbjørn following or holding, or give an explicit hunting command; nearby wildlife can notice either character.
Practice combat
- Read the opponent’s attack preparation and choose whether to guard, parry or dodge.
- Use a light or charged melee attack, or draw and release the bow.
- Watch the accepted attack phase reflected in the character and weapon presentation.
- Return to an earned practice encounter without advancing adventure rewards.
Prepare for the field
- Open inventory to inspect carried items and equipped gear.
- Compare equipment or prepare available food and clothing.
- Use fieldcraft and camp actions as weather and exposure change.
- Resume the route with the same authoritative inventory and equipment state.
Pause, adjust and return
- Pause before opening settings or managing a checkpoint.
- Adjust accessibility preferences and the Battery, Balanced or Quality graphics ceiling.
- Save at an accepted stable gameplay boundary.
- Load a validated checkpoint, with an explicit recovery option when the previous managed save is needed.
Inside the build.
Explore the components, their boundaries, and the decisions behind them.
A native SwiftUI shell hosts a deterministic Swift simulation and a MetalKit rendering surface. Domain packages own gameplay decisions; immutable snapshots carry the accepted state into rendering and interface code. Save recovery, input delivery and graphics diagnostics have separate ownership boundaries.
Native shell & semantic input
Present the HUD and native panels, translate gestures and controller events, and coordinate app lifecycle changes.
- GameShellView composes the Metal world with independent HUD, feedback and bottom-control overlays so larger text does not reposition movement controls.
- Touch gestures and physical-controller edges become shared semantic actions rather than separate combat implementations.
- Scene transitions stop held input and suspend active work; camera and accessibility actions use the same bounded camera policy.
- Controller button remapping, left-handed controls, high-contrast borders, reduced motion and optional tap-to-toggle bow or guard input are exposed through the native interface.
Design decisions & tradeoffs.
Separate simulation authority from presentation
The gameplay packages decide outcomes, then publish snapshots. Metal and SwiftUI consume that state without owning a second set of collision, damage or reward rules.
The tradeoffThis makes rendering and interface changes easier to test, but requires explicit adapters and careful snapshot lifecycle management.
Use the native Apple stack
SwiftUI handles menus and accessible controls while MetalKit renders gameplay. Semantic input connects touch and Game Controller support to the same simulation.
The tradeoffThe design gives direct control over iPhone behavior and rendering, while also making engine tooling and any future non-Apple port my responsibility.
Treat saves as a versioned contract
Managed current/previous slots, checksums and full-route validation make recovery an explicit operation. Migrations preserve recorded progress and reject inconsistent state.
The tradeoffCompatibility needs fixtures and migration work for each schema change, but an old or damaged checkpoint cannot silently rewrite the adventure.
Scale the world without scaling the interface
Quality ceilings control the Metal drawable and frame budget while native HUD and settings stay sharp. Thermal state and Low Power Mode can lower effective quality.
The tradeoffVisual quality varies with device conditions, and sustained phone testing is still needed to qualify the final limits.
Make companions part of the same world
Alrek and Hallbjørn have separate wildlife-awareness channels. Follow and Hold do not authorize hunting; an explicit command is required before the companion attacks a hunting target.
The tradeoffCompanion position and intent become part of encounter testing, but following behavior cannot silently turn into an attack.
Technical stack.
Application & language
- Swift 6
- SwiftUI
- UIKit
- Swift Package Manager
Native iPhone shell, lifecycle coordination, accessible menus and independently testable domain packages.
Rendering
- Metal
- MetalKit
- Metal Shading Language
- simd
Custom gameplay rendering, PBR materials, resource budgeting, shadows and immutable render snapshots.
Input & feedback
- Game Controller
- AVFoundation
- Combine
- UIKit haptics
Controller delivery, touch action coordination, audio lifecycle and feedback from accepted gameplay events.
Content & persistence
- Codable
- CryptoKit
- Swift actors
- Versioned save schemas
Typed content packs, integrity checks, serialized save recovery and explicit migration of older checkpoints.
Verification
- XCTest
- Swift Testing
- Xcode Simulator
- Metal GPU readback
Deterministic domain tests, native integration journeys and actual rendered-frame evidence; physical-device qualification remains ongoing.