{"id":59,"date":"2016-06-29T09:24:34","date_gmt":"2016-06-29T07:24:34","guid":{"rendered":"http:\/\/www.albertopasca.it\/whiletrue\/?p=59"},"modified":"2018-05-24T18:35:34","modified_gmt":"2018-05-24T16:35:34","slug":"paskyrun","status":"publish","type":"post","link":"http:\/\/www.albertopasca.it\/whiletrue\/paskyrun\/","title":{"rendered":"[Unity3D] PaskyRun"},"content":{"rendered":"<p>First \u201cHello World\u201d project just to learn Unity3D basics.<\/p>\n<p>A very ugly clone of\u00a0<a href=\"https:\/itunes.apple.com\/it\/app\/gravity-guy\/id398348506?mt=8\">GravityGuy<\/a>\u00a0for iOS, maded in\u00a0<em>Unity3D<\/em>\u00a0using\u00a0<strong>C#<\/strong>. Just to learn something new!<\/p>\n<p><!--more--><\/p>\n<div id='gallery-1' class='gallery galleryid-59 gallery-columns-2 gallery-size-thumbnail'><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"50\" height=\"50\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2016\/06\/687474703a2f2f6265616e616c62792e6e65742f626c6f672f77702d636f6e74656e742f75706c6f6164732f323031332f30332f756e69747949636f6e2e706e67.png?resize=50%2C50\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"50\" height=\"50\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2016\/06\/687474703a2f2f7374617469632e6d696e69636c697063646e2e636f6d2f636f6e74656e742f696d616765732f736d61727470686f6e652f69636f6e732f686f6d65706167655f736d616c6c2f677261766974792d6775792e706e67.jpg?resize=50%2C50\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/>\n\t\t\t<\/div><\/figure>\n\t\t<\/div>\n\n<h3><a id=\"user-content-features-learned\" class=\"anchor\" href=\"https:\/github.com\/elpsk\/Unity3D-PaskyRun#features-learned\"><\/a>Features (learned):<\/h3>\n<ul>\n<li>Infinite vertical scrolling menu<\/li>\n<li>Multilevel<\/li>\n<li>Levels locked until completion<\/li>\n<li>Levels and blocks are created runtime using CSV files<\/li>\n<li>Audio snippet for object collision and game background<\/li>\n<li>Collectible objects (stars)<\/li>\n<li>Animated sprite<\/li>\n<li>Scrollable backgrounds<\/li>\n<li>Save\/Load data from disk<\/li>\n<li>Autolayout<\/li>\n<li>Custom fonts<\/li>\n<\/ul>\n<h3><a id=\"user-content-how-it-works\" class=\"anchor\" href=\"https:\/github.com\/elpsk\/Unity3D-PaskyRun#how-it-works\"><\/a>How it works?<\/h3>\n<p>It\u2019s very simple game. Is an auto-scrolling game that pressing \u201cSpace\u201d (on desktop) or \u201cTouch\u201d (mobile) on screen, the player change its gravity.<br \/>\nYou do not drop out of the blocks and must reach the exit door!<\/p>\n<h3><a id=\"user-content-levels\" class=\"anchor\" href=\"https:\/github.com\/elpsk\/Unity3D-PaskyRun#levels\"><\/a>Levels<\/h3>\n<p>Levels are created using TileMap editor for MacOS using this sprite:<\/p>\n<p><a class=\"hoverZoomLink\" href=\"https:\/github.com\/elpsk\/Unity3D-PaskyRun\/blob\/master\/Assets\/Resources\/Levels\/platform.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/github.com\/elpsk\/Unity3D-PaskyRun\/raw\/master\/Assets\/Resources\/Levels\/platform.png\" alt=\"\" \/><\/a><\/p>\n<p>and next exported as CSV file like this:<\/p>\n<p>[code autolinks=&#8221;false&#8221; collapse=&#8221;false&#8221; firstline=&#8221;1&#8243; gutter=&#8221;true&#8221; htmlscript=&#8221;false&#8221; light=&#8221;false&#8221; padlinenumbers=&#8221;false&#8221; smarttabs=&#8221;true&#8221; tabsize=&#8221;4&#8243; toolbar=&#8221;false&#8221;]<br \/>\n-1,68,56,56,56,44,-1,-1,-1,-1,-1,-1,56,56,68,56,56,56,56,56,56,56,56,56,56,56,56,56,-1,-1,-1,-1,-1,-1,-1,56,56,56,68,56,56,56,56,56,56,56,56,56,56,56,56,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,44<br \/>\n-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,47,35,35,35,35,35,35,35,23,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,31,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,149<br \/>\n-1,40,-1,-1,999,999,999,-1,-1,-1,60,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,999,999,999,-1,-1,-1,-1,-1,60,-1,999,-1,-1,-1,-1,-1,999,32,20,152,152,152,151,8,999,-1,-1,-1,999,999,999,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,60,-1,999,-1,-1,-1,-1,-1,-1,-1,-1,31,-1,-1,60,-1,-1,-1,-1,-1,-1,-1,-1,40,-1,999,-1,-1,81,149<br \/>\n47,35,35,35,35,35,35,35,35,35,35,35,23,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,47,35,35,35,35,35,35,35,35,35,35,23,-1,-1,-1,-1,116,103,20,152,152,152,152,152,151,103,92,-1,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,23,-1,-1,-1,-1,-1,-1,-1,47,35,35,35,35,35,23,-1,-1,-1,-1,-1,47,35,35,35,35,35,35,23<br \/>\n[\/code]<\/p>\n<p>where a number correspond to an image name (block tile).<\/p>\n<div id='gallery-2' class='gallery galleryid-59 gallery-columns-3 gallery-size-medium'><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"70\" height=\"70\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2016\/06\/92.png?fit=70%2C70\" class=\"attachment-medium size-medium\" alt=\"\" \/>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"70\" height=\"70\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2016\/06\/star.png?fit=70%2C70\" class=\"attachment-medium size-medium\" alt=\"\" \/>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"70\" height=\"70\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2016\/06\/60.png?fit=70%2C70\" class=\"attachment-medium size-medium\" alt=\"\" \/>\n\t\t\t<\/div><\/figure>\n\t\t<\/div>\n\n<p>Are loaded in the Scene simply reading the file:<\/p>\n<p>[csharp autolinks=&#8221;false&#8221; collapse=&#8221;false&#8221; firstline=&#8221;1&#8243; gutter=&#8221;true&#8221; htmlscript=&#8221;false&#8221; light=&#8221;false&#8221; padlinenumbers=&#8221;false&#8221; smarttabs=&#8221;true&#8221; tabsize=&#8221;4&#8243; toolbar=&#8221;false&#8221;]<br \/>\npublic\u00a0LevelReader\u00a0(int\u00a0num)<br \/>\n{<br \/>\n\tTextAsset csvfile\u00a0=\u00a0Resources.Load\u00a0(Commons.kLevelPrefix\u00a0+\u00a0num)\u00a0as\u00a0TextAsset;<\/p>\n<p>\tlist\u00a0=\u00a0new\u00a0ArrayList\u00a0();<\/p>\n<p>\tstring[]\u00a0linesFromfile\u00a0=\u00a0csvfile.text.Split\u00a0(&#8216;\\n&#8217;);<br \/>\n\tfor\u00a0(uint\u00a0i\u00a0=\u00a00;\u00a0i\u00a0&amp;lt;\u00a0linesFromfile.Length;\u00a0i++)\u00a0{<br \/>\n\t\tlist.Add\u00a0(linesFromfile\u00a0[i]);<br \/>\n\t}<br \/>\n}<br \/>\n[\/csharp]<\/p>\n<p>and drawed at runtime:<\/p>\n<p>[csharp autolinks=&#8221;false&#8221; collapse=&#8221;false&#8221; firstline=&#8221;1&#8243; gutter=&#8221;true&#8221; htmlscript=&#8221;false&#8221; light=&#8221;false&#8221; padlinenumbers=&#8221;false&#8221; smarttabs=&#8221;true&#8221; tabsize=&#8221;4&#8243; toolbar=&#8221;false&#8221;]<br \/>\nGameObject block\u00a0=\u00a0(GameObject)Instantiate\u00a0(Resources.Load\u00a0(col));<br \/>\nblock.AddComponent&amp;lt;BoxCollider2D&amp;gt;\u00a0().isTrigger\u00a0=\u00a0true;<br \/>\nblock.transform.position\u00a0=\u00a0new\u00a0Vector3\u00a0(colIdx\u00a0&#8211;\u00a010,\u00a0(rowIdx\u00a0*\u00a0-1)\u00a0+\u00a05,\u00a0-1);<br \/>\n[\/csharp]<\/p>\n<p>Player instead is an animated sprite:<br \/>\n<a class=\"hoverZoomLink\" href=\"https:\/github.com\/elpsk\/Unity3D-PaskyRun\/blob\/master\/Assets\/Images\/Sprites\/playerSpritesheet.png.d46a7870e808f6cc599eac1e802a3dd8.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/github.com\/elpsk\/Unity3D-PaskyRun\/raw\/master\/Assets\/Images\/Sprites\/playerSpritesheet.png.d46a7870e808f6cc599eac1e802a3dd8.png\" alt=\"\" \/><\/a><\/p>\n<h4><a id=\"user-content-note-from-developer\" class=\"anchor\" href=\"https:\/github.com\/elpsk\/Unity3D-PaskyRun#note-from-developer\"><\/a>Note from developer:<\/h4>\n<p>All images used in this game are founded online. Probably there is a copyrigth about it. I\u2019ve used only for dev.<\/p>\n<h3><a id=\"user-content-screenshots\" class=\"anchor\" href=\"https:\/github.com\/elpsk\/Unity3D-PaskyRun#screenshots\"><\/a>Screenshots<\/h3>\n<div id='gallery-3' class='gallery galleryid-59 gallery-columns-2 gallery-size-medium'><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2016\/06\/A-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"245\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2016\/06\/A-1.png?fit=300%2C245\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2016\/06\/A-1.png?w=752 752w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2016\/06\/A-1.png?resize=300%2C245 300w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2016\/06\/D.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"245\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2016\/06\/D.png?fit=300%2C245\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2016\/06\/D.png?w=752 752w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2016\/06\/D.png?resize=300%2C245 300w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2016\/06\/C.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"245\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2016\/06\/C.png?fit=300%2C245\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2016\/06\/C.png?w=752 752w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2016\/06\/C.png?resize=300%2C245 300w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2016\/06\/B.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"245\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2016\/06\/B.png?fit=300%2C245\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2016\/06\/B.png?w=752 752w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2016\/06\/B.png?resize=300%2C245 300w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2016\/06\/E.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"245\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2016\/06\/E.png?fit=300%2C245\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2016\/06\/E.png?w=752 752w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2016\/06\/E.png?resize=300%2C245 300w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\n\t\t\t<\/div><\/figure>\n\t\t<\/div>\n\n<h3><a id=\"user-content-requirements\" class=\"anchor\" href=\"https:\/github.com\/elpsk\/Unity3D-PaskyRun#requirements\"><\/a>Requirements<\/h3>\n<ul>\n<li>Unity 5+<\/li>\n<li>MonoDeveloper for C#<\/li>\n<li>TileMap editor for Mac<\/li>\n<\/ul>\n<h3><a id=\"user-content-platforms\" class=\"anchor\" href=\"https:\/github.com\/elpsk\/Unity3D-PaskyRun#platforms\"><\/a>Platforms:<\/h3>\n<blockquote><p>\u2013 iOS<br \/>\n\u2013 Android<br \/>\n\u2013 Mac<br \/>\n\u2013 Windows\n<\/p><\/blockquote>\n<h3><a id=\"user-content-todo\" class=\"anchor\" href=\"https:\/github.com\/elpsk\/Unity3D-PaskyRun#todo\"><\/a>TODO<\/h3>\n<ul>\n<li>Complete the game, it\u2019s only an \u201cHello World\u201d in Unity.<\/li>\n<\/ul>\n<p>Enjoy!<\/p>\n<p>Source code on git:\u00a0<a href=\"https:\/github.com\/elpsk\/Unity3D-PaskyRun\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/elpsk\/Unity3D-PaskyRun<\/a><\/p>\n<div id=\"authorbox\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>First \u201cHello World\u201d project just to learn Unity3D basics. A very ugly clone of\u00a0GravityGuy\u00a0for iOS, maded in\u00a0Unity3D\u00a0using\u00a0C#. Just to learn something new!<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[4,12,8],"tags":[237,233,25,21,22,23,20,24,39],"class_list":["post-59","post","type-post","status-publish","format-standard","hentry","category-c","category-macos","category-unity3d","tag-2d","tag-cs","tag-csv","tag-game","tag-gravity","tag-run","tag-scrolling","tag-sprite","tag-unity"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>[Unity3D] PaskyRun - while (true) {\u00a0}<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.albertopasca.it\/whiletrue\/paskyrun\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Unity3D] PaskyRun - while (true) {\u00a0}\" \/>\n<meta property=\"og:description\" content=\"First \u201cHello World\u201d project just to learn Unity3D basics. A very ugly clone of\u00a0GravityGuy\u00a0for iOS, maded in\u00a0Unity3D\u00a0using\u00a0C#. Just to learn something new!\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.albertopasca.it\/whiletrue\/paskyrun\/\" \/>\n<meta property=\"og:site_name\" content=\"while (true) {\u00a0}\" \/>\n<meta property=\"article:published_time\" content=\"2016-06-29T07:24:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-05-24T16:35:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2016\/06\/687474703a2f2f6265616e616c62792e6e65742f626c6f672f77702d636f6e74656e742f75706c6f6164732f323031332f30332f756e69747949636f6e2e706e67.png?resize=50%2C50\" \/>\n<meta name=\"author\" content=\"Alberto Pasca\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@lupasca\" \/>\n<meta name=\"twitter:site\" content=\"@lupasca\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alberto Pasca\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/paskyrun\\\/#article\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/paskyrun\\\/\"},\"author\":{\"name\":\"Alberto Pasca\",\"@id\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#\\\/schema\\\/person\\\/d3cf0df774eb4aac797f246a795e9fac\"},\"headline\":\"[Unity3D] PaskyRun\",\"datePublished\":\"2016-06-29T07:24:34+00:00\",\"dateModified\":\"2018-05-24T16:35:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/paskyrun\\\/\"},\"wordCount\":591,\"publisher\":{\"@id\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#\\\/schema\\\/person\\\/d3cf0df774eb4aac797f246a795e9fac\"},\"keywords\":[\"2d\",\"cs\",\"csv\",\"game\",\"gravity\",\"run\",\"scrolling\",\"sprite\",\"unity\"],\"articleSection\":[\"c#\",\"macOS\",\"unity3d\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/paskyrun\\\/\",\"url\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/paskyrun\\\/\",\"name\":\"[Unity3D] PaskyRun - while (true) {\u00a0}\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#website\"},\"datePublished\":\"2016-06-29T07:24:34+00:00\",\"dateModified\":\"2018-05-24T16:35:34+00:00\",\"breadcrumb\":{\"@id\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/paskyrun\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/paskyrun\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/paskyrun\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Unity3D] PaskyRun\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#website\",\"url\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/\",\"name\":\"while (true) {\u00a0}\",\"description\":\"notes from a developer, tutorials, how-to, ideas\",\"publisher\":{\"@id\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#\\\/schema\\\/person\\\/d3cf0df774eb4aac797f246a795e9fac\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#\\\/schema\\\/person\\\/d3cf0df774eb4aac797f246a795e9fac\",\"name\":\"Alberto Pasca\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g\",\"caption\":\"Alberto Pasca\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g\"},\"description\":\"Software engineer @ Pirelli &amp; C. S.p.A. with a strong passion for mobile \uf8ff development, security, and connected things.\",\"sameAs\":[\"https:\\\/\\\/www.albertopasca.it\",\"albertopasca\",\"https:\\\/\\\/x.com\\\/lupasca\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Unity3D] PaskyRun - while (true) {\u00a0}","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.albertopasca.it\/whiletrue\/paskyrun\/","og_locale":"en_US","og_type":"article","og_title":"[Unity3D] PaskyRun - while (true) {\u00a0}","og_description":"First \u201cHello World\u201d project just to learn Unity3D basics. A very ugly clone of\u00a0GravityGuy\u00a0for iOS, maded in\u00a0Unity3D\u00a0using\u00a0C#. Just to learn something new!","og_url":"http:\/\/www.albertopasca.it\/whiletrue\/paskyrun\/","og_site_name":"while (true) {\u00a0}","article_published_time":"2016-06-29T07:24:34+00:00","article_modified_time":"2018-05-24T16:35:34+00:00","og_image":[{"url":"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2016\/06\/687474703a2f2f6265616e616c62792e6e65742f626c6f672f77702d636f6e74656e742f75706c6f6164732f323031332f30332f756e69747949636f6e2e706e67.png?resize=50%2C50","type":"","width":"","height":""}],"author":"Alberto Pasca","twitter_card":"summary_large_image","twitter_creator":"@lupasca","twitter_site":"@lupasca","twitter_misc":{"Written by":"Alberto Pasca","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.albertopasca.it\/whiletrue\/paskyrun\/#article","isPartOf":{"@id":"http:\/\/www.albertopasca.it\/whiletrue\/paskyrun\/"},"author":{"name":"Alberto Pasca","@id":"http:\/\/www.albertopasca.it\/whiletrue\/#\/schema\/person\/d3cf0df774eb4aac797f246a795e9fac"},"headline":"[Unity3D] PaskyRun","datePublished":"2016-06-29T07:24:34+00:00","dateModified":"2018-05-24T16:35:34+00:00","mainEntityOfPage":{"@id":"http:\/\/www.albertopasca.it\/whiletrue\/paskyrun\/"},"wordCount":591,"publisher":{"@id":"http:\/\/www.albertopasca.it\/whiletrue\/#\/schema\/person\/d3cf0df774eb4aac797f246a795e9fac"},"keywords":["2d","cs","csv","game","gravity","run","scrolling","sprite","unity"],"articleSection":["c#","macOS","unity3d"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"http:\/\/www.albertopasca.it\/whiletrue\/paskyrun\/","url":"http:\/\/www.albertopasca.it\/whiletrue\/paskyrun\/","name":"[Unity3D] PaskyRun - while (true) {\u00a0}","isPartOf":{"@id":"http:\/\/www.albertopasca.it\/whiletrue\/#website"},"datePublished":"2016-06-29T07:24:34+00:00","dateModified":"2018-05-24T16:35:34+00:00","breadcrumb":{"@id":"http:\/\/www.albertopasca.it\/whiletrue\/paskyrun\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.albertopasca.it\/whiletrue\/paskyrun\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.albertopasca.it\/whiletrue\/paskyrun\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.albertopasca.it\/whiletrue\/"},{"@type":"ListItem","position":2,"name":"[Unity3D] PaskyRun"}]},{"@type":"WebSite","@id":"http:\/\/www.albertopasca.it\/whiletrue\/#website","url":"http:\/\/www.albertopasca.it\/whiletrue\/","name":"while (true) {\u00a0}","description":"notes from a developer, tutorials, how-to, ideas","publisher":{"@id":"http:\/\/www.albertopasca.it\/whiletrue\/#\/schema\/person\/d3cf0df774eb4aac797f246a795e9fac"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.albertopasca.it\/whiletrue\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"http:\/\/www.albertopasca.it\/whiletrue\/#\/schema\/person\/d3cf0df774eb4aac797f246a795e9fac","name":"Alberto Pasca","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g","caption":"Alberto Pasca"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g"},"description":"Software engineer @ Pirelli &amp; C. S.p.A. with a strong passion for mobile \uf8ff development, security, and connected things.","sameAs":["https:\/\/www.albertopasca.it","albertopasca","https:\/\/x.com\/lupasca"]}]}},"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/posts\/59","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/comments?post=59"}],"version-history":[{"count":10,"href":"http:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/posts\/59\/revisions"}],"predecessor-version":[{"id":689,"href":"http:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/posts\/59\/revisions\/689"}],"wp:attachment":[{"href":"http:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/media?parent=59"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/categories?post=59"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/tags?post=59"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}