NishantMajumdar/realgaming ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple app where a phone can act like a motion controller for a game running on a computer.
I want a React Native mobile app that reads live accelerometer data and sends it quickly to a Node.js server using UDP, so there is as little lag as possible. On the server side, set up a desktop app that receives that motion data and uses it to control a basic virtual game, something like a tennis game or another simple fitness style game where moving the phone changes what happens on screen.
Make it feel like a real demo people can try right away, with a clean starting screen on the phone, a way to connect to the server, and clear feedback that the motion data is being received. If you need to look up current docs or best practices online, go ahead. Keep the experience simple, responsive, and focused on using movement as the main control.
Are you gonna build this?
make sure you review the code using coderabbit