{"id":238,"date":"2009-12-15T11:27:00","date_gmt":"2009-12-15T09:27:00","guid":{"rendered":"http:\/\/www.thelins.se\/johan\/blog\/2009\/12\/238\/"},"modified":"2009-12-15T11:27:00","modified_gmt":"2009-12-15T09:27:00","slug":"238","status":"publish","type":"post","link":"https:\/\/www.thelins.se\/johan\/blog\/2009\/12\/238\/","title":{"rendered":""},"content":{"rendered":"<p>><a onblur=\"try {parent.deselectBloggerImageGracefully();} catch(e) {}\" href=\"http:\/\/www.thelins.se\/johan\/uploaded_images\/office-view-702932.jpg\"><img decoding=\"async\" style=\"float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 121px; height: 400px;\" src=\"http:\/\/www.thelins.se\/johan\/uploaded_images\/office-view-702813.jpg\" border=\"0\" alt=\"\" \/><\/a>The wether forcast mentioned snow on Wednesday. We had some yesterday and today it is really snowing away. Looks like I&#8217;ll have to buy a sledge for Lisa! Will be great fun.<\/p>\n<div><\/div>\n<div>Right now I&#8217;m sitting, writing about Qt&#8217;s new animation classes released in 4.6. Looking at the snow, writing about this, makes me wonder if it wouldn&#8217;t be a good idea to implement animations that delete themselves and their items when the item leaves a given bounding rectangle.<\/div>\n<div><\/div>\n<div>Why? Then you can define a bounding rectangle, e.g. the screen, and create snow flakes with randomized animations and just let them drop.<\/div>\n<div><\/div>\n<div>I remember doing something like that back in the STOS\/AMOS days. You created a sprite, defined an animation pattern and then forgot about it (as I recall). This was great for the 2D shooters of the time with aliens attacking in predefined patterns. Not 100% sure how the surviving aliens (yes, you have to take bad players into account, including me) where handled. The ones you hit could be taken care of in a collision detection handing function called from the inner loop&#8230; well, nostalgia might make me look at this in a forgiving light.<\/div>\n<div><\/div>\n<div>Anyway, the snow is falling. There will be more tomorrow. It will probably be cold all the way to Christmas. Looks like we&#8217;re in for a white Christmas.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>>The wether forcast mentioned snow on Wednesday. We had some yesterday and today it is really snowing away. Looks like I&#8217;ll have to buy a sledge for Lisa! Will be great fun. Right now I&#8217;m sitting, writing about Qt&#8217;s new animation classes released in 4.6. Looking at the snow, writing about this, makes me wonder &hellip; <a href=\"https:\/\/www.thelins.se\/johan\/blog\/2009\/12\/238\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\"><\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-238","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/posts\/238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/comments?post=238"}],"version-history":[{"count":0,"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/posts\/238\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/media?parent=238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/categories?post=238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/tags?post=238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}