Inspiration
Coconut Farmer draws its inspiration from the rich cultural tapestry of Trinidad, specifically the serene Manzanilla Beach, and the timeless narrative of building a legacy from humble beginnings. The core idea revolves around a player inheriting a single, special coconut from their grandfather, symbolizing tradition and potential. This personal connection drives the player's journey to cultivate a thriving coconut empire, blending agricultural simulation with a heartwarming story of growth and heritage.
What it does
Coconut Farmer is an immersive simulation game that allows players to manage and grow a coconut farm. Players begin by planting a single coconut tree and progress through various stages of farming, including harvesting coconuts, selling them in the market, and investing in upgrades to enhance their operations. The game features a dynamic economy with fluctuating market prices influenced by in-game challenges. As the farm expands, players can unlock and develop premium coconut products like coconut water, powder, and oil, significantly increasing their earning potential. An AI observer, Winston, provides real-time commentary, advice, and observations, adding a personalized touch to the farming experience. The game also includes automated systems for harvesting and selling, a comprehensive challenge system with weather events and praedial larceny, and a detailed farm valuation tool to track overall business growth. Players can customize their profile, and manage their game data through export, import, and reset functionalities.
How we built it
Two things: There's the how from a what code and framework was used. That would be React, Expo and other visual libraries. It would include Gemini as well as ElevenLabs. But the other thing is bolt.new Most of the building was via prompts to bolt.new
With bolt.new, the development of Coconut Farmer was an iterative process, guided by continuous refinement and the integration of new features. We started by establishing the core game loop and fundamental mechanics, such as planting trees and managing resources. As the project evolved, we progressively introduced more complex systems, including a dynamic challenge system to add realism and unpredictability to the farming experience. The integration of an AI observer, Winston, was a significant step, allowing for real-time, contextual commentary and advice. We also focused on enhancing the player's ability to track their progress and manage their game data, leading to the implementation of features like the farm valuation tool and robust save/load functionalities. Each new addition and refinement was a direct response to the evolving vision for the game, building upon previous iterations to create a richer and more engaging experience.
Challenges we ran into
Developing Coconut Farmer presented several challenges. Managing the complex and interconnected game state, including tree growth cycles, resource management, and economic simulations, required a robust and carefully designed state management system to ensure consistency across all game components. Implementing real-time simulations for tree growth, coconut production, and automation features demanded precise timing and efficient updates. Creating a dynamic and engaging challenge system with varied effects and durations, while ensuring fair play and player engagement, was also complex. Integrating an external AI API (Gemini) for contextual commentary involved handling API keys, managing request/response cycles, and implementing reliable fallback mechanisms for when the API is unavailable or fails. Ensuring seamless state persistence across app sessions and providing reliable export/import functionalities for user data added another layer of complexity. Lastly, the initial test setup faced validation errors related to the jest-environment-jsdom environment, highlighting the intricacies of configuring a comprehensive testing suite for a React Native Expo project. [tests/test-report.json]
Accomplishments that we're proud of
We are particularly proud of the comprehensive and interconnected game state management system, which seamlessly handles all aspects of the farm's progression and economy. The dynamic challenge system, including severe weather events and praedial larceny, adds significant depth and replayability to the game, keeping players engaged with unpredictable scenarios. The integration of Winston, the AI observer, provides a unique and personalized experience, offering timely advice and observations that make the game feel more alive. The detailed farm valuation feature offers players a clear and tangible measure of their success, encouraging strategic decision-making. Furthermore, the robust data management capabilities, allowing players to export, import, and reset their game progress, ensure a user-friendly experience and data security. The successful implementation of automated farming and selling mechanisms also stands out as a key achievement, providing a satisfying progression path for players.
What we learned
Through the development of Coconut Farmer, we gained valuable insights into building complex simulation games within the Expo and React Native ecosystem. We learned the critical importance of a well-structured and centralized state management approach for handling numerous interconnected game variables and ensuring data consistency. The process highlighted the nuances of implementing real-time game loops and managing timers for continuous background processes. We deepened our understanding of integrating external AI services, including the necessity of robust error handling and fallback strategies. Furthermore, we learned how to design engaging progression systems that blend narrative elements with core gameplay mechanics, and the significance of comprehensive testing to validate complex game logic and ensure a stable user experience.
What's next for Coconut Farmer
The future of Coconut Farmer holds exciting possibilities for expansion and deeper immersion. Building upon the existing foundation, the next steps will focus on introducing more advanced product lines and potentially enabling players to construct their first processing factory, as hinted by the hasBuiltFactory milestone. A major goal is to implement international trade and export capabilities, allowing players to expand their coconut empire globally, aligning with the hasExportedProducts milestone. We also plan to introduce more complex and varied challenges, as well as dynamic seasonal events that further impact gameplay. Enhancing Winston's AI capabilities to offer more personalized quests or deeper strategic advice is also on the roadmap. Finally, to enable monetization and in-app purchases, we will guide the user to integrate RevenueCat, which will require exporting the project and setting it up locally, as it involves native code that cannot run in the in-browser preview.
Log in or sign up for Devpost to join the conversation.