# Create the fixed iPad version:
# 1. Instructions disappear when game starts
# 2. Fix coin collection
# 3. Single complete code
html_content = '''
Abuzar Racing
🏎️ Abuzar Racing
Score: 0
High: 0
Coins: 0
Round Coins: 0
◀
▶
Tap arrows to change lanes • Swipe up for boost
💥 CRASHED!
Score: 0
Coins: 0
'''
# Save to output file
output_path = '/mnt/kimi/output/abuzar_racing_fixed.html'
with open(output_path, 'w', encoding='utf-8') as f:
f.write(html_content)
print(f"✅ Fixed version saved to: {output_path}")
print("\n🔧 Fixes made:")
print("- Instructions now hide when game starts")
print("- Instructions show again when game stops or ends")
print("- FIXED: Coin collection now works properly")
print("- Coin collision detection improved (dz < 2.5)")
print("- Single complete HTML file")