- Scratch 2.0 Game Development HOTSHOT
- Sergio van Pul Jessica Chiang
- 320字
- 2021-07-19 18:16:57
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:

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:
- Click on the white image.
- 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.
- Choose a green color and draw a rectangle from the top left to the bottom right of the canvas.
- Then click on the Fill tool and fill the rectangle with the same color to create a grassy background.
- On top of the field, we will draw a path that the enemies will use to walk on.
- Switch the Fill tool to a brown color.
- 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.
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.
- Redis使用手冊
- 我們都是數據控:用大數據改變商業、生活和思維方式
- Building Computer Vision Projects with OpenCV 4 and C++
- 在你身邊為你設計Ⅲ:騰訊服務設計思維與實戰
- 數據分析實戰:基于EXCEL和SPSS系列工具的實踐
- 達夢數據庫編程指南
- SQL查詢:從入門到實踐(第4版)
- Sybase數據庫在UNIX、Windows上的實施和管理
- 數據庫原理與設計(第2版)
- 數據科學工程實踐:用戶行為分析與建模、A/B實驗、SQLFlow
- Oracle數據庫管理、開發與實踐
- AndEngine for Android Game Development Cookbook
- 區塊鏈應用開發指南:業務場景剖析與實戰
- Artificial Intelligence for Big Data
- 深入理解Flink:實時大數據處理實踐