Day 11: Research Continues

by wacker on Thu 13 June 2013 // Posted in legacy // under

We did a lot more research into Open Badges, School Servers, and the XO journal. We cracked a lot more unanswer questions about the journal and how Lemonade Stand can write and talk to the journal.

On the side, I worked on implementing Lemonade Stand into the new version of the XO. It may have taken me almost all day, but it was a huge success! With Lemonade Stand working on the XO, we are now able to start hacking away at the game and see how it looks on the XO rather than my laptop. I also figured out how to implement and use new fonts on the XO because I had an issue where the fonts would not display on the XO but would on my laptop.

Solution for getting Lemonade Stand on the version of sugar: It turns out that in the activity.info file, service_name is deprecated and should now use bundle_id instead.

Code: bundle_id = org.laptop.community.lemonade

Solution for getting new fonts in Lemonade Stand: When the game starts, it takes command arguments from the activity.py file. In the command line arguments, this is where you add the font name and sizes to be initialized wihtin the game.

Code: argv=['/bin/sh','-c', 'python %s/LemonadeStand.py --width=1200 --height=875 --font=36 --shopFont=52 --shopNumFont=72' % bundle_path]