Well I figured that I should make an entry, but I’m actually going to limit myself down to 2 hours to see if I can achieve what I’m setting out to do —
So Yoshi’s Cookie is a game where you have to line up cookies of the same style to get them taken away (the collection part) and I often thought it would make a great mobile game.
Of course I will not be making any graphics for this, but will use “boring” colored squares to represent the different cookies - Red, Yellow, Blue, Orange, Purple, Green
I want to focus on the main mechanic of being able to move the cookies horizontally and vertically and then lock into their respective places. One of the tricky parts of this is to have the cookie wrap to the other side of the board, which I haven’t fully “figured out” yet, but I have some ideas. Then to have the cookies removed when appropriate with new cookies being added into the puzzle. If I recall correctly the cookies in a horizontal line get removed to the right and new cookies get added to the top, and vertical lines get removed down and new cookies get added to the right.
I’ve got menu bar countdown fired up and a skeleton file to work with, and I’m off!
Here’s what I have at 0:21 in –
I ran into quite the minor bug when moving the cookies, but at 1:37 in I have it all working with swipe touches, and I’m checking for valid lines now successfully. I also figured out how I wanted to have the cookies wrap around, and it wasn’t as bad as I originally thought. The next thing I need to crank out is the line removal and repopulation of the cookies.
At 1:44 I have the cookies sliding out of the grid when they “complete a line”, but not shifting and repopulating yet.
At 1:57 and 320 lines of code I have the cookies repopulating but not shifting. I do continually check for lines though which does work! You’ll see this in action at the end of the video.
http://www.youtube.com/watch?v=eSVh3Mrg4Bk&feature=youtube_gdata
I will get around to posting the code later, but this is where I’m at with my own deadline of 2 hours. If I feel up to it, I will try to enhance this with the rest of the 2 hours I have left tomorrow. I will however make a copy of this code at the 2 hours mark.