AI Coding on a PHONE While Riding a Motorcycle in Bali
By corbin
Key Concepts
- Replit Agents: AI-powered coding assistants integrated into the Replit platform, enabling on-the-go code generation and development.
- Mobile Development: The process of creating applications specifically for mobile devices, often challenging due to security restrictions on phones.
- Cloud-based Development: Utilizing remote servers and internet connectivity for coding, compiling, and running applications, circumventing local hardware limitations.
- 3D Game Development: The creation of interactive virtual environments and experiences with three-dimensional graphics.
- AI Prompting: Crafting specific and effective instructions for AI models to generate desired code or content.
- Dependencies: External software components or libraries that a program requires to function correctly.
- Rendering: The process of generating a visual image from a computational model, crucial for displaying game graphics.
- App Architecture: The structural design and organization of an application's components and their interactions.
- Refactoring Code: The process of restructuring existing computer code without changing its external behavior, typically to improve readability, maintainability, or performance.
On-the-Go 3D Game Development in Bali
The video documents an ambitious project to create a 3D motorcycle game using Replit agents while riding a motorcycle through the streets of Canggu, Bali. The primary goal is to demonstrate the feasibility and capabilities of modern, cloud-based mobile development in an extreme, unconventional environment. The speaker emphasizes "upping the ante" by performing development in increasingly challenging locations, even humorously suggesting "doing this in space" as long as an internet connection is available.
Technical Stack and Tools
The core development is performed using Replit agents, leveraging their AI capabilities for code generation. The speaker mentions the potential to connect the project to GitHub for version control and collaboration. Historically, the speaker recalls creating his first "Tunnel Runner" game at age 11 or 12 using Eclipse IDE, highlighting the evolution of development tools. The project involves standard web development commands like npm rundev for starting the application.
Development Process and Iterations
The development follows an iterative process driven by AI prompts:
- Initial Setup: The first step involves choosing the correct tech stack for a 3D game and initiating the first prompt to generate a "3D motorcycle model basic movement."
- Architecture and Dependencies: The initial phase focuses on installing necessary dependencies and creating the fundamental app architecture. Replit's live preview feature is crucial, allowing the developer to see the app's progress in real-time.
- Addressing Rendering Issues: Early attempts to render the game encounter issues, often due to cellular data connectivity. The speaker frequently closes and reopens the app to force a render.
- Prompt Refinement for Mobile Controls: After an initial render shows a computer-controlled game, the prompt is updated to specifically request "mobile controls" to make the game playable on a phone.
- Game Type Evolution: The game's concept evolves from a basic motorcycle model to a "free roam motorcycle game with one road," and later, the addition of a "checkpoint system."
- UI and Infrastructure Enhancements: Further prompts are used to "make road longer," "correct the components," "refactor code," and even add "traffic signs" to build out the game's infrastructure and user interface.
Challenges and Solutions
The primary challenges encountered during the development process include:
- Cellular Data Connectivity: The unstable nature of cellular data in a moving vehicle in Bali frequently hinders the Replit agent's performance and the app's rendering capabilities. The speaker notes, "the more connection you have, the faster the agent works cuz it's all done in the cloud."
- Rendering Problems: The app often fails to render correctly or quickly, requiring patience and repeated attempts.
- Initial Game Output: Early iterations produce "crazy motorcycle" movements or "just a bunch of 3D blocks," necessitating prompt updates for better game logic and visuals.
The solutions primarily involve:
- Iterative Prompting: Continuously refining AI prompts to guide the Replit agent towards the desired game features and functionality.
- Leveraging Cloud Capabilities: Relying on Replit's cloud-based environment to bypass the limitations of mobile hardware and security restrictions, enabling complex development tasks like
npm startwithout jailbreaking the phone. - Patience and Persistence: Navigating connectivity issues and rendering delays with a determined approach.
Key Arguments and Perspectives
- Replit's Advantage for Mobile Development: The speaker highlights Replit's unique ability to facilitate mobile development without requiring phone jailbreaking, stating, "One thing that I do love about Replet is it actually allows you to do mobile development... because everything's in the cloud, we can do that."
- Importance of AI Prompting: The success of the project heavily relies on effective prompting, with the speaker emphasizing, "the prompting is most important" in the age of AI.
- Extreme Development as a Showcase: The entire endeavor serves as a demonstration of what's possible with modern development tools and AI, pushing the boundaries of where and how coding can be done.
Notable Quotes
- "We're going to keep upping the antity gear until we get so crazy that we're doing this in space."
- "I guess the only thing we really need is an internet connection and we'll be good to go."
- "This is a success or failure type of mission."
- "By the time I reach fins, this game has to be finished or it's a failure." (Setting a hard deadline)
- "What's key here, what I'm learning in this context is the more connection you have, the faster the agent works cuz it's all done in the cloud."
Conclusion and Takeaways
Despite numerous challenges related to cellular data connectivity and rendering, the speaker successfully creates a basic, playable 3D motorcycle game by the time he reaches his destination, Finns Beach Club. The final game, while not perfect, features a longer road and some traffic signs, resembling a "Tron-like" aesthetic. The project is declared a "success," demonstrating the power of Replit agents and cloud-based development to enable complex coding tasks in highly unconventional and mobile environments. The experience underscores the critical role of a stable internet connection and effective AI prompting in such scenarios. The video concludes with the speaker's commitment to continue "upping the ante" in future development challenges.
Chat with this Video
AI-PoweredLoad the transcript when you're ready to chat so the initial page stays lighter.
Related Videos

Why Does This Guy Appear In Kids Videos?
sphynx

TIC en las Organizaciones - Electiva Complementaria II Unisimon
Julieth Güell S

How to Tame Your Advice Monster | Michael Bungay Stanier | TED
TED

Margaret Heffernan: Why it's time to forget the pecking order at work
TED

The importance of psychological safety: Amy Edmondson
The King's Fund

What Is Psychological Safety?
Harvard Business Review

13-Conflict Management: Listening in Conflict
Deliberate Development