Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/core/components/api/spam/Provider.php on line 149

Deprecated: Creation of dynamic property ET_Core_HTTPInterface::$expects_json is deprecated in /home1/henryoat/public_html/wp-content/themes/Divi/core/components/HTTPInterface.php on line 305

Deprecated: Creation of dynamic property ET_Core_HTTPInterface::$owner is deprecated in /home1/henryoat/public_html/wp-content/themes/Divi/core/components/HTTPInterface.php on line 307

Deprecated: Creation of dynamic property ET_Core_API_Spam_ReCaptcha::$data_utils is deprecated in /home1/henryoat/public_html/wp-content/themes/Divi/core/components/api/Service.php on line 244

Deprecated: Creation of dynamic property ET_Core_API_Spam_ReCaptcha::$API_KEY_REQUIRED is deprecated in /home1/henryoat/public_html/wp-content/themes/Divi/core/components/api/Service.php on line 247

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/framework.php on line 779

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/framework.php on line 780

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/autoload.php on line 85

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/feature/dynamic-assets/class-dynamic-assets.php on line 1135

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/feature/dynamic-content.php on line 116

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 5611

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 10195

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 10257

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 10279

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 10299

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 10326

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 10358

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 10387

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 10426

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 10553

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 10575

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 12678

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 12679

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 21292

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 21292

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 21296

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 21296

Warning: Cannot modify header information - headers already sent by (output started at /home1/henryoat/public_html/wp-content/themes/Divi/core/components/api/spam/Provider.php:149) in /home1/henryoat/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/henryoat/public_html/wp-content/themes/Divi/core/components/api/spam/Provider.php:149) in /home1/henryoat/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/henryoat/public_html/wp-content/themes/Divi/core/components/api/spam/Provider.php:149) in /home1/henryoat/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/henryoat/public_html/wp-content/themes/Divi/core/components/api/spam/Provider.php:149) in /home1/henryoat/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/henryoat/public_html/wp-content/themes/Divi/core/components/api/spam/Provider.php:149) in /home1/henryoat/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/henryoat/public_html/wp-content/themes/Divi/core/components/api/spam/Provider.php:149) in /home1/henryoat/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Deprecated: Creation of dynamic property ET_Builder_Module_Field_BoxShadow::$template is deprecated in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/BoxShadow.php on line 17

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/main-structure-elements.php on line 2648

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/main-structure-elements.php on line 2649

Deprecated: Creation of dynamic property ET_Core_PageResource::$location is deprecated in /home1/henryoat/public_html/wp-content/themes/Divi/core/components/PageResource.php on line 306

Deprecated: Creation of dynamic property ET_Core_PageResource::$location is deprecated in /home1/henryoat/public_html/wp-content/themes/Divi/core/components/PageResource.php on line 306

Deprecated: Creation of dynamic property ET_Builder_Section::$text_shadow is deprecated in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 1303

Deprecated: Creation of dynamic property ET_Builder_Section::$margin_padding is deprecated in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 1303

Deprecated: Creation of dynamic property ET_Builder_Section::$_additional_fields_options is deprecated in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 1303

Deprecated: Creation of dynamic property ET_Builder_Row::$child_item_text is deprecated in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 1303

Deprecated: Creation of dynamic property ET_Builder_Row::$text_shadow is deprecated in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 1303

Deprecated: Creation of dynamic property ET_Builder_Row::$margin_padding is deprecated in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 1303

Deprecated: Creation of dynamic property ET_Builder_Row::$_additional_fields_options is deprecated in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 1303

Deprecated: Creation of dynamic property ET_Builder_Row_Inner::$child_item_text is deprecated in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 1303

Deprecated: Creation of dynamic property ET_Builder_Row_Inner::$text_shadow is deprecated in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 1303

Deprecated: Creation of dynamic property ET_Builder_Row_Inner::$margin_padding is deprecated in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 1303

Deprecated: Creation of dynamic property ET_Builder_Row_Inner::$_additional_fields_options is deprecated in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 1303

Deprecated: Creation of dynamic property ET_Builder_Column::$additional_shortcode_slugs is deprecated in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 1303

Deprecated: Creation of dynamic property ET_Builder_Column::$advanced_setting_title_text is deprecated in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 1303

Deprecated: Creation of dynamic property ET_Builder_Column::$text_shadow is deprecated in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 1303

Deprecated: Creation of dynamic property ET_Builder_Column::$margin_padding is deprecated in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 1303

Deprecated: Creation of dynamic property ET_Builder_Column::$_additional_fields_options is deprecated in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 1303

