Draw and Fly
We don't always have our Nintendo Switch around, but we always have our phones with us.
Core trick
Phone pitch and roll readings stream over a WebSocket relay to steer a plane in the browser.
Description
We don't always have our Nintendo Switch around, but we always have our phones with us. This gemini-powered game allows users to draw their map and render it in a unique map. They will be able to fly their plane using their phone as a controller to control the pitch and roll. The next step will be to introduce multiplayer features.
README excerpt
# Flying Game Render Demo (No AI) This folder is a standalone deploy target for Render. ## What it does - Serves a dogfight-only frontend from `public/` - WebSocket relay for `flight3d.html` - No map drawing UI and no start/finish race flow ## Local run ```bash cd render_demo npm install npm start ``` Open `http://localhost:8080/`. ## Deploy on Render 1. Push this repo to GitHub. 2. In Render, create from Blueprint (`render.yaml`) or Web Service. 3. If using Web Service manually, set: - Root Directory: `render_demo` - Build Command: `npm install` - Start Command: `npm start` 4. Open `https://<your-service>.onrender.com/`. ## Phone WebSocket URL Use: ```kotlin private val wsUrl = "wss://<your-service>.onrender.com" ```