官术网_书友最值得收藏!

Creating a background

Because the placement and the route to walk is important in this kind of game, we will start with the creation of the background. To the left of the Sprites window, you will see a separate picture. Underneath is the word Stage and another word, the name of the picture that's being shown. This picture is white when you start a new project because nothing is drawn on it yet. The following is an example with our background image already drawn in:

Creating a background

Engage thrusters

We will draw a grassy field with a winding road running through it when looked at from the top, by going through the following steps:

  1. Click on the white image.
  2. Next, click on the Backdrops tab to get to the drawing tool. This is similar to the Costumes tab for sprites, but the size of the drawing canvas is clearly limited to the size of the stage.
    Engage thrusters
  3. Choose a green color and draw a rectangle from the top left to the bottom right of the canvas.
  4. Then click on the Fill tool and fill the rectangle with the same color to create a grassy background.
  5. On top of the field, we will draw a path that the enemies will use to walk on.
  6. Switch the Fill tool to a brown color.
  7. Draw rectangles to form a curving path as shown in the following screenshot. The background is now done. Let's save our work before moving on.
    Engage thrusters

Objective complete – mini debriefing

The background is just a pretty picture with no direct functionality in the game. It tells the player what to expect in the game. It will be logical that enemies are going to follow the road that was drawn. We will also use this road as a guideline when scripting the movement path of the enemies. The open spaces between the path make it obvious where the player could place the cannons.

主站蜘蛛池模板: 江陵县| 麦盖提县| 库尔勒市| 仙居县| 柳河县| 巴彦淖尔市| 黔江区| 新乡县| 福清市| 金阳县| 安国市| 汉寿县| 沂南县| 西盟| 那坡县| 西吉县| 珠海市| 丰城市| 永顺县| 静宁县| 东阿县| 京山县| 怀化市| 繁峙县| 吴川市| 余干县| 张家口市| 元谋县| 河池市| 吴堡县| 宣化县| 武城县| 诏安县| 彭泽县| 米林县| 北宁市| 云龙县| 湟源县| 灵丘县| 于都县| 额济纳旗|