A submarine warfare simulation game ported from Pico-8 to Flipper Zero using the Flipper Zero Game Engine.
- Realistic submarine physics - Navigate using heading and velocity controls
- Procedural terrain generation - Diamond-square algorithm creates unique underwater landscapes
- Advanced sonar system - Ping to discover and map terrain
- Torpedo warfare - Fire torpedoes to destroy terrain obstacles
- Dual game modes - Switch between Navigation and Torpedo modes
- Memory optimized - Efficient terrain and entity management for Flipper Zero
- D-pad Left/Right: Adjust submarine heading (steering)
- D-pad Up/Down: Control thrust (forward/reverse)
- OK Button:
- Navigation mode: Send sonar ping
- Torpedo mode: Fire torpedo
- Back Button:
- Short press: Toggle between NAV/TORPEDO modes
- Long press: Exit game
- V: Current velocity
- H: Current heading (0.0-1.0)
- NAV/TORP: Current mode
- T: Torpedo count (used/available)
- Navigation: Use D-pad to control submarine movement with realistic physics
- Sonar Mapping: Press OK in NAV mode to ping and discover terrain
- Terrain Collision: Submarine stops when hitting discovered land masses
- Torpedo Combat: Switch to TORP mode and fire torpedoes at terrain
- Resource Management: Limited torpedo supply encourages strategic play
- Python 3 with ufbt installed:
pip install ufbt - Flipper Zero or Flipper Zero simulator
make build # Build the game
make launch # Build and launch on connected Flipper Zero
make clean # Clean build artifacts
make help # Show all available targets- Engine: Flipper Zero Game Engine with entity-component system
- Terrain: Optimized diamond-square algorithm (65x65 chunks)
- Memory: Efficient collision detection and sonar chart storage
- Rendering: Monochrome graphics optimized for 128x64 display
- game.c/h: Main game logic and submarine entity
- terrain.c/h: Procedural terrain generation and collision detection
- Makefile: Build system with convenient targets
- application.fam: Flipper Zero app configuration
This is a port and enhancement of the hunterkiller submarine game originally written for Pico-8. The Flipper Zero version includes:
- Improved entity-component architecture
- Memory optimization for embedded constraints
- Enhanced visual feedback and UI
- Better collision detection and physics
- Structured codebase for maintainability
[Include appropriate license information]