{"id":617,"date":"2015-04-05T13:06:18","date_gmt":"2015-04-05T17:06:18","guid":{"rendered":"http:\/\/www.bootdiskrevolution.com\/?p=617"},"modified":"2015-08-23T14:27:26","modified_gmt":"2015-08-23T18:27:26","slug":"particles","status":"publish","type":"post","link":"https:\/\/www.bootdiskrevolution.com\/NEW_BLOG\/particles\/","title":{"rendered":"Particles!"},"content":{"rendered":"<p>One of the things I worked on this week was particle effects! You probably know what they are, but in case you don&#8217;t &#8212; particles are tiny images, used purely for aesthetics. I have them all in their own sprite sheet, just like tilesets or animations or anything else.<\/p>\n<figure id=\"attachment_621\" aria-describedby=\"caption-attachment-621\" style=\"width: 291px\" class=\"wp-caption aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"wp-image-621 size-full\" src=\"https:\/\/i0.wp.com\/www.bootdiskrevolution.com\/NEW_BLOG\/wp-content\/uploads\/2015\/04\/particles.jpg?resize=291%2C353\" alt=\"\" width=\"291\" height=\"353\" srcset=\"https:\/\/i0.wp.com\/www.bootdiskrevolution.com\/NEW_BLOG\/wp-content\/uploads\/2015\/04\/particles.jpg?w=291&amp;ssl=1 291w, https:\/\/i0.wp.com\/www.bootdiskrevolution.com\/NEW_BLOG\/wp-content\/uploads\/2015\/04\/particles.jpg?resize=247%2C300&amp;ssl=1 247w\" sizes=\"auto, (max-width: 291px) 100vw, 291px\" \/><figcaption id=\"caption-attachment-621\" class=\"wp-caption-text\">Behold, particles.<\/figcaption><\/figure>\n<p>Particles don&#8217;t need collision detection or AI or any other fancy code, so you can have a whole bunch of them on-screen without much of a performance cost! Mine have a few basic properties like weight, transparency, scale, rotation and animation speed&#8230; and that&#8217;s about it!<\/p>\n<p>Anyways, they can add a lot of life and polish to any game. There&#8217;s already a bunch in Bleed 2, like bullet casings and air-dodge trails. Here are some more I put in this week:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-620 aligncenter\" src=\"https:\/\/i0.wp.com\/www.bootdiskrevolution.com\/NEW_BLOG\/wp-content\/uploads\/2015\/04\/katanaAVI.gif?resize=480%2C220\" alt=\"\" width=\"480\" height=\"220\" \/>Bam! Hitting enemies with the katana now plays a slicing animation along with some other effects, and dying Invaders lose their guns. These are all particles!<br \/>\n<!--more--><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-618 aligncenter\" src=\"https:\/\/i0.wp.com\/www.bootdiskrevolution.com\/NEW_BLOG\/wp-content\/uploads\/2015\/04\/dustAVI.gif?resize=280%2C220\" alt=\"\" width=\"280\" height=\"220\" \/>Some much more subtle particle work. Little dust clouds and kicked up when Wryn runs and jumps.<br \/>\n<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-619 aligncenter\" src=\"https:\/\/i0.wp.com\/www.bootdiskrevolution.com\/NEW_BLOG\/wp-content\/uploads\/2015\/04\/invaderAVI.gif?resize=480%2C220\" alt=\"\" width=\"480\" height=\"220\" \/>I added effects for when enemies fire bullets, and when bullets are reflected. Many enemies use the same command to fire their bullets, so I only need to put the particle instructions in that one command to make them appear for all bullets &#8212; it makes me feel semi-clever. You may notice the firing and reflecting particles are the same, but bullet reflecting layers more particles on top.<br \/>\n<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-622 aligncenter\" src=\"https:\/\/i0.wp.com\/www.bootdiskrevolution.com\/NEW_BLOG\/wp-content\/uploads\/2015\/04\/bossAVI.gif?resize=480%2C270\" alt=\"\" width=\"480\" height=\"270\" \/>And finally, some particles for bosses! You can see the bullet-firing particles re-size to match the bullet they belong to, and there&#8217;s also some big particles for when bosses perform big reflectable attacks, as well as for when Wryn parries them. Additionally, the Blast Jumper&#8217;s cannons now glow before firing, which makes it a lot more fair. And you can see the re-coloured particles in action, too!!<\/p>\n<p>Now, you might be saying: those are nice, but are they really vital for the demo? Well&#8230; no. They&#8217;re going to make it a lot more polished looking, but what I really should be focusing on is menus and audio, because right now the game doesn&#8217;t have any. So, next week I&#8217;ll stop slacking on that and get some damn audio in there!<\/p>\n<p>&#8230;not that you&#8217;ll be able to see it in gifs &#8212; but still!<\/p>\n<p>Oh, and happy Easter, for those who celebrate!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the things I worked on this week was particle effects! You probably know what they are, but in case you don&#8217;t &#8212; particles are tiny images, used purely for aesthetics. I have them all in their own sprite sheet, just like tilesets or animations or anything else. Particles don&#8217;t need collision detection or <a class=\"read-more\" href=\"https:\/\/www.bootdiskrevolution.com\/NEW_BLOG\/particles\/\">[&hellip;]<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6],"tags":[],"class_list":["post-617","post","type-post","status-publish","format-standard","hentry","category-bleed-2"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.bootdiskrevolution.com\/NEW_BLOG\/wp-json\/wp\/v2\/posts\/617","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bootdiskrevolution.com\/NEW_BLOG\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bootdiskrevolution.com\/NEW_BLOG\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bootdiskrevolution.com\/NEW_BLOG\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bootdiskrevolution.com\/NEW_BLOG\/wp-json\/wp\/v2\/comments?post=617"}],"version-history":[{"count":8,"href":"https:\/\/www.bootdiskrevolution.com\/NEW_BLOG\/wp-json\/wp\/v2\/posts\/617\/revisions"}],"predecessor-version":[{"id":630,"href":"https:\/\/www.bootdiskrevolution.com\/NEW_BLOG\/wp-json\/wp\/v2\/posts\/617\/revisions\/630"}],"wp:attachment":[{"href":"https:\/\/www.bootdiskrevolution.com\/NEW_BLOG\/wp-json\/wp\/v2\/media?parent=617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bootdiskrevolution.com\/NEW_BLOG\/wp-json\/wp\/v2\/categories?post=617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bootdiskrevolution.com\/NEW_BLOG\/wp-json\/wp\/v2\/tags?post=617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}