{"id":29,"date":"2022-11-11T04:56:06","date_gmt":"2022-11-11T04:56:06","guid":{"rendered":"https:\/\/blogs.oregonstate.edu\/clarkj7\/?p=29"},"modified":"2022-11-11T04:56:06","modified_gmt":"2022-11-11T04:56:06","slug":"now-to-the-fun-part","status":"publish","type":"post","link":"https:\/\/blogs.oregonstate.edu\/clarkj7\/2022\/11\/11\/now-to-the-fun-part\/","title":{"rendered":"Now to the Fun Part"},"content":{"rendered":"\n<p>Coming up to the middle of the quarter, the goal was to have a functioning barebones multiplayer game. We had a solid foundation for the game on the front-end using the Phaser3 framework (spoiler alert: not so much, but more on that later) but we needed a server to facilitate multiplayer. That&#8217;s where my teammate (Thomas Headland) came through and built a FastAPI server.<\/p>\n\n\n\n<p>Now that we had this server to host the game a small hurdle presented itself in that the project spec requires the use of an authoritative server, we interpreted that as a server that validates all actions of each player. So for example if a player hits a key on their keyboard the client notifies the server that a key has been struck and the server then determines the appropriate response. The problem we had here was that our server is a python framework that is incapable of using many of the built-in features of Phaser3 such as physics and collision detection. This mean we had to recreate all of these in Python which kind of rendered most of initial front-end functionality useless.<\/p>\n\n\n\n<p>Now the good news is we have mostly been able to do this as we now have the following features built:<br>    Player connect\/disconnect<br>    Movement (acceleration\/deacceleration included)<br>    Projectiles<br>    Collision detection <br>    Health and score tracking<br>    Power-ups<\/p>\n\n\n\n<p>Meaning we not only have a basic functioning multiplayer game but the power-ups add that little extra to make it not completely barebones. Even better is I&#8217;m not sure how long the last two features listed above took to implement because I&#8217;ve hit my runner&#8217;s high and am having a blast seeing this game become what I hoped for in the beginning. <br><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Coming up to the middle of the quarter, the goal was to have a functioning barebones multiplayer game. We had a solid foundation for the game on the front-end using the Phaser3 framework (spoiler alert: not so much, but more on that later) but we needed a server to facilitate multiplayer. That&#8217;s where my teammate &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blogs.oregonstate.edu\/clarkj7\/2022\/11\/11\/now-to-the-fun-part\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Now to the Fun Part&#8221;<\/span><\/a><\/p>\n","protected":false},"author":12667,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-29","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.oregonstate.edu\/clarkj7\/wp-json\/wp\/v2\/posts\/29","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.oregonstate.edu\/clarkj7\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.oregonstate.edu\/clarkj7\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/clarkj7\/wp-json\/wp\/v2\/users\/12667"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/clarkj7\/wp-json\/wp\/v2\/comments?post=29"}],"version-history":[{"count":1,"href":"https:\/\/blogs.oregonstate.edu\/clarkj7\/wp-json\/wp\/v2\/posts\/29\/revisions"}],"predecessor-version":[{"id":30,"href":"https:\/\/blogs.oregonstate.edu\/clarkj7\/wp-json\/wp\/v2\/posts\/29\/revisions\/30"}],"wp:attachment":[{"href":"https:\/\/blogs.oregonstate.edu\/clarkj7\/wp-json\/wp\/v2\/media?parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/clarkj7\/wp-json\/wp\/v2\/categories?post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/clarkj7\/wp-json\/wp\/v2\/tags?post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}