Thursday, March 31, 2011

Moving along

The A-Team is slightly behind, but it shouldn't be difficult to catch up. We still need to figure out how to add the Help and Quit commands to the bottom of the UI.

Tuesday, March 29, 2011

POSSCON

The POSSCON event was interesting. I was using my phone to connect to WiFi and then a speaker talked about not trusting public WiFi so I disconnected.

I was surprised to hear from John Diamond that currently only 5 developers work on the Alien Arena game. The game looks very polished and comparable to some commercial games. He explained how he makes money with the game; they package other companies' programs with the game, and also offer to include in-game billboards. He showed the evolution of the appearance of the alien character over the years. I learned that the emergence of Direct X and OpenGL was largely responsible for the advancement of gaming technology. I enjoyed the John Diamond session, but I probably would have enjoyed the Friday workshop more. I would have liked to dig into the code and have a hands on experience.

UPDATE:
After hearing from the people that went Friday, I'm glad that I didn't go to the workshop. Supposedly the workshops were not going as planned due to technical difficulties.

I thought that Walter Bender was a great speaker. He showed us an image of a board of shapes that could be hanging on a wall. He mentioned that kids try to reproduce the shapes on their own paper; I was surprised to see a swastika on it! I wouldn't want kids to be going around drawing swastikas. I was also surprised to see him suddenly and purposefully drop a sugar laptop. After he was finished speaking, all the sugar groups rushed him. He showed us an activity that he made during his flight; I thought it was amazing he could put something together so quickly. I hope I get to be that proficient someday. He also showed us different sensors to plug into the sugar laptop. One of them sensed temperature and another sensed moisture if I remember correctly. He was being rushed to leave the room due to it being time for the next speaker; it was nice of him to stick around and chat with us.

One speaker was from Digium. The Hawkes Learning Systems interns quickly realized that this is the company that creates the Switchvox phone system software we use at work. I had no idea that it was based on an open source framework; the framework is called Asterisk. He showed us the scripting language for the phone system which was unlike any other language I've seen before.

The 3-d printer was amazing to see up close; it was "printing" android phone holders.

I will be on the lookout for other events like this one and will try to attend one here and there.

Tuesday, March 22, 2011

Added help text toggle

I added the help information toggle in the Lemonade Stand game; so now you can hit the 'h' key to
turn the help text at the top on and off.

To make this change (within LemonadeGUI.py):

I added self.need_help == True

Line 31 added "K_h"

Line 168 changed "if main.day == 1:" to "if self.need_help == True"

I added this in LemonadeGui.py (lines 288-292):

elif event.key == K_h:
if self.need_help == True:
self.need_help = False
else:
self.need_help = True

I'm working on adding a bar on the bottom to show "Esc to quit" and
"Press h for Help"


Making this change helped me figure out how the "mysterious fix" occurred.
The mysterious fix was a side effect of fixing bug #2. Remember how the
journal always started on day 2? Well, the help text was originally set
up to only show during day 1. Because it was never actually day 1, the
text never showed.

the code in LemonadeGUI.py originally had:
if main.day == 1: (draw the help text)

Thursday, March 17, 2011

Established the timeline

The A-Team has established the Project Timeline for the rest of the semester. Tuesday we corrected the "starts on day 2" bug. I think we could possibly end up being ahead of schedule and we'll probably be able to do extra.

We got great feedback from Nathaniel who is the owner of Lemonade Stand. He let us know that he is behind us and that he trusts our best judgment.

After looking at the speakers for Thursday's POSSCON, I am interested to listen to David Duggins, John Diamond, and Chris Hinkley; David Duggins will talk about using open source for startups to save time and money, John Diamond will discuss open source gaming, and Chris Hinkley will discuss internet security.

Thursday, March 10, 2011

Lemonade Stand

I think I'm fairly familiar with the code for the Lemonade Stand after spending time reading through the code. I feel confident that the A-Team will be able to find things to change and improve.

The whole Lemonade Stand package has plenty of files, but I believe there are only 3 files we'll end up working with; those are: constants.py, LemonadeMain.py, and LemonadeGui.py.

LemonadeMain.py seems to be the logic behind the game. Variables are stored here in integer format.

constants.py seems to mostly give names to the variables stored in LemonadeMain.py by providing arrays for the integer variables to index into.

LemonadeGui.py does the indexing. It uses variables from LemonadeMain.py to index into arrays stored in constants.py to determine what features to display.

This may be an overgeneralization, but I think it gives me a good grasp of what is going on.

Thursday, March 3, 2011

Timeline?

The A-Team likes an activity called Lemonade Stand. The activity is a game in which you manage a lemonade stand and all the randomness and financial issues that you'd encounter. Associated with the activity is a wish list of desired features that are not yet implemented; we feel that we can tackle some of these and contribute to the game. My favorite idea so far is a random event in which a bully forces you to give him all your money. To prevent the bully from coming around, you can hire security.