{"id":13621,"date":"2015-03-29T05:05:58","date_gmt":"2015-03-28T18:05:58","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=13621"},"modified":"2015-03-29T05:05:58","modified_gmt":"2015-03-28T18:05:58","slug":"html-canvas-perfect-t-game-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/html-canvas-perfect-t-game-primer-tutorial\/","title":{"rendered":"HTML Canvas Perfect T Game Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/perfectt.html\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"HTML Canvas Perfect T Game Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/perfectt.jpg\" title=\"HTML Canvas Perfect T Game Primer Tutorial\"    \/><\/a><p class=\"wp-caption-text\">HTML Canvas Perfect T Game Primer Tutorial<\/p><\/div>\n<p>The HTML <a target=_blank title='HTML Canvas element information from w3schools' href='http:\/\/www.w3schools.com\/tags\/ref_canvas.asp'>Canvas<\/a> element is great for mathematical games especially where you draw your own graphics based on interaction from the user.<\/p>\n<p>Today&#8217;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/perfectt.html\" title='Perfect T game'>game<\/a>&#8216;s geometrical theme tests whether the user can mimic the drawing of a diameter line across a circle &#8230; doesn&#8217;t sound hard, does it?  But are things as easy as that?<\/p>\n<p>Where you have the scenario in mathematics of a line touching a circle just the once, this is called a tangent.  Today we draw you a tangent point, and that represents the middle of the top of the &#8220;Perfect T&#8221; we want you to draw, where the two user defined points draw the &#8220;T&#8221; that has two lines of equal length, meeting at right angles and not overshooting or falling short of the mark.<\/p>\n<p>Here is the HTML programming source code for today&#8217;s tutorial you could call <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/perfectt.html_GETME\" title=\"perfectt.html\">perfectt.html<\/a><\/p>\n<p>There is functionality in this game to email a snapshot of the game and the PHP programming source code that helps facilitate this functionality for today&#8217;s tutorial you could call <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/perfectt.php_GETME\" title=\"perfectt.php\">perfectt.php<\/a><\/p>\n<p>See for yourself if it is as easy as it sounds &#8230; you start with 3000 points and see how many goes you can have surviving with a positive score <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/perfectt.html\" title='Perfect T game'>here<\/a>.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d13621' onclick='var dv=document.getElementById(\"d13621\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?tag=geometry\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d13621' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The HTML Canvas element is great for mathematical games especially where you draw your own graphics based on interaction from the user. Today&#8217;s game&#8216;s geometrical theme tests whether the user can mimic the drawing of a diameter line across a &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/html-canvas-perfect-t-game-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,14,15,37],"tags":[184,208,297,324,476,477,484,576,652,752,870,997,1241,1319],"class_list":["post-13621","post","type-post","status-publish","format-standard","hentry","category-elearning","category-event-driven-programming","category-games","category-tutorials","tag-canvas","tag-circle","tag-data-url","tag-diameter","tag-game","tag-games-2","tag-geometry","tag-html","tag-javascript","tag-mathematics","tag-onload","tag-programming","tag-tangent","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/13621"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=13621"}],"version-history":[{"count":0,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/13621\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=13621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=13621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=13621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}