{"id":615,"date":"2013-11-16T15:18:28","date_gmt":"2013-11-16T14:18:28","guid":{"rendered":"http:\/\/labalec.fr\/erwan\/?p=615"},"modified":"2014-03-01T12:09:54","modified_gmt":"2014-03-01T11:09:54","slug":"vb-net-and-xna-vrooom-v1-car-racing-game","status":"publish","type":"post","link":"https:\/\/labalec.fr\/erwan\/?p=615","title":{"rendered":"VB.Net and XNA : Vrooom V1 (car racing game)"},"content":{"rendered":"<p>Using all previous articles, lets make a (almost complete) car racing game which we will call Vroom V1.<\/p>\n<p>This is a mono screen game (v2 will be multiple screens).<br \/>\nThis is a one player game (v2 will multi players).<br \/>\nGamepad is not yet supported (v2 will).<br \/>\nA score.txt file is generated at the end of each track.<\/p>\n<p>V1 and V2 have 8 tracks (v2 may have more).<\/p>\n<p>A v3 in the future may support network games, extra items on the track, choose controls, choose car colors, choose difficulty, etc.<\/p>\n<p>Controls are easy :<br \/>\n-F1 to start the track.<br \/>\n-up\/down to speed up\/speed down.<br \/>\n-left\/right to turn left\/right.<br \/>\n-hitting the side tracks will slow down the speed.<\/p>\n<p>Working but not satisfied : could not use the pixel detection (since car is rotating) and therefore went to color detection.<\/p>\n<p>A next article will review pixel collision with rotation shapes.<\/p>\n<p>Any feedback, suggestions, ideas, remarks welcome \ud83d\ude42<\/p>\n<p>Binary here : <a href=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/11\/vrooom.zip\">vrooom<\/a><br \/>\nIf you want the source code, please contact me and I&rsquo;ll be happy to share.<br \/>\nRemember that you have to install <a href=\"http:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=20914\" target=\"_blank\">xna runtime<\/a>.<\/p>\n<p>EDIT : code source here :<a href=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/11\/vroom_v1_src.zip\">vroom_v1_src<\/a><\/p>\n<p>EDIT : Look at <a href=\"https:\/\/labalec.fr\/erwan\/?p=694\" title=\"Vroom V3\" target=\"_blank\"><\/a> which is an improved version.<\/p>\n<p>Thanks to my son Ewen who was my beta tester (and graphist) on this one \ud83d\ude42<br \/>\n<div style=\"width: 695px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-615-1\" width=\"695\" height=\"434\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/11\/vroomv1.mp4?_=1\" \/><a href=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/11\/vroomv1.mp4\">https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/11\/vroomv1.mp4<\/a><\/video><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using all previous articles, lets make a (almost complete) car racing game which we will call Vroom V1. This is a mono screen game (v2 will be multiple screens). This is a one player game (v2 will multi players). Gamepad is not yet supported (v2 will). A score.txt file is generated at the end of <a href='https:\/\/labalec.fr\/erwan\/?p=615' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,35],"tags":[],"class_list":["post-615","post","type-post","status-publish","format-standard","hentry","category-dotnet","category-xna","category-34-id","category-35-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/615","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=615"}],"version-history":[{"count":5,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/615\/revisions"}],"predecessor-version":[{"id":882,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/615\/revisions\/882"}],"wp:attachment":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}