O'Reilly logo

Going to War: Creating Computer War Games by Jason Darby

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

Chapter 3. Your First Creation

For your first creation, you will be making a very simple program that will display a text object which contains the words Welcome to my first program and will use a simple movement routine and code to bounce around the screen. This simple creation is to give you a brief look at some of the screens you will use in more depth later on as well as give you a quick look at what you need to do to put your creation together.

For our first project we will use the following process:

  1. Create the application file and rename it.

  2. Add the text object.

  3. Configure the text object.

  4. Set its movement property.

  5. Code the text to bounce around the screen.

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