{"id":479,"date":"2018-06-11T20:07:51","date_gmt":"2018-06-11T19:07:51","guid":{"rendered":"http:\/\/pusling.com\/blog\/?p=479"},"modified":"2018-06-11T20:07:51","modified_gmt":"2018-06-11T19:07:51","slug":"kirigaming-kolorfill","status":"publish","type":"post","link":"https:\/\/pusling.com\/blog\/?p=479","title":{"rendered":"Kirigaming &#8211; Kolorfill"},"content":{"rendered":"<p>Last time, I was doing a <a href=\"http:\/\/pusling.com\/blog\/?p=473\">recipe manager<\/a>. This time I&#8217;ve been doing a game with javascript and QtQuick, and for the first time dipping my feet into the <a href=\"https:\/\/api.kde.org\/frameworks\/kirigami\/html\/index.html\">Kirigami<\/a> framework.<\/p>\n<p>I&#8217;ve named the game Kolorfill, because it is about filling colors. It looks like this:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/iUCpI9I.png\" alt=\"Kolorfill\" \/><\/p>\n<p>The end goal is to make the board into one color in as few steps as possible. The way to do it is &#8220;Paint bucket&#8221;-tool from top left corner with various colors.<\/p>\n<p>But enough talk. Let&#8217;s see some code:<br \/>\n<a href=\"https:\/\/cgit.kde.org\/scratch\/sune\/kolorfill.git\/\">https:\/\/cgit.kde.org\/scratch\/sune\/kolorfill.git\/<\/a><\/p>\n<p>And of course, there is some QML tests for the curious.<br \/>\nA major todo item is saving the high score and getting that to work. Patches welcome. Or pointer to what QML components that can help me with that.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last time, I was doing a recipe manager. This time I&#8217;ve been doing a game with javascript and QtQuick, and for the first time dipping my feet into the Kirigami framework. I&#8217;ve named the game Kolorfill, because it is about filling colors. It looks like this: The end goal is to make the board into [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,3,4,10,11],"tags":[],"class_list":["post-479","post","type-post","status-publish","format-standard","hentry","category-debian","category-english","category-kde","category-pocket-projects","category-qt"],"_links":{"self":[{"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/479","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=479"}],"version-history":[{"count":1,"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/479\/revisions"}],"predecessor-version":[{"id":480,"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/479\/revisions\/480"}],"wp:attachment":[{"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=479"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}