{"id":356,"date":"2019-04-29T14:03:26","date_gmt":"2019-04-29T14:03:26","guid":{"rendered":"https:\/\/projects-old.etc.cmu.edu\/another-alice-adventure\/?page_id=356"},"modified":"2019-05-04T07:12:36","modified_gmt":"2019-05-04T07:12:36","slug":"intermediate-the-intermediate","status":"publish","type":"page","link":"https:\/\/projects-old.etc.cmu.edu\/another-alice-adventure\/index.php\/tutorial\/intermediate-the-intermediate\/","title":{"rendered":"Intermediate: The Intermediate"},"content":{"rendered":"\n<figure class=\"wp-block-embed-youtube alignwide wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe width=\"1170\" height=\"658\" src=\"https:\/\/www.youtube.com\/embed\/PvTVD-dC2a4?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"has-medium-font-size\">In this video, we are going to make a \u201ctrade with the guard\u201d game. You give the guard a book and you will get a key to unlock the door to the next room. <br><\/p>\n\n\n\n<p class=\"has-medium-font-size\">First, let\u2019s set up the scene. Drag the background image to the canvas. In the property panel on the right side of the canvas area, name it room 1. Now let\u2019s add a door, a guard and a book to the scene. We also need to put a key behind the guard. To do that, drag the key over the guard in the canvas area. Click yes if you want to put the key behind the guard. In this game, the guard is a container for the key. You can check what\u2019s inside a container by clicking on the container and checking the property panel on the right.<br><\/p>\n\n\n\n<p class=\"has-medium-font-size\">Next, click on the \u201cAdd New Scene\u201d button to make room 2. We also need to give it a background image. &nbsp;Now we have added all the scenes and objects we need. We can now start to make connections in the puzzle editor. Click on the puzzle editor tab. We need to make three puzzles here. The first puzzle is to pick up the book from the floor. The second puzzle is to get the key from the guard by trading the book for the key with him. The third puzzle is to go to room 2 through the unlocked door.<br><\/p>\n\n\n\n<p class=\"has-medium-font-size\">Let\u2019s make the first puzzle. The goal is to get the book. The way to achieve that is by picking it up directly. Click on the \u201cLooks Good\u201d button. <br><\/p>\n\n\n\n<p class=\"has-medium-font-size\">Now let\u2019s make the second puzzle. The goal here is to get an item. The item is the key, and the way to achieve that is by trading with a character. The character is the guard and the object is the book. Click on the \u201cLooks Good\u201d button. <br><\/p>\n\n\n\n<p class=\"has-medium-font-size\">Now let\u2019s make the last puzzle. The goal here is to go to another location. The new location is room 2. The way to achieve that is by entering through an entrance. The entrance is the door and it\u2019s locked by the key. Click on the \u201cLooks Good\u201d button. When the player goes to room 2, the player wins. So we need to set this puzzle as the winning condition in the puzzle editor area. <br><\/p>\n\n\n\n<p class=\"has-medium-font-size\">Great. Let\u2019s click on the play button and play the game. <br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this video, we are going to make a \u201ctrade with the guard\u201d game. You give the guard a book and you [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":350,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-356","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/projects-old.etc.cmu.edu\/another-alice-adventure\/index.php\/wp-json\/wp\/v2\/pages\/356"}],"collection":[{"href":"https:\/\/projects-old.etc.cmu.edu\/another-alice-adventure\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/projects-old.etc.cmu.edu\/another-alice-adventure\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/projects-old.etc.cmu.edu\/another-alice-adventure\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/projects-old.etc.cmu.edu\/another-alice-adventure\/index.php\/wp-json\/wp\/v2\/comments?post=356"}],"version-history":[{"count":3,"href":"https:\/\/projects-old.etc.cmu.edu\/another-alice-adventure\/index.php\/wp-json\/wp\/v2\/pages\/356\/revisions"}],"predecessor-version":[{"id":398,"href":"https:\/\/projects-old.etc.cmu.edu\/another-alice-adventure\/index.php\/wp-json\/wp\/v2\/pages\/356\/revisions\/398"}],"up":[{"embeddable":true,"href":"https:\/\/projects-old.etc.cmu.edu\/another-alice-adventure\/index.php\/wp-json\/wp\/v2\/pages\/350"}],"wp:attachment":[{"href":"https:\/\/projects-old.etc.cmu.edu\/another-alice-adventure\/index.php\/wp-json\/wp\/v2\/media?parent=356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}