{"id":326,"date":"2023-01-15T19:58:32","date_gmt":"2023-01-15T19:58:32","guid":{"rendered":"https:\/\/trewest.dev\/blog\/?p=326"},"modified":"2023-12-05T09:34:33","modified_gmt":"2023-12-05T09:34:33","slug":"project-golf-demo","status":"publish","type":"post","link":"https:\/\/trewest.dev\/blog\/index.php\/2023\/01\/15\/project-golf-demo\/","title":{"rendered":"Project: Golf Demo"},"content":{"rendered":"<div class=\"wp-post-series-box series-golf-demo wp-post-series-box--expandable\">\n\t\t\t<input id=\"collapsible-series-golf-demo69f34bec112dd\" class=\"wp-post-series-box__toggle_checkbox\" type=\"checkbox\">\n\t\n\t<label\n\t\tclass=\"wp-post-series-box__label\"\n\t\t\t\t\tfor=\"collapsible-series-golf-demo69f34bec112dd\"\n\t\t\ttabindex=\"0\"\n\t\t\t\t>\n\t\t<p class=\"wp-post-series-box__name wp-post-series-name\">\n\t\t\tThis is post 5 of 5 in the series <em>&ldquo;Golf Demo&rdquo;<\/em>\t\t<\/p>\n\t\t\t<\/label>\n\n\t\t\t<div class=\"wp-post-series-box__posts\">\n\t\t\t<ol>\n\t\t\t\t\t\t\t\t\t<li><a href=\"https:\/\/trewest.dev\/blog\/index.php\/2022\/10\/27\/golf-demo-part-one\/\">Golf Demo &#8211; Part One<\/a><\/li>\n\t\t\t\t\t\t\t\t\t<li><a href=\"https:\/\/trewest.dev\/blog\/index.php\/2022\/11\/12\/golf-demo-scoreboard\/\">Golf Demo &#8211; Scoreboard<\/a><\/li>\n\t\t\t\t\t\t\t\t\t<li><a href=\"https:\/\/trewest.dev\/blog\/index.php\/2022\/11\/15\/golf-demo-colorful-names\/\">Golf Demo &#8211; Colorful Names<\/a><\/li>\n\t\t\t\t\t\t\t\t\t<li><a href=\"https:\/\/trewest.dev\/blog\/index.php\/2022\/12\/09\/golf-demo-finale\/\">Golf Demo &#8211; Finale<\/a><\/li>\n\t\t\t\t\t\t\t\t\t<li><span class=\"wp-post-series-box__current\">Project: Golf Demo<\/span><\/li>\n\t\t\t\t\t\t\t<\/ol>\n\t\t<\/div>\n\t<\/div>\n\n<p>Status:<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\"> Complete<\/mark><br>Type: Videogame<br>Technology: C#, Unity <\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/trewest.dev\/projects\/Golf_final.zip\">Download (.zip Archive)<\/a><\/div>\n\n\n\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"trewest.dev\">Return to Portfolio<\/a><\/div>\n<\/div>\n\n\n\n<p>Golf Demo was a demo game that I had made to try and learn some networking code for games.  Since the only real networking I had coded previously was communication between webscripts and databases I didn&#8217;t really know how this would go.  Thankfully it worked!<\/p>\n\n\n\n<div class=\"alignnormal\"><div id=\"metaslider-id-328\" style=\"width: 100%;\" class=\"ml-slider-3-108-0 metaslider metaslider-flex metaslider-328 ml-slider has-dots-nav ms-theme-default\" role=\"region\" aria-label=\"Golf Demo\" data-height=\"300\" data-width=\"700\">\n    <div id=\"metaslider_container_328\">\n        <div id=\"metaslider_328\">\n            <ul class='slides'>\n                <li style=\"display: block; width: 100%;\" class=\"slide-329 ms-image \" aria-roledescription=\"slide\" data-date=\"2023-01-15 18:44:29\" data-filename=\"image-1-700x300.png\" data-slide-type=\"image\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/trewest.dev\/blog\/wp-content\/uploads\/2022\/11\/image-1-700x300.png\" height=\"300\" width=\"700\" alt=\"\" class=\"slider-328 slide-329 msDefaultImage\" title=\"image-1\" \/><\/li>\n                <li style=\"display: none; width: 100%;\" class=\"slide-330 ms-image \" aria-roledescription=\"slide\" data-date=\"2023-01-15 18:44:29\" data-filename=\"image-519x222.png\" data-slide-type=\"image\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/trewest.dev\/blog\/wp-content\/uploads\/2022\/11\/image-519x222.png\" height=\"300\" width=\"700\" alt=\"\" class=\"slider-328 slide-330 msDefaultImage\" title=\"image\" \/><\/li>\n                <li style=\"display: none; width: 100%;\" class=\"slide-331 ms-image \" aria-roledescription=\"slide\" data-date=\"2023-01-15 18:44:29\" data-filename=\"image-4-700x300.png\" data-slide-type=\"image\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/trewest.dev\/blog\/wp-content\/uploads\/2022\/10\/image-4-700x300.png\" height=\"300\" width=\"700\" alt=\"\" class=\"slider-328 slide-331 msDefaultImage\" title=\"image-4\" \/><\/li>\n                <li style=\"display: none; width: 100%;\" class=\"slide-332 ms-image \" aria-roledescription=\"slide\" data-date=\"2023-01-15 18:44:30\" data-filename=\"image-3-700x300.png\" data-slide-type=\"image\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/trewest.dev\/blog\/wp-content\/uploads\/2022\/10\/image-3-700x300.png\" height=\"300\" width=\"700\" alt=\"\" class=\"slider-328 slide-332 msDefaultImage\" title=\"image-3\" \/><\/li>\n                <li style=\"display: none; width: 100%;\" class=\"slide-333 ms-image \" aria-roledescription=\"slide\" data-date=\"2023-01-15 18:44:30\" data-filename=\"image-700x300.png\" data-slide-type=\"image\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/trewest.dev\/blog\/wp-content\/uploads\/2022\/10\/image-700x300.png\" height=\"300\" width=\"700\" alt=\"\" class=\"slider-328 slide-333 msDefaultImage\" title=\"image\" \/><\/li>\n                <li style=\"display: none; width: 100%;\" class=\"slide-334 ms-image \" aria-roledescription=\"slide\" data-date=\"2023-01-15 18:44:30\" data-filename=\"image-1-700x300.png\" data-slide-type=\"image\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/trewest.dev\/blog\/wp-content\/uploads\/2022\/10\/image-1-700x300.png\" height=\"300\" width=\"700\" alt=\"\" class=\"slider-328 slide-334 msDefaultImage\" title=\"image-1\" \/><\/li>\n                <li style=\"display: none; width: 100%;\" class=\"slide-335 ms-image \" aria-roledescription=\"slide\" data-date=\"2023-01-15 18:45:13\" data-filename=\"image-700x300.png\" data-slide-type=\"image\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/trewest.dev\/blog\/wp-content\/uploads\/2022\/12\/image-700x300.png\" height=\"300\" width=\"700\" alt=\"\" class=\"slider-328 slide-335 msDefaultImage\" title=\"image\" \/><\/li>\n            <\/ul>\n        <\/div>\n        \n    <\/div>\n<\/div><\/div>\n\n\n\n<p>I&#8217;ve done a lot of writing about the development process as I was making it already so I&#8217;ll keep this short.  I ran into some problems with Unity&#8217;s separate documentation for their new networking API and didn&#8217;t want to download more stuff like their example projects to figure out what was going on, but eventually I got through everything.  The most frustration was probably caused by my own laziness though, since I was developing this in the project the networking package comes in, which you&#8217;re supposed to manually separate the files from.  However it didn&#8217;t stop me from making a little simple game for my own enjoyment.   <br>The game itself is simple, it&#8217;s a little minigolf game where you can play golf, but mini.  The course is short but made annoying to get the real minigolf experience.  I made proper out of bounds handling and some other things as well, but the focus was making a working networked game and I ended up making it.  You can host games, play single player, and of course join someone else hosting, all via IP address since I wasn&#8217;t going to make a server browser or lobby system for a test run.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Golf Demo was a demo game that I had made to try and learn some networking code for games.  Since the only real networking I had coded previously was communication between webscripts and databases I didn&#8217;t really know how this would go.  Thankfully it worked!<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43,4,5,23,8,52],"tags":[16,12,13,14,21,15,7],"post_series":[68,53],"class_list":["post-326","post","type-post","status-publish","format-standard","hentry","category-c","category-coding","category-gamedev","category-golf-demo","category-project","category-videogame","tag-c","tag-code","tag-development","tag-game-dev","tag-golf","tag-project","tag-unity","post_series-golf-demo","post_series-project-overviews"],"_links":{"self":[{"href":"https:\/\/trewest.dev\/blog\/index.php\/wp-json\/wp\/v2\/posts\/326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/trewest.dev\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trewest.dev\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trewest.dev\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/trewest.dev\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=326"}],"version-history":[{"count":1,"href":"https:\/\/trewest.dev\/blog\/index.php\/wp-json\/wp\/v2\/posts\/326\/revisions"}],"predecessor-version":[{"id":336,"href":"https:\/\/trewest.dev\/blog\/index.php\/wp-json\/wp\/v2\/posts\/326\/revisions\/336"}],"wp:attachment":[{"href":"https:\/\/trewest.dev\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trewest.dev\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trewest.dev\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=326"},{"taxonomy":"post_series","embeddable":true,"href":"https:\/\/trewest.dev\/blog\/index.php\/wp-json\/wp\/v2\/post_series?post=326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}