{"id":1273,"date":"2017-08-24T22:00:30","date_gmt":"2017-08-24T22:00:30","guid":{"rendered":"http:\/\/easycoding.tn\/?page_id=1273"},"modified":"2017-08-24T22:41:36","modified_gmt":"2017-08-24T22:41:36","slug":"project-1-control-your-game-with-an-android-phone","status":"publish","type":"page","link":"http:\/\/easycoding.tn\/index.php\/iot-school\/project-1-control-your-game-with-an-android-phone\/","title":{"rendered":"Project 1"},"content":{"rendered":"<h3 style=\"text-align: center;\">Control your game with an Android phone<\/h3>\n<h3>Summary<\/h3>\n<table style=\"height: 406px;\" width=\"527\">\n<tbody>\n<tr>\n<td>Public<\/td>\n<td>From the age of 10<\/td>\n<\/tr>\n<tr>\n<td>Objects to be connected<\/td>\n<td>A sprite with an Android device<\/td>\n<\/tr>\n<tr>\n<td>Connectivity<\/td>\n<td>WIFI<\/td>\n<\/tr>\n<tr>\n<td>Software used<\/td>\n<td>\n<ul>\n<li>Snap 4 Arduino<\/li>\n<li>MIT App Inventor<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>Hardware<\/td>\n<td>A Computer<\/p>\n<p>An Android device<\/td>\n<\/tr>\n<tr>\n<td>Estimated time<\/td>\n<td>3H<\/td>\n<\/tr>\n<tr>\n<td>Steps:<\/td>\n<td>\n<ul>\n<li>Creating the S4A games<\/li>\n<li>Creating the connection<\/li>\n<li>Creating the Android App<\/li>\n<li>Improving the project<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Introduction:<\/h3>\n<p>In this project, you will learn how to make your own game using a software called Snap4Arduino (Blocs programming like Scratch) We will control the sprites with an App that we will make with App Inventor. We will not write code, just snap blocks together.<\/p>\n<h3>STEP 1:<\/h3>\n<p>In this step, we will make a game with the software called <a href=\"http:\/\/snap.berkeley.edu\">SNAP! <\/a>(like <a href=\"http:\/\/scratch.mit.edu\">Scratch<\/a>) You will design your own spaceship. The spaceship should avoid a meteorite. For now, you control the spaceship with the arrow keys.<\/p>\n<ol>\n<li>Download and Install <a href=\"http:\/\/snap4arduino.org\">Snap4Arduino<\/a>.<\/li>\n<li>Follow the video to make the game<iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/9Dq7G75nJhQ\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/li>\n<\/ol>\n<h3>STEP 2:<\/h3>\n<p>In this part we will see how to control our spaceship with the browser. We will send HTTP request in some format. You need to know the IP address of your machine.<br \/>\n<iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/yLtuCWPnDWw\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<h3>STEP 3:<\/h3>\n<p>In this part, we will make our Android app to control the sprite. We will use a tool called <a href=\"http:\/\/appinventor.mit.edu\">MIT APP Inventor<\/a>.<\/p>\n<ol>\n<li><a href=\"http:\/\/appinventor.mit.edu\/explore\/ai2\/setup-device-wifi.html\">Install <\/a>the AI companion<\/li>\n<li>If you never used App Inventor before, I suggest to make <a href=\"http:\/\/appinventor.mit.edu\/explore\/ai2\/hellopurr.html\">this App <\/a>first.<\/li>\n<li>Follow the video to make the Android App\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/y2OPTOOQ7As\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Control your game with an Android phone Summary Public From the age of 10 Objects to be connected A sprite&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1271,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/pages\/1273"}],"collection":[{"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/comments?post=1273"}],"version-history":[{"count":10,"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/pages\/1273\/revisions"}],"predecessor-version":[{"id":1285,"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/pages\/1273\/revisions\/1285"}],"up":[{"embeddable":true,"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/pages\/1271"}],"wp:attachment":[{"href":"http:\/\/easycoding.tn\/index.php\/wp-json\/wp\/v2\/media?parent=1273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}