O'Reilly logo

XNA 4.0 Game Development by Example Beginner's Guide by Kurt Jaegers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - tile selection controls

  1. Expand the Textures folder in the Level Editor Content project.
  2. Click on the PlatformTiles.png file. The Properties window below Solution Explorer will update to display the properties of the image file.
  3. Change the Copy to Output Directory property to Copy if newer.
  4. Switch back to the Design mode view of the MapEditor form.
  5. Add an ImageList control to the MapEditor form by double-clicking on the control in the Toolbox window. It will show up in the gray area below the form, as it is a non-visible control. Set the following properties on the ImageList:

    a. Name : imgListTiles

    b. ColorDepth : Depth32Bit

    c. ImageSize : 48, 48

  6. Add a ListView control to the MapEditor form, and give it the following properties: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required