Deprecated: Creation of dynamic property WPForms\Integrations\Divi\WPFormsSelector::$text_shadow is deprecated in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 1303

Deprecated: Creation of dynamic property WPForms\Integrations\Divi\WPFormsSelector::$margin_padding is deprecated in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 1303

Deprecated: Creation of dynamic property WPForms\Integrations\Divi\WPFormsSelector::$_additional_fields_options is deprecated in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 1303

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/Transform.php on line 79

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/Transform.php on line 79

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/Transform.php on line 98

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/Transform.php on line 98

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/Transform.php on line 117

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/Transform.php on line 117

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/Transform.php on line 117

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/Transform.php on line 136

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/Transform.php on line 136

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/Transform.php on line 157

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/Transform.php on line 157

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/Transform.php on line 199

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/Transform.php on line 200

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/Transform.php on line 201

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/Transform.php on line 203

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/Transform.php on line 204

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/Transform.php on line 205

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/Transform.php on line 206

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/Transform.php on line 207

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/Transform.php on line 364

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/Transform.php on line 364

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/Transform.php on line 565

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/Position.php on line 198

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/Position.php on line 199

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/Position.php on line 200

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/Position.php on line 499

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home1/henryoat/public_html/wp-content/themes/Divi/includes/builder/module/field/Position.php on line 582

Warning: Cannot modify header information - headers already sent by (output started at /home1/henryoat/public_html/wp-content/themes/Divi/core/components/api/spam/Provider.php:149) in /home1/henryoat/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/henryoat/public_html/wp-content/themes/Divi/core/components/api/spam/Provider.php:149) in /home1/henryoat/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"id":174,"date":"2022-03-15T03:19:03","date_gmt":"2022-03-15T03:19:03","guid":{"rendered":"http:\/\/henryoatts.com\/?page_id=174"},"modified":"2022-04-25T00:24:07","modified_gmt":"2022-04-25T00:24:07","slug":"%ef%bf%bcbuild-your-page-with-bluehost-website-builderdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor","status":"publish","type":"page","link":"https:\/\/henryoatts.com\/work%ef%bf%bcdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/%ef%bf%bcbuild-your-page-with-bluehost-website-builderdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/","title":{"rendered":"The Gun Game"},"content":{"rendered":"

[et_pb_section fb_built=”1″ fullwidth=”on” _builder_version=”4.14.7″ _module_preset=”default” global_colors_info=”{}”][et_pb_fullwidth_image src=”http:\/\/henryoatts.com\/wp-content\/uploads\/2022\/03\/Behance-main.jpg” title_text=”Behance-main” _builder_version=”4.14.7″ _module_preset=”default” hover_enabled=”0″ global_colors_info=”{}” sticky_enabled=”0″][\/et_pb_fullwidth_image][\/et_pb_section][et_pb_section fb_built=”1″ _builder_version=”4.14.7″ _module_preset=”default” global_colors_info=”{}”][et_pb_row _builder_version=”4.14.7″ _module_preset=”default” global_colors_info=”{}”][et_pb_column type=”4_4″ _builder_version=”4.14.7″ _module_preset=”default” global_colors_info=”{}”][et_pb_video src=”https:\/\/vimeo.com\/692612883″ _builder_version=”4.14.7″ _module_preset=”default” global_colors_info=”{}”][\/et_pb_video][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=”4.14.7″ _module_preset=”default” global_colors_info=”{}”][et_pb_column type=”4_4″ _builder_version=”4.14.7″ _module_preset=”default” global_colors_info=”{}”][et_pb_button button_url=”https:\/\/editor.p5js.org\/henryoatts\/full\/5ZbwS_R82″ button_text=”Play The Gun Game Here!” button_alignment=”center” _builder_version=”4.14.7″ _module_preset=”default” hover_enabled=”0″ global_colors_info=”{}” custom_button=”on” button_text_color=”#ccf381″ button_bg_color=”#4831d4″ button_bg_enable_color=”on” button_border_width=”0px” sticky_enabled=”0″ background_layout=”dark” module_class=”nimbold” button_text_size=”23px” url_new_window=”on”][\/et_pb_button][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=”4.14.7″ _module_preset=”default”][et_pb_column _builder_version=”4.14.7″ _module_preset=”default” type=”4_4″][et_pb_divider _builder_version=”4.14.7″ _module_preset=”default” color=”#4831d4″ divider_weight=”3px” hover_enabled=”0″ sticky_enabled=”0″][\/et_pb_divider][\/et_pb_column][\/et_pb_row][et_pb_row column_structure=”1_2,1_2″ _builder_version=”4.14.7″ _module_preset=”default” global_colors_info=”{}”][et_pb_column type=”1_2″ _builder_version=”4.14.7″ _module_preset=”default” global_colors_info=”{}”][et_pb_text _builder_version=”4.14.7″ _module_preset=”default” header_font=”|700|||||||” header_font_size=”55px” hover_enabled=”0″ global_colors_info=”{}” module_class=”nimbold” header_text_color=”#4831d4″ sticky_enabled=”0″]<\/p>\n

The Gun Game and how to play<\/h1>\n

[\/et_pb_text][et_pb_text _builder_version=”4.14.7″ _module_preset=”default” hover_enabled=”0″ global_colors_info=”{}” text_text_color=”#000000″ module_class=”nimbreg” sticky_enabled=”0″]<\/p>\n

For this project I chose to take a pantomime game I used to play when I was a kid and bring it to life through code and animation.<\/p>\n

The Gun Game plays much like rock paper scissors but with some key differences. Each round you and a friend will decide simultaneously between three choices, reload, block, or shoot. Reload will give you one bullet. Shooting will remove one bullet, and blocking will protect you from an incomming bullet.<\/p>\n

If both players shoot both lose a bullet and you move on to the next round. Both players will start with zero bullets and have a maximum of six bullets.\u00a0 To win the game you must shoot your opponent while their reloading.<\/p>\n

 <\/p>\n

[\/et_pb_text][et_pb_text _builder_version=”4.14.7″ _module_preset=”default” text_line_height=”1em” hover_enabled=”0″ global_colors_info=”{}” module_class=”nimbold” text_text_color=”#4831d4″ sticky_enabled=”0″]<\/p>\n

Student Work<\/strong><\/p>\n

Temple University<\/strong><\/p>\n

Instructor: Jenny Kowalski<\/strong><\/p>\n

Tools: JavaScript, HTML, CSS, Photoshop<\/strong><\/p>\n

[\/et_pb_text][\/et_pb_column][et_pb_column type=”1_2″ _builder_version=”4.14.7″ _module_preset=”default” global_colors_info=”{}”][et_pb_image src=”http:\/\/henryoatts.com\/wp-content\/uploads\/2022\/03\/cowboygif.gif” title_text=”cowboygif” align=”right” _builder_version=”4.14.7″ _module_preset=”default” width=”74.3%” custom_padding=”|||0px||” global_colors_info=”{}”][\/et_pb_image][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=”4.14.7″ _module_preset=”default”][et_pb_column _builder_version=”4.14.7″ _module_preset=”default” type=”4_4″][et_pb_divider _builder_version=”4.14.7″ _module_preset=”default” color=”#4831d4″ divider_weight=”3px” hover_enabled=”0″ sticky_enabled=”0″][\/et_pb_divider][\/et_pb_column][\/et_pb_row][et_pb_row column_structure=”3_5,2_5″ _builder_version=”4.14.7″ _module_preset=”default” global_colors_info=”{}”][et_pb_column type=”3_5″ _builder_version=”4.14.7″ _module_preset=”default” global_colors_info=”{}”][et_pb_image src=”http:\/\/henryoatts.com\/wp-content\/uploads\/2022\/03\/gungame-storyboard.jpg” title_text=”gungame-storyboard” _builder_version=”4.14.7″ _module_preset=”default” hover_enabled=”0″ global_colors_info=”{}” show_in_lightbox=”on” sticky_enabled=”0″][\/et_pb_image][\/et_pb_column][et_pb_column type=”2_5″ _builder_version=”4.14.7″ _module_preset=”default” global_colors_info=”{}”][et_pb_text _builder_version=”4.14.7″ _module_preset=”default” global_colors_info=”{}”]<\/p>\n

The wild west theme was inspired by the way me and my friends would act when we played the game. We would hold our hands on our hip and draw our finger guns as if we were real cowboys shooting pistols. For that reason it only made sense to make the playable character a cowboy. The opponent is depicted as a robot because they are an NPC and their moves are entirely dictated by the code being run in the computer.<\/p>\n

The aesthetics and animations were driven by an 8-bit style reminiscent of old arcade games. Theres a reason why this style was so common at one point and its because of how easy it is to code.<\/p>\n

[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=”4.14.7″ _module_preset=”default”][et_pb_column _builder_version=”4.14.7″ _module_preset=”default” type=”4_4″][et_pb_divider _builder_version=”4.14.7″ _module_preset=”default” color=”#4831d4″ divider_weight=”3px” hover_enabled=”0″ sticky_enabled=”0″][\/et_pb_divider][\/et_pb_column][\/et_pb_row][et_pb_row column_structure=”1_2,1_2″ _builder_version=”4.14.7″ _module_preset=”default” global_colors_info=”{}”][et_pb_column type=”1_2″ _builder_version=”4.14.7″ _module_preset=”default” global_colors_info=”{}”][et_pb_text _builder_version=”4.14.7″ _module_preset=”default” header_font=”|700|||||||” header_font_size=”55px” hover_enabled=”0″ global_colors_info=”{}” module_class=”nimbold” header_text_color=”#4831d4″ sticky_enabled=”0″]<\/p>\n

The Code<\/h1>\n

[\/et_pb_text][et_pb_text _builder_version=”4.14.7″ _module_preset=”default” global_colors_info=”{}”]<\/p>\n

This was my first time coding in JavaScript so it is fair to say initially I didint know where to start. The functionality of the game was important to me because I really wanted it to feel like you were actually playing the game.<\/p>\n

So to start out I made a chart that mapped out every input and possible outcome. That way I could reference the chart as I was trying different ideas and laying out the foundation making sure that every moving part was accounted for.<\/p>\n

After the trial and error phase I found what worked best for processing the inputs and having them effect the outcome of the game were boolean variables. Booleans are a binary variable that basically tell if something is true or false when the code runs. The boolean would then be followed by a command which are known as If Then Statements. A simplified example of this would be, if (the cowboy chooses shoot) then (play the shoot animation).\u00a0<\/p>\n

This process had a few extra steps for the robot because I had to have the script generate its inputs. I did that by using a random number generator that would determine its choice and then using more booleans to assign rules for specific situations so the robot would behave logically. This allowed for the opponent in the game to be unpredictable at times but also stop the AI from making decisions that wouldn’t make any sense, like shooting when they have no ammo.\u00a0<\/p>\n

 <\/p>\n

[\/et_pb_text][et_pb_button button_url=”https:\/\/editor.p5js.org\/henryoatts\/sketches\/5ZbwS_R82″ button_text=”See Code Here” button_alignment=”center” _builder_version=”4.14.7″ _module_preset=”default” hover_enabled=”0″ global_colors_info=”{}” custom_button=”on” button_text_color=”#ccf381″ button_bg_color=”#4831d4″ button_bg_enable_color=”on” button_border_width=”0px” sticky_enabled=”0″ background_layout=”dark” module_class=”nimbold” button_text_size=”23px” url_new_window=”on”][\/et_pb_button][\/et_pb_column][et_pb_column type=”1_2″ _builder_version=”4.14.7″ _module_preset=”default” global_colors_info=”{}”][et_pb_image src=”http:\/\/henryoatts.com\/wp-content\/uploads\/2022\/03\/GG-codechart.jpg” title_text=”GG-codechart” force_fullwidth=”on” _builder_version=”4.14.7″ _module_preset=”default” hover_enabled=”0″ global_colors_info=”{}” sticky_enabled=”0″ show_in_lightbox=”on”][\/et_pb_image][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"

The Gun Game and how to playFor this project I chose to take a pantomime game I used to play when I was a kid and bring it to life through code and animation. The Gun Game plays much like rock paper scissors but with some key differences. Each round you and a friend will […]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":46,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"nf_dc_page":"","_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","om_disable_all_campaigns":false,"WB4WB4WP_MODE":"","WB4WP_PAGE_SCRIPTS":"","WB4WP_PAGE_STYLES":"","WB4WP_PAGE_FONTS":"","WB4WP_PAGE_HEADER":"","WB4WP_PAGE_FOOTER":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"yoast_head":"\nThe Gun Game - Welcome<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/henryoatts.com\/work\ufffcdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/\ufffcbuild-your-page-with-bluehost-website-builderdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The Gun Game - Welcome\" \/>\n<meta property=\"og:description\" content=\"The Gun Game and how to playFor this project I chose to take a pantomime game I used to play when I was a kid and bring it to life through code and animation. The Gun Game plays much like rock paper scissors but with some key differences. Each round you and a friend will […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/henryoatts.com\/work\ufffcdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/\ufffcbuild-your-page-with-bluehost-website-builderdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/\" \/>\n<meta property=\"og:site_name\" content=\"Welcome\" \/>\n<meta property=\"article:modified_time\" content=\"2022-04-25T00:24:07+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/henryoatts.com\/work%ef%bf%bcdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/%ef%bf%bcbuild-your-page-with-bluehost-website-builderdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/\",\"url\":\"https:\/\/henryoatts.com\/work%ef%bf%bcdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/%ef%bf%bcbuild-your-page-with-bluehost-website-builderdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/\",\"name\":\"The Gun Game - Welcome\",\"isPartOf\":{\"@id\":\"https:\/\/henryoatts.com\/#website\"},\"datePublished\":\"2022-03-15T03:19:03+00:00\",\"dateModified\":\"2022-04-25T00:24:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/henryoatts.com\/work%ef%bf%bcdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/%ef%bf%bcbuild-your-page-with-bluehost-website-builderdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/henryoatts.com\/work%ef%bf%bcdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/%ef%bf%bcbuild-your-page-with-bluehost-website-builderdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/henryoatts.com\/work%ef%bf%bcdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/%ef%bf%bcbuild-your-page-with-bluehost-website-builderdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/henryoatts.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Work\",\"item\":\"https:\/\/henryoatts.com\/work%ef%bf%bcdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"The Gun Game\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/henryoatts.com\/#website\",\"url\":\"https:\/\/henryoatts.com\/\",\"name\":\"Welcome\",\"description\":\"Graphic Design Portfolio\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/henryoatts.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The Gun Game - Welcome","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":"https:\/\/henryoatts.com\/work\ufffcdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/\ufffcbuild-your-page-with-bluehost-website-builderdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/","og_locale":"en_US","og_type":"article","og_title":"The Gun Game - Welcome","og_description":"The Gun Game and how to playFor this project I chose to take a pantomime game I used to play when I was a kid and bring it to life through code and animation. The Gun Game plays much like rock paper scissors but with some key differences. Each round you and a friend will […]","og_url":"https:\/\/henryoatts.com\/work\ufffcdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/\ufffcbuild-your-page-with-bluehost-website-builderdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/","og_site_name":"Welcome","article_modified_time":"2022-04-25T00:24:07+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/henryoatts.com\/work%ef%bf%bcdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/%ef%bf%bcbuild-your-page-with-bluehost-website-builderdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/","url":"https:\/\/henryoatts.com\/work%ef%bf%bcdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/%ef%bf%bcbuild-your-page-with-bluehost-website-builderdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/","name":"The Gun Game - Welcome","isPartOf":{"@id":"https:\/\/henryoatts.com\/#website"},"datePublished":"2022-03-15T03:19:03+00:00","dateModified":"2022-04-25T00:24:07+00:00","breadcrumb":{"@id":"https:\/\/henryoatts.com\/work%ef%bf%bcdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/%ef%bf%bcbuild-your-page-with-bluehost-website-builderdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/henryoatts.com\/work%ef%bf%bcdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/%ef%bf%bcbuild-your-page-with-bluehost-website-builderdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/henryoatts.com\/work%ef%bf%bcdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/%ef%bf%bcbuild-your-page-with-bluehost-website-builderdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/henryoatts.com\/"},{"@type":"ListItem","position":2,"name":"Work","item":"https:\/\/henryoatts.com\/work%ef%bf%bcdesign-effortlessly-with-optimized-and-pre-styled-drag-and-drop-sections-use-bluehost-website-builderuse-default-editor\/"},{"@type":"ListItem","position":3,"name":"The Gun Game"}]},{"@type":"WebSite","@id":"https:\/\/henryoatts.com\/#website","url":"https:\/\/henryoatts.com\/","name":"Welcome","description":"Graphic Design Portfolio","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/henryoatts.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"}]}},"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/henryoatts.com\/wp-json\/wp\/v2\/pages\/174"}],"collection":[{"href":"https:\/\/henryoatts.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/henryoatts.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/henryoatts.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/henryoatts.com\/wp-json\/wp\/v2\/comments?post=174"}],"version-history":[{"count":5,"href":"https:\/\/henryoatts.com\/wp-json\/wp\/v2\/pages\/174\/revisions"}],"predecessor-version":[{"id":243361,"href":"https:\/\/henryoatts.com\/wp-json\/wp\/v2\/pages\/174\/revisions\/243361"}],"up":[{"embeddable":true,"href":"https:\/\/henryoatts.com\/wp-json\/wp\/v2\/pages\/46"}],"wp:attachment":[{"href":"https:\/\/henryoatts.com\/wp-json\/wp\/v2\/media?parent=174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}