{"id":1395,"date":"2017-02-06T01:18:30","date_gmt":"2017-02-06T09:18:30","guid":{"rendered":"http:\/\/haymanquarterly.com\/blogs\/?p=1395"},"modified":"2017-02-06T01:44:13","modified_gmt":"2017-02-06T09:44:13","slug":"smalltown-grocery-devlog-3","status":"publish","type":"post","link":"http:\/\/haymanquarterly.com\/blogs\/blog\/2017\/02\/06\/smalltown-grocery-devlog-3\/","title":{"rendered":"Smalltown Grocery &#8211; DevLog 3"},"content":{"rendered":"<p>I must admit, the name &#8220;Smalltown Grocery&#8221; is growing on me. \u00a0I may leave it as that, as mundane as it sounds. \u00a0lol<\/p>\n<p>Anyway, I have some sad news to announce. \u00a0If you&#8217;ve been following along, you may have noticed it&#8217;s been a while since my last post. \u00a0In fact, it&#8217;s been 15 days. \u00a0(Half a month! \u00a0Holy cow!) \u00a0That&#8217;s what entering a game jam does to your productivity and workflow on a personal project. \u00a0It brings it to a screeching halt. \u00a0Let that be a warning to you, if you are a fellow aspiring game developer. \u00a0Game jams are fun, but they have a way of barging in and taking over.<\/p>\n<p>Luckily, The day after I wrote my last entry (January 22nd), I did a little bit of work on Smalltown Grocery. \u00a0Here, let me make a new gif&#8230;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/haymanquarterly.com\/haymangames\/SmalltownGrocery\/promo\/customer_shopping_proto_01.gif\" alt=\"\" width=\"640\" height=\"464\" \/><\/p>\n<p>I created shelf items! \u00a0Yay! \u00a0I revamped the boring-looking art a little bit, too. \u00a0I&#8217;ll explain the shelves in a minute, but first I&#8217;ll tell you what happened.<\/p>\n<p>I went looking around the world wide web for some inspiration. \u00a0At the end of the last DevLog, I noted that I needed to get to work on developing this\u00a0game&#8217;s design more thoroughly, but I was hitting a block. \u00a0I couldn&#8217;t think. \u00a0But I knew there were other shopping games out there, so I went looking. \u00a0I found the typical lemonade-stand-type of game and <a href=\"https:\/\/www.youtube.com\/watch?v=n2AO9RBUcd0\">diner-dash-type of game<\/a>, and even a kid&#8217;s math game, but those aren&#8217;t really what I want to make. \u00a0I suppose the diner-dash-type comes the closest, but it lacks the depth I&#8217;m looking to create. \u00a0(I went looking for links just now, but I can&#8217;t seem to find again the things I found two weeks ago.)<\/p>\n<p>But then I found <a href=\"https:\/\/youtu.be\/UCJbpfDPwUE\">&#8220;Supermarket Tycoon Prototype&#8221;<\/a> and struck gold! \u00a0This was very close to what I was envisioning.<\/p>\n<div class=\"embed-container\"><iframe loading=\"lazy\" title=\"Supermarket Tycoon Prototype\" width=\"750\" height=\"422\" src=\"https:\/\/www.youtube.com\/embed\/UCJbpfDPwUE?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe><\/div>\n<p>After watching the video, and reading the info and comments, I found <a href=\"http:\/\/steamcommunity.com\/sharedfiles\/filedetails\/?id=130375270\">the game on steam<\/a>. \u00a0It took a bit of doing since I&#8217;m not as familiar with Steam as I probably should be, but I was able to find it and actually play it. \u00a0I have to say,\u00a0Toby Kellaway (the game&#8217;s author) shows brilliance in this game, in my opinion. \u00a0It was inspiring. \u00a0Kellaway&#8217;s use of color and light-hearted character sprites heavily\u00a0influenced the change in my art&#8217;s direction. \u00a0I don&#8217;t know if I&#8217;ll keep the character this way (since I&#8217;d like to keep the overhead view constant), but it sure has an appealing look to me. \u00a0I am definitely going to be using\u00a0the color coding of shelf categories.<\/p>\n<p>Speaking of shelves&#8230;<\/p>\n<p>If you notice in the gif above, I was able to give each shelf 30 items. \u00a0(The game speed and movement speed was sped up for testing\/debugging purposes.) \u00a0These items are arranged in 10 rows of 3. \u00a0 The shopper chooses a shelf from which to get an item (randomly, at this time), takes one item from a randomly chosen row, then chooses the next shelf he will visit. \u00a0Each shelf has its own 3D\u00a0array.<\/p>\n<p>item[row, stat]<\/p>\n<p>row:<br \/>\nrow number = (0-9)<br \/>\nstat:<br \/>\n0 = quantity (0-3)<br \/>\n1 = face position (0-2)<\/p>\n<p>So when the shopper takes an item, it subtracts 1 from the quantity in that row, and adds 1 to the face position (product facing). \u00a0This way, later in development of the game, I can have the employee come along to face the shelves and\/or fill it with more items by easily manipulating this code. \u00a0The drawing of the shelves and items use these arrays to position everything. \u00a0I surprised myself when I got it all working.<\/p>\n<p>But then the Jam happened. \u00a0Now I&#8217;m stuck trying to finish <em>that<\/em> game. \u00a0Read all about it in the next blog post! \u00a0\ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I must admit, the name &#8220;Smalltown Grocery&#8221; is growing on me. \u00a0I may leave it as that, as mundane as it sounds. \u00a0lol Anyway, I have some sad news to announce. \u00a0If you&#8217;ve been following along, you may have noticed it&#8217;s been a while since my last post. \u00a0In fact, it&#8217;s been 15 days. \u00a0(Half &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/haymanquarterly.com\/blogs\/blog\/2017\/02\/06\/smalltown-grocery-devlog-3\/\">Continue reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27,20,64],"tags":[71,66,81,65],"_links":{"self":[{"href":"http:\/\/haymanquarterly.com\/blogs\/wp-json\/wp\/v2\/posts\/1395"}],"collection":[{"href":"http:\/\/haymanquarterly.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/haymanquarterly.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/haymanquarterly.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/haymanquarterly.com\/blogs\/wp-json\/wp\/v2\/comments?post=1395"}],"version-history":[{"count":7,"href":"http:\/\/haymanquarterly.com\/blogs\/wp-json\/wp\/v2\/posts\/1395\/revisions"}],"predecessor-version":[{"id":1402,"href":"http:\/\/haymanquarterly.com\/blogs\/wp-json\/wp\/v2\/posts\/1395\/revisions\/1402"}],"wp:attachment":[{"href":"http:\/\/haymanquarterly.com\/blogs\/wp-json\/wp\/v2\/media?parent=1395"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/haymanquarterly.com\/blogs\/wp-json\/wp\/v2\/categories?post=1395"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/haymanquarterly.com\/blogs\/wp-json\/wp\/v2\/tags?post=1395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}