O'Reilly logo

Beginning 3D Game Programming by Tom Miller

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

Writing the Level Creator

Although you could create a fancy 3D graphics version of the level creator for the Blockers game, one thing any good tool developer realizes is that tools need to be functional and written quickly. Why spend all the time making a fancy 3D graphics version, when you can simply use the WinForms controls to get the job done easily? To get started, load the Blockers solution file, right-click on the solution in Solution Explorer, and click Add New Project. Choose a WinForms project, and call it LevelCreator.

This step automatically generates some code, so open the form1.cs file in code view (not in designer view), and replace the automatically generated variables with these:

 private static readonly Color[] BoxColors = {Color.Black, ...

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