User prompt
Please fix the bug: 'Uncaught TypeError: storage.set is not a function' in or related to this line: 'storage.set('language', currentLanguage);' Line Number: 354 ↪💡 Consider importing and using the following plugins: @upit/storage.v1
User prompt
Please fix the bug: 'storage.getValue is not a function' in or related to this line: 'var currentLanguage = storage.getValue('language') || 'en';' Line Number: 572 ↪💡 Consider importing and using the following plugins: @upit/storage.v1
User prompt
Please fix the bug: 'storage.get is not a function' in or related to this line: 'var currentLanguage = storage.get('language') || 'en';' Line Number: 572
User prompt
"I want you to create a main menu. It will include a settings menu with support for different languages: Russian, French, English, and Turkish."
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'toGlobal')' in or related to this line: 'var localPos = self.toLocal(obj.parent.toGlobal(obj.position));' Line Number: 289
Code edit (1 edits merged)
Please save this source code
User prompt
Thoroughbred Legacy: Champion's Rise
Initial prompt
Game Title Concept: "Thoroughbred Echoes: Champion's Ascent" (or similar, AI can suggest alternatives) Core Game Genre: Detailed Horse Racing Simulation and Management RPG. Think Rival Stars Horse Racing or Gallop Racer, combined with in-depth management and detailed thoroughbred breeding elements. Target Audience: Players who love horses, horse racing, strategic management, and progression-based RPG elements. Those seeking a realistic simulation experience without sacrificing fun. I. Overall Vision & Game Pillars This game aims to provide players with the opportunity to establish their own horse farm, breed thoroughbred horses, train them, and lead them to victory on international race tracks. The focus is on in-depth horse management, training, jockey skills, and strategic race decisions. The game should offer a dynamic and evolving horse racing world where the player's decisions have significant short-term and long-term consequences. Pillar 1: In-Depth Horse Management & Breeding: Each horse must have unique genetic traits, personalities, and development potential. Pillar 2: Strategic Racing Experience: Races shouldn't just be about quick button presses; tactics, jockey skill, and the horse's condition must be critical. Pillar 3: Evolving Economic & Social System: The racing world should feel alive and competitive, reacting to the player's actions. Pillar 4: RPG-Style Progression: Both the player (stable owner/trainer) and jockeys' skills should develop over time. Pillar 5: Visual & Sensory Immersion: Detailed horse models, realistic animations, diverse tracks, and atmospheric sound design. II. Setting & Atmosphere Era: Contemporary horse racing world, encompassing global racing calendars and different cultural track environments (e.g., British turf tracks, American dirt tracks, major Japanese racecourses). World Map: A dynamic global map or race calendar interface. Players should be able to travel to participate in races in different regions and expand their farm internationally. Race Tracks: Numerous realistic or inspired race tracks, each with unique characteristics (length, surface type, sharpness of turns, elevation changes). Weather conditions (rain, sunny, cloudy) should affect track conditions. Atmosphere: A competitive, prestigious, and at times dramatic atmosphere. This should be reinforced through social events, auctions, media attention, and interactions with rivals. III. Core Gameplay Mechanics A. Horse Breeding & Management: Genetic System: Each horse should possess a unique genetic code. Parents' genes (e.g., speed, stamina, temperament, injury susceptibility) should pass to offspring. A complex thoroughbred database to expand the gene pool. Breeding & Stallion Selection: Players can breed their own horses or lease outside stallions and mares. Detailed analysis of genetic matchups. Horse Growth & Development: Stages of horse development from foal to adult. Each age having unique training and health requirements. Personality & Temperament: Each horse should have a distinct personality (e.g., feisty, calm, competitive, timid). This should affect training methods and race performance. Training System: Detailed training programs: Physical Training: Focusing on specific attributes like speed, stamina, acceleration. Overtraining should increase injury risk. Mental Training: Developing mental aspects such as starting discipline, calmness in crowds, and competing with rival horses. Training Conditions: Training sessions should be affected by weather conditions, track surface, and the jockey's skill. Health & Care: Regular veterinary checks, feeding programs, and rest needs for horses. Injuries and illnesses can lead to performance drops or career endings. Rehabilitation processes. Retirement: Successful horses can be retired to stud, continuing their genetic lines within the game. B. Racing Mechanics: Real-Time Race Control: The player controls their jockey during races. This shouldn't just be about pressing a "speed up" button but also: Positioning: Finding the ideal position throughout the race, avoiding being boxed in. Energy Management: Judiciously using the horse's stamina, deciding when to make a sprint. Maneuvers: Overtaking from the inside, swinging wide, blocking rivals (within fair limits). Jockey Skills: The jockey's ability to communicate with the horse, use the whip (within fair limits), and calm the horse during the race. Pre-Race Strategy: Jockey Selection: Each jockey should have different skills, weight, and preferred horse temperaments. Tactical Instructions: Giving instructions based on the horse's running style (e.g., front-runner, closer, mid-pacer) and track conditions. Equipment Selection: Minor adjustments like tack and horseshoe type should affect performance. Rival Horse AI: Opponent horses and jockeys should act intelligently, have their own strategies, and create a dynamic competitive environment. Photo Finish & Detailed Race Results: Races should conclude with millisecond precision. Detailed post-race statistics (speed, distance covered, sprint times, etc.). C. Management & Economy: Farm Management: Facility Construction: Building and upgrading facilities such as stables, training tracks (on different surfaces), breeding facilities, and veterinary clinics. Staff Management: Hiring staff like trainers, grooms, veterinarians, and jockeys, assigning them based on skills, and managing their salaries. Resource Management: Managing consumables like feed, medicine, and equipment. Financial Management: Income Sources: Race winnings, horse sales, stud fees, passive betting income. Expenses: Staff salaries, horse care, training, travel, facility maintenance, and upgrades. Loans & Debts: Taking bank loans if necessary, maintaining financial balance. Market & Trade: Buying/Selling Horses: Participating in horse auctions, buying/selling young foals or retired champions. Sponsorships: Securing sponsorship deals from brands for additional income. Reputation System: Gaining reputation through racing success, ethical conduct, and breeding achievements. High reputation should grant access to better jockeys, invitations to more prestigious races, and higher stud fees. D. RPG & Progression: Player Character (Stable Owner/Trainer): Skills that can be developed through a talent tree (e.g., Horse Health Knowledge, Training Techniques, Business Acumen, Charisma). These skills provide bonuses in different aspects of the game. Jockey Development: Jockeys should improve their skills (e.g., Balance, Speed Control, Sprint Timing) with race experience. Discovering and signing contracts with new jockeys. Fame & Trophy Collection: Major races won, trophies, and records should secure a place for the player and their horses in a "Hall of Fame." Quests & Events: Dynamically generated quests (e.g., making a specific horse a champion, beating a rival, earning a certain amount of money) and special events (e.g., annual breeding auction, international racing festivals). IV. Emergent & Dynamic Systems: Dynamic Rival AI: Rival stable owners and trainers should intelligently breed and race their horses based on their own strategies. Their successes or failures should impact market prices and overall competition. Weather System: Real-time weather changes (rain, sun, snow) should affect race track surfaces and alter race tactics. Injury & Risk System: Horses' risk of injury during training and races. Treatment processes, potential career endings, or performance drops. Random Events: Unexpected events (e.g., epidemics, financial fluctuations, discovery of new talented foals) should influence the player's strategies. Media & Public Opinion: Media attention and public opinion should vary based on race results, horse popularity, and player actions. V. User Interface (UI) & User Experience (UX) Considerations: Intuitive & Fluid: The UI should be clean and understandable despite comprehensive information. Easy navigation between menus. Informative Tooltips: Detailed and clear tooltips for all statistics, mechanics, and UI elements. Horse Profile & Pedigree: Comprehensive profile screen for each horse, showing all its statistics, health status, training history, and a visualized interface for its detailed pedigree. Race Interface: A clear HUD during races that shows essential information (position, speed, stamina, distance) without obstructing the view. Visual Feedback: Clear visual and auditory feedback for all management decisions and race events. Performance: Optimize for smooth performance, especially during large-scale races and detailed farm views. VI. Desired Output from AI: Based on this prompt, the AI is expected to generate a detailed game design document (GDD) covering: Core Gameplay Loop Diagram/Description: A clear explanation of the daily, weekly, and campaign-level gameplay loops. Detailed Horse Genetics & Attribute System: An in-depth explanation of how horse genetic traits are generated, inherited, and how they affect performance. Training & Conditioning System: A detailed breakdown of training types, their effects, and the risks of fatigue and injury. Race Mechanics Deep Dive: A detailed explanation of how in-race control, jockey skills, and horse AI function. Economic Simulation Model: A basic overview of how the game's economy would function, including income, expenses, and market fluctuations. Key UI/UX Screens: Conceptual layouts or descriptive mock-ups for crucial UI screens (e.g., Horse Profile, Farm Management, Race Calendar, Jockey Skill Screen). Emergent Narrative Examples: Illustrative examples of how dynamic systems could create compelling player stories (e.g., the rise of an underdog champion, an enduring rivalry). Technical Considerations (High-Level): Any high-level thoughts on potential engine choices, asset pipelines, or technical challenges. Monetization Strategy (if applicable): A high-level thought process on how such a game could be monetized without compromising the core experience (e.g., expansions, cosmetic DLC, not pay-to-win)
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
}); /****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
});