Tuesday, July 28, 2009

Meeps color

I've been playing around with the color of the meeps. It is now no longer random, but I have 27 different colors. I may still change them up, but I htink the coloring looks better than it did before. I also added a screen to show the colors off a bit better. In this screenshot each color is shown twice, 3 rows for 27 colors, all 6 rows are the full color palette twice. Worked out nicely, if unintentionally.



I also tried adding a few different eyes to the meeps. I didn't get quite where I wanted and I doubt these new eyes will make the cut. I'll have to get a real artist involved! The colors definitely add an improvement, I'm not convinced on the eyes. The eyes are bugging me. =)

Saturday, July 11, 2009

Screenshots

It's a bit longer than I thought, but here are some screenshots.





I have a few ideas, but most are polarizing into the educational category or the adventure category. Let me know what you'd like to see regarding meeps!

Tuesday, July 7, 2009

cocos2d

I started making my meep project to learn about cocos2d. I have to say, once you get the initial environment set up it's really a straightforward process. One thing I've not done much of is graphics programming. Other than my previously released iPhone app Geopher Lite, I've done little with graphics other than sample code here and there. And the compass rotation on Geopher Lite wasn't exactly rocket science.

Enter cocos2d. I've known what a sprite is for a while now, but collision detection and making things interact was like magic to me until recently. I ditched college (wisely or not, who knows at this point) to go to work full time as a software developer and support a family. Which means that I missed out on a bunch of math that many computer science guys take for granted. For example, it's more effort than I would expect to try to understand transforms on coordinates and bezier paths. (Which, by the way, are really cool, I'd recommend the apple documentation on the subject if you're curious)

Cocos2d is relatively straightforward. I'm no expert, but the process seems simple: you have a director that is set up initially which takes care of delegating events each frame of your program. I believe the default is 60fps. The director is directing what's called a scene, and the scene has a bunch of nodes which represent objects and graphics. It makes sprite based manipulation fairly simple.

So... what's the point of all this? Good question. Mostly it's documenting my experience with cocos2d. But it's also a recommendation to others who may be looking to write a fairly simple game for the iPhone.

It took me about 6 hours to do a bunch of learning about cocos2d, read some tutorials, copy an example tutorial and then re-do the example tutorial as much out of my head as I could. Including a lunch break. From that point on I was adding images and features measured in minutes rather than hours. I've spent probably about 20 hours total in less than a week on Meep and already my kids are loving it. This seems like a long time until I realize that I'm learning a new API and doing graphics and pseudo-animation for the first time. Probably 5 hours of that is messing around with sound and image generation, not actual coding. So far I've got a project that does the following:

- A main menu screen with a splashy background and a few menu options. (Well, okay, they all just put up snarky alerts except for the new game one, but still -- those took about 15 minutes to complete)
- A main game screen with a static background
- A group of meeps, currently 7, when starting out.
- meep attributes include random meep colors via the tint command, random placement onscreen, random movement from place to place onscreen, sounds when you touch a meep, and the ability to drag a given meep around the screen. Oh, and they have a sub-layer which give them eyes.

Not bad for a dat and a few evenings worth of work. My 5 year old wants to have them waddle. My 7 year old wants them to sing. They want angry and scared meeps. Meeps that have character. And it's likely I will start there. I have a number of possible apps I could do with the meeps, but for starters I'll be working on a kids version. It will help me continue to get up to speed, my kids will love it (they supplied the sounds for the meeps), and I think it will be worthwhile to have such a product on the app store.

I'll see what I can do to post some pictures of the meeps in the next few days.

Sunday, July 5, 2009

Meep!

The meeps are coming for your iPhone... be ready!