{"id":880,"date":"2026-02-13T08:51:13","date_gmt":"2026-02-13T00:51:13","guid":{"rendered":"https:\/\/edu.circuspi.com\/?p=880"},"modified":"2026-03-09T15:39:59","modified_gmt":"2026-03-09T07:39:59","slug":"6-1-designing-game-level-backgrounds","status":"publish","type":"post","link":"https:\/\/edu.circuspi.com\/index.php\/gamebit-en\/6-1-designing-game-level-backgrounds\/","title":{"rendered":"6.1 Designing Game Level Backgrounds"},"content":{"rendered":"\n<p>First, please enter <a href=\"https:\/\/arcade.makecode.com\/beta?hw=n3\">MakeCode Arcade<\/a> and open your project with your Sprite, as shown below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1190\" height=\"708\" src=\"https:\/\/edu.circuspi.com\/wp-content\/uploads\/2026\/02\/\u82f106-1_01.png\" alt=\"\" class=\"wp-image-1143\"\/><\/figure>\n\n\n\n<p>You can see a &#8220;<strong>Scene<\/strong>&#8221; category in the <strong>Block Toolbox<\/strong>. Click it to reveal many blocks related to scene settings in the list.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1190\" height=\"608\" src=\"https:\/\/edu.circuspi.com\/wp-content\/uploads\/2026\/02\/\u82f106-1_02.png\" alt=\"\" class=\"wp-image-1144\"\/><\/figure>\n\n\n\n<p>First, let&#8217;s try the &#8220;<strong>set background color to ( )<\/strong>&#8221; block. Drag it into the &#8220;<strong>on start<\/strong>&#8221; block. Clicking the color box at the end of the block opens the <strong>Color Palette<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1190\" height=\"774\" src=\"https:\/\/edu.circuspi.com\/wp-content\/uploads\/2026\/02\/\u82f106-1_03.png\" alt=\"\" class=\"wp-image-1145\"\/><\/figure>\n\n\n\n<p>The &#8220;<strong>set background color to ( )<\/strong>&#8221; block is quite simple; it quickly changes the background to a single color. This is suitable for occasions where you need to highlight the Sprite, or for scenes with many characters and items, where a simple background prevents the screen from looking too cluttered.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1190\" height=\"740\" src=\"https:\/\/edu.circuspi.com\/wp-content\/uploads\/2026\/02\/\u82f106-1_04.png\" alt=\"\" class=\"wp-image-1146\"\/><\/figure>\n\n\n\n<p>However, we often need rich backgrounds to create the game&#8217;s atmosphere, so we need to draw them ourselves. Inside the &#8220;<strong>Scene<\/strong>&#8221; list, you can find the &#8220;<strong>set background image to ( )<\/strong>&#8221; block.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1190\" height=\"717\" src=\"https:\/\/edu.circuspi.com\/wp-content\/uploads\/2026\/02\/\u82f106-1_05.png\" alt=\"\" class=\"wp-image-1147\"\/><\/figure>\n\n\n\n<p>Let&#8217;s replace the previous &#8220;<strong>set background color<\/strong>&#8221; block with the &#8220;<strong>set background image to ( )<\/strong>&#8221; block. Clicking the box at the end opens the familiar editor. Just like designing Sprites, we can use these tools to draw backgrounds.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1190\" height=\"798\" src=\"https:\/\/edu.circuspi.com\/wp-content\/uploads\/2026\/02\/\u82f106-1_06.png\" alt=\"\" class=\"wp-image-1148\"\/><\/figure>\n\n\n\n<p>The background drawing interface also has a &#8220;<strong>Gallery<\/strong>&#8221; to choose from, or you can draw the background yourself.\ud83d\ude1d<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1190\" height=\"740\" src=\"https:\/\/edu.circuspi.com\/wp-content\/uploads\/2026\/02\/\u82f106-1_07.png\" alt=\"\" class=\"wp-image-1149\"\/><\/figure>\n\n\n\n<p>Some background assets or hand-drawn backgrounds might have concepts of height or depth. For example, in the image below, the scene is outside a spooky castle. The orange dinosaur seems to be standing in a strange position, as if floating in mid-air. In this case, we need to adjust the Sprite&#8217;s position to match the background layout.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"976\" height=\"756\" src=\"https:\/\/edu.circuspi.com\/wp-content\/uploads\/2026\/02\/\u82f106-1_08.png\" alt=\"\" class=\"wp-image-1150\"\/><\/figure>\n\n\n\n<p>Let&#8217;s look at how big the game screen is and how the coordinates are configured.<\/p>\n\n\n\n<p>The screen size is <strong>160 x 120 pixels<\/strong>. The top-left corner coordinate is <strong>(0, 0)<\/strong>, and the bottom-right corner is <strong>(160, 120)<\/strong>. This means our orange dinosaur is currently at the center coordinate <strong>(80, 60)<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1600\" height=\"1080\" src=\"https:\/\/edu.circuspi.com\/wp-content\/uploads\/2023\/09\/06-1_09.png\" alt=\"\" class=\"wp-image-365\"\/><\/figure>\n\n\n\n<p>Once we understand the coordinate configuration, we can find the &#8220;<strong>set [mySprite] position to x ( 0 ) y ( 0 )<\/strong>&#8221; block under the &#8220;<strong>Sprites<\/strong>&#8221; category in the <strong>Block Toolbox<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1190\" height=\"774\" src=\"https:\/\/edu.circuspi.com\/wp-content\/uploads\/2026\/02\/\u82f106-1_10.png\" alt=\"\" class=\"wp-image-1151\"\/><\/figure>\n\n\n\n<p>Using this block helps us adjust the Sprite&#8217;s position. We can enter numbers in the <strong>x and y coordinate fields<\/strong>, or use the pop-up slider to adjust the position. The pop-up window is very user-friendly, providing a visual representation of the coordinates for reference.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1190\" height=\"901\" src=\"https:\/\/edu.circuspi.com\/wp-content\/uploads\/2026\/02\/\u82f106-1_11.png\" alt=\"\" class=\"wp-image-1152\"\/><\/figure>\n\n\n\n<p>After adjustment, the scene looks much more reasonable. The orange dinosaur is now standing on the ground instead of floating in the air, as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"981\" height=\"757\" src=\"https:\/\/edu.circuspi.com\/wp-content\/uploads\/2023\/09\/06-1_12.png\" alt=\"\" class=\"wp-image-368\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>First, please enter MakeCode Arcade and open your proje [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":368,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,23],"tags":[],"table_tags":[],"class_list":{"0":"post-880","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-gamebit-en","8":"category-freeinfo-en","9":"czr-hentry"},"_links":{"self":[{"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/posts\/880","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/comments?post=880"}],"version-history":[{"count":2,"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/posts\/880\/revisions"}],"predecessor-version":[{"id":1162,"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/posts\/880\/revisions\/1162"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/media\/368"}],"wp:attachment":[{"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/media?parent=880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/categories?post=880"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/tags?post=880"},{"taxonomy":"table_tags","embeddable":true,"href":"https:\/\/edu.circuspi.com\/index.php\/wp-json\/wp\/v2\/table_tags?post=880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}