Skip to content

Latest commit

 

History

History
55 lines (43 loc) · 1.83 KB

File metadata and controls

55 lines (43 loc) · 1.83 KB

How to Add Level Background Images to Your Xcode Project

I've generated 6 beautiful themed background images for your levels. Here's how to add them:

Step 1: Locate the Generated Images

The images are saved in your Antigravity artifacts folder:

  • level1_background.png - Blue futuristic tech floor with central obstacle
  • level2_background.png - Orange industrial warehouse with L-shaped corridor
  • level3_background.png - Purple/pink cyberpunk spiral maze
  • level4_background.png - Green circuit board zigzag pattern
  • level5_background.png - Red warning cross-shaped arena
  • level6_background.png - Yellow holographic complex maze

Step 2: Add to Xcode Assets

  1. Open your Xcode project (test.xcodeproj)
  2. In the Project Navigator, find and open Assets.xcassets
  3. For each image:
    • Right-click in the Assets.xcassets window
    • Select "Import..."
    • Navigate to the generated images
    • Select the image and click "Open"
    • Rename the asset to match the exact name:
      • level1_background
      • level2_background
      • level3_background
      • level4_background
      • level5_background
      • level6_background

Step 3: Verify Image Names

Make sure the asset names EXACTLY match what's in the code:

  • No file extensions (.png)
  • Use underscores, not spaces
  • All lowercase

Alternative: Use Finder

You can also drag and drop:

  1. Find the generated images in Finder
  2. Drag them directly into Assets.xcassets in Xcode
  3. Rename each asset as listed above

Testing

After adding the images:

  1. Build and run the app
  2. Go to Level Select
  3. You should see each level thumbnail with its themed background
  4. Open a level - the background should overlay the grid
  5. The robot and red goal marker should be clearly visible on top

The images are designed with 85% opacity so the underlying grid is still visible for debugging!