{"id":218,"date":"2009-05-17T19:02:06","date_gmt":"2009-05-18T00:02:06","guid":{"rendered":"http:\/\/www.vertigogaming.net\/blog\/?p=218"},"modified":"2009-05-17T19:02:06","modified_gmt":"2009-05-18T00:02:06","slug":"my-idea-went-kablooey","status":"publish","type":"post","link":"https:\/\/www.vertigogaming.net\/blog\/?p=218","title":{"rendered":"My Idea Went Kablooey!"},"content":{"rendered":"<p>After posting about the different lighting effects in Kablooey, I said that a nighttime mode was impossible. But, after posting that blog entry I thought&#8230;well, why not give it a try?<br \/>\n<!--break--><br \/>\nWell, turns out I was kinda right.<br \/>\n<!--more--><br \/>\nThe first thing I wanted to do was create a new lighting system for the buildings. I didn&#8217;t want to retexture the buildings as all the windows were made to be shown during daytime settings, so I decided on having lights on top of the building. Taking a cue from Killzone 2, I had a pretty awesome system working: light trails that would follow the camera left to right. Here&#8217;s a good pic as an example:<br \/>\n<!--break--><br \/>\n<center><img decoding=\"async\" src=\"http:\/\/www.vertigogaming.net\/blog\/images\/thefailedlighting.png\" alt=\"null\" \/><\/center><br \/>\n<!--break--><br \/>\nThe camera in Kablooey is a fixed one that pans from left to right at a fixed speed, so it&#8217;s always the same. In the window labeled 1, the camera is moving quickly and a flare of the light in the window can be seen to the right, slightly tinted purple. In window 2, the camera is slowing down into position, as is the window flare. In window 3 the camera has stopped, and the two lights have merged together. It looks great in motion.<br \/>\n<!--break--><br \/>\nThe problem with this is that the building I&#8217;m showing is the only one that had a decent looking effect. All the other buildings looked very unnatural with the light overlay, perhaps because of the windows being directly next to each other unlike the building shown above. Not only that, but the layers, as I feared, weren&#8217;t going to work.<br \/>\n<!--break--><br \/>\nLet me explain the layer situation. In Game Maker, each object is assigned a number. This is the layer that it resides in. So, if the building is layer 100, and the street is layer 10 and the car is layer 1, then the building will be behind the road, and the road behind the car. The color lighting effects are at layer -1000, which means nothing should be over this layer. However, if I want the window lights to look right, I need them to not be affected by the color lighting, so the window lights are at -1500&#8230;which unfortunately puts them on top of the road and cars, and doesn&#8217;t look right.<br \/>\n<!--break--><br \/>\n<!--break--><\/p>\n<p align=\"center\"><a href=\"http:\/\/www.vertigogaming.net\/blog\/images\/kablooeycolor4night.png\" rel=\"lightbox[ONR2]\" title=\"Not really working for me.\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.vertigogaming.net\/blog\/images\/kablooeycolor4night.png\" border=\"0\" vspace=\"15\" width=\"412\" height=\"309\" \/><\/a><\/p>\n<p><!--break--><br \/>\nThe nighttime scene isn&#8217;t really that beneficial other than looking neat anyways, as I planned the game to be set during the day in the first place. So, no nighttime play in Kablooey&#8230;but hey, not all ideas work out during the game makin&#8217; process. C&#8217;est la vie.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After posting about the different lighting effects in Kablooey, I said that a nighttime mode was impossible. But, after posting that blog entry I thought&#8230;well, why not give it a try? Well, turns out I was kinda right.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[1,23],"tags":[],"class_list":["post-218","post","type-post","status-publish","format-standard","hentry","category-game-maker","category-kablooey"],"_links":{"self":[{"href":"https:\/\/www.vertigogaming.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vertigogaming.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vertigogaming.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vertigogaming.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vertigogaming.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=218"}],"version-history":[{"count":4,"href":"https:\/\/www.vertigogaming.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/218\/revisions"}],"predecessor-version":[{"id":222,"href":"https:\/\/www.vertigogaming.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/218\/revisions\/222"}],"wp:attachment":[{"href":"https:\/\/www.vertigogaming.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vertigogaming.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vertigogaming.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}