<?xml version="1.0" encoding="UTF-8" standalone="yes"?><oembed><version><![CDATA[1.0]]></version><provider_name><![CDATA[Hanami Devlog]]></provider_name><provider_url><![CDATA[https://electromagneticproject.wordpress.com]]></provider_url><author_name><![CDATA[push start to begin]]></author_name><author_url><![CDATA[https://electromagneticproject.wordpress.com/author/pushstarttobegin/]]></author_url><title><![CDATA[Boss Battle]]></title><type><![CDATA[link]]></type><html><![CDATA[<p>I went back to the GDD this morning and tweaked little bits of information that have &#8220;evolved&#8221; during the development of <em>Hanami</em>. I took a look at the list of events that I wrote right at the beginning of this project, to try to work out how to conclude the game. So far, motivations for playing the game have been about progression, so I finally needed to realise a result of the player&#8217;s hard efforts!</p>
<p>The best way I could think to conclude the game was to have a <em>Boss Battle</em>, which was something I wasn&#8217;t originally planning but feel that the player would be let down if the game ended without one final challenge. So, the final door that is opened will lead to a &#8220;battle&#8221; with the <em>Zashiki Warashi</em> spirit, resulting in the spirit transforming back into her <em>Kokeshi doll</em> form. This essentially solves the &#8220;Hanami crisis&#8221;, and the player will be able to roam the world obstacle free in order to collect the remaining blossoms. There shouldn&#8217;t be many left (about 10 or so?), but only be collecting EVERY SINGLE LAST BLOSSOM will the game truly end.</p>
<p>The terms &#8220;Boss&#8221; and &#8220;Battle&#8221; are strong words, but it&#8217;s the best way to describe this glorified final obstacle! I haven&#8217;t introduced any new techniques to the battle, the <em>Zashiki Warashi</em> spirit can be de defeated in the same way as the Deceitful Blossom, by jumping on the enemy&#8217;s head. The main difference is that this enemy has a 5 health points and a projectile attack! The battle is really based on the sort of sub-boss battles you&#8217;d fight in old Super Mario games, where <a href="http://strategywiki.org/wiki/Super_Mario_Bros._3/World_1_Part_2" target="_blank">jumping three times on a Koopa&#8217;s head</a> will let you pass to the next stage. I&#8217;ll record a video to show what I mean if I get the time!</p>
<p><img src="https://i2.wp.com/cdn.wikimg.net/strategywiki/images/d/d3/SMB3-1-Fortress_3.png" class="aligncenter"><br />
EDIT: Here you are, Boss fight footage recorded exclusively recorded for this Blog:</p>
<span class="embed-youtube" style="text-align:center; display: block;"><iframe class='youtube-player' width='640' height='360' src='https://www.youtube.com/embed/Ns-DZvnLeLs?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en&#038;autohide=2&#038;wmode=transparent' allowfullscreen='true' style='border:0;' sandbox='allow-scripts allow-same-origin allow-popups allow-presentation'></iframe></span>
<p>For this stage, I&#8217;ve created three new game assets. The first is the <em>Za-chan</em> object, which controls everything that the enemy does. She works with three alarms, one which instigates &#8220;attack 1&#8221;, another which instigates &#8220;attack 2&#8221; and a final alarm which determines how long she is static for when hit. She has her own health counter, which is shown by my second new asset which aligns with original HUD:</p>
<p><a href="https://electromagneticproject.files.wordpress.com/2012/04/zachanhud.gif"><img loading="lazy" data-attachment-id="1456" data-permalink="https://electromagneticproject.wordpress.com/2012/04/03/boss-battle/zachanhud/" data-orig-file="https://electromagneticproject.files.wordpress.com/2012/04/zachanhud.gif" data-orig-size="270,130" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="ZachanHUD" data-image-description="" data-medium-file="https://electromagneticproject.files.wordpress.com/2012/04/zachanhud.gif?w=270" data-large-file="https://electromagneticproject.files.wordpress.com/2012/04/zachanhud.gif?w=270" src="https://electromagneticproject.files.wordpress.com/2012/04/zachanhud.gif?w=270&#038;h=130" alt="" title="ZachanHUD" width="270" height="130" class="aligncenter size-full wp-image-1456" /></a><br />
The third new asset I have (half) created is an object called <em>obj_attack</em>. At the moment, this object is represented by my Gunkan Sushi sprite, as I haven&#8217;t actually drawn anything to go here yet&#8230; So, when the enemy shoots her attack towards at player, she is currently shooting sushi. This has been fun to test, and I will almost be sad to see it changed! This has been the easiest to program, as it&#8217;s only job is to move steadily towards the player. If the player is hit, then the projectile is destroyed, to avoid being hit twice by the same attack.</p>
<p>This is by far the most complex AI controlled NPC character I&#8217;ve created so far. The character moves in relation to two objects, the player and a &#8220;block&#8221; object, which keeps the enemy within a certain space. Za-chan moves slightly slower than the player, so it is possible to catch up and jump on her head! If the player is quite far from the enemy, the enemy will move towards the player. If the player is very close to the enemy, the enemy will move away in evasion. As well as this, there is a certain distance from the player that Za-chan will simply stand still and spam the player with attacks, however this will only happen if the player is also standing completely still. This system works well enough to keep the enemy moving about, but I noticed that it was possible to defeat her too easily by trapping her in a corner. So, I&#8217;ve added a final line of code that states that the enemy must move towards the player if she gets too close to the &#8220;block&#8221; object, even if this means a collision with the player. Colliding with the enemy actually causes player damage, so this in itself acts as a sort of attack mechanism.</p>
<p><a href="https://electromagneticproject.files.wordpress.com/2012/04/zachan-movement.jpg"><img loading="lazy" data-attachment-id="1459" data-permalink="https://electromagneticproject.wordpress.com/2012/04/03/boss-battle/zachan-movement/" data-orig-file="https://electromagneticproject.files.wordpress.com/2012/04/zachan-movement.jpg" data-orig-size="904,336" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="Zachan Movement" data-image-description="" data-medium-file="https://electromagneticproject.files.wordpress.com/2012/04/zachan-movement.jpg?w=300" data-large-file="https://electromagneticproject.files.wordpress.com/2012/04/zachan-movement.jpg?w=904" src="https://electromagneticproject.files.wordpress.com/2012/04/zachan-movement.jpg?w=640&#038;h=237" alt="" title="Zachan Movement" width="640" height="237" class="aligncenter size-full wp-image-1459" srcset="https://electromagneticproject.files.wordpress.com/2012/04/zachan-movement.jpg?w=638&amp;h=237 638w, https://electromagneticproject.files.wordpress.com/2012/04/zachan-movement.jpg?w=150&amp;h=56 150w, https://electromagneticproject.files.wordpress.com/2012/04/zachan-movement.jpg?w=300&amp;h=112 300w, https://electromagneticproject.files.wordpress.com/2012/04/zachan-movement.jpg?w=768&amp;h=285 768w, https://electromagneticproject.files.wordpress.com/2012/04/zachan-movement.jpg 904w" sizes="(max-width: 640px) 100vw, 640px" /></a><br />
Za-chan&#8217;s two &#8220;attacks&#8221; are thrown when each of the first two alarms go off, and this code simply resets each one so the enemy constantly attacks at an even rate. Attack 1 throws one sushi, and attack two which is less regular throws 2 sushi!</p>
<p><a href="https://electromagneticproject.files.wordpress.com/2012/04/zachan-attack.jpg"><img loading="lazy" data-attachment-id="1461" data-permalink="https://electromagneticproject.wordpress.com/2012/04/03/boss-battle/zachan-attack/" data-orig-file="https://electromagneticproject.files.wordpress.com/2012/04/zachan-attack.jpg" data-orig-size="904,336" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="Zachan Attack" data-image-description="" data-medium-file="https://electromagneticproject.files.wordpress.com/2012/04/zachan-attack.jpg?w=300" data-large-file="https://electromagneticproject.files.wordpress.com/2012/04/zachan-attack.jpg?w=904" src="https://electromagneticproject.files.wordpress.com/2012/04/zachan-attack.jpg?w=640&#038;h=237" alt="" title="Zachan Attack" width="640" height="237" class="aligncenter size-full wp-image-1461" srcset="https://electromagneticproject.files.wordpress.com/2012/04/zachan-attack.jpg?w=638&amp;h=237 638w, https://electromagneticproject.files.wordpress.com/2012/04/zachan-attack.jpg?w=150&amp;h=56 150w, https://electromagneticproject.files.wordpress.com/2012/04/zachan-attack.jpg?w=300&amp;h=112 300w, https://electromagneticproject.files.wordpress.com/2012/04/zachan-attack.jpg?w=768&amp;h=285 768w, https://electromagneticproject.files.wordpress.com/2012/04/zachan-attack.jpg 904w" sizes="(max-width: 640px) 100vw, 640px" /></a><br />
I&#8217;ve used almost exactly the same code as the Deceitful Blossom to program what happens when Za-chan is jumped on. I&#8217;ve simply changed the squashed flower sprite to a new sprite, and ensured that during this time she can neither deal or receive damage, and she cannot move! I thought it would be appropriate to make a new sprite animation where she sits down and rubs her poorly head after having an full grown woman jump on top of it&#8230;</p>
<p><a href="https://electromagneticproject.files.wordpress.com/2012/04/zachan-hurt.gif"><img loading="lazy" data-attachment-id="1463" data-permalink="https://electromagneticproject.wordpress.com/2012/04/03/boss-battle/zachan-hurt/" data-orig-file="https://electromagneticproject.files.wordpress.com/2012/04/zachan-hurt.gif" data-orig-size="48,48" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="Zachan-Hurt" data-image-description="" data-medium-file="https://electromagneticproject.files.wordpress.com/2012/04/zachan-hurt.gif?w=48" data-large-file="https://electromagneticproject.files.wordpress.com/2012/04/zachan-hurt.gif?w=48" src="https://electromagneticproject.files.wordpress.com/2012/04/zachan-hurt.gif?w=48&#038;h=48" alt="" title="Zachan-Hurt" width="48" height="48" class="aligncenter size-full wp-image-1463" /></a><br />
Once she has been defeated, I&#8217;ve also created a new &#8220;transformation&#8221; animation which turns her from spirit form to <a href="http://www.thejapaneseshop.co.uk/categories/Japanese-Kokeshi-Dolls/Kokeshi-Dolls/?sort=priceasc&amp;gclid=CL6LupbWma8CFYpjfAodHCNO1w" target="_blank">Kokeshi</a> form. To do this, I created a cloud which passes over her to reveal the doll underneath. I&#8217;ve made this in the same style as my previous &#8220;auspicious clouds&#8221;, and drew out the animation first to make sure the swirls moved bout fluidly:</p>
<p><a href="https://electromagneticproject.files.wordpress.com/2012/04/transformation-test.gif"><img loading="lazy" data-attachment-id="1465" data-permalink="https://electromagneticproject.wordpress.com/2012/04/03/boss-battle/transformation-test/" data-orig-file="https://electromagneticproject.files.wordpress.com/2012/04/transformation-test.gif" data-orig-size="209,209" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="Transformation-Test" data-image-description="" data-medium-file="https://electromagneticproject.files.wordpress.com/2012/04/transformation-test.gif?w=209" data-large-file="https://electromagneticproject.files.wordpress.com/2012/04/transformation-test.gif?w=209" src="https://electromagneticproject.files.wordpress.com/2012/04/transformation-test.gif?w=209&#038;h=209" alt="" title="Transformation-Test" width="209" height="209" class="aligncenter size-full wp-image-1465" /></a><br />
And here is the final result:</p>
<p><a href="https://electromagneticproject.files.wordpress.com/2012/04/kokeshi-transformation.gif"><img loading="lazy" data-attachment-id="1467" data-permalink="https://electromagneticproject.wordpress.com/2012/04/03/boss-battle/kokeshi-transformation/" data-orig-file="https://electromagneticproject.files.wordpress.com/2012/04/kokeshi-transformation.gif" data-orig-size="95,115" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="Kokeshi-Transformation" data-image-description="" data-medium-file="https://electromagneticproject.files.wordpress.com/2012/04/kokeshi-transformation.gif?w=95" data-large-file="https://electromagneticproject.files.wordpress.com/2012/04/kokeshi-transformation.gif?w=95" src="https://electromagneticproject.files.wordpress.com/2012/04/kokeshi-transformation.gif?w=95&#038;h=115" alt="" title="Kokeshi-Transformation" width="95" height="115" class="aligncenter size-full wp-image-1467" /></a><br />
At the moment, I&#8217;ve set the battle out in the most final stage I have made, even though this is currently far from finished. The aim for the rest of this week is to finish the inside of the building and build a proper &#8220;Boss Stage&#8221; level for the battle to be held in. I&#8217;ve recorded a video of the battle so far, although I think I still need to make some tweaks to the rapidity and speed of attacks. I&#8217;ll probably have to get back onto SunVox too to create some epic Boss Battle music!</p>
<span class="embed-youtube" style="text-align:center; display: block;"><iframe class='youtube-player' width='640' height='360' src='https://www.youtube.com/embed/oP2SlKLF-dQ?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en&#038;autohide=2&#038;wmode=transparent' allowfullscreen='true' style='border:0;' sandbox='allow-scripts allow-same-origin allow-popups allow-presentation'></iframe></span>
]]></html><thumbnail_url><![CDATA[https://i2.wp.com/cdn.wikimg.net/strategywiki/images/d/d3/SMB3-1-Fortress_3.png?fit=440%2C330]]></thumbnail_url><thumbnail_width><![CDATA[440]]></thumbnail_width><thumbnail_height><![CDATA[290]]></thumbnail_height></oembed>