Difference between revisions of "Lemonade Stand/Developer Documentation"

From Sugar Labs
Jump to navigation Jump to search
(Created page with "There are three files which handle the running of Lemonade Stand. They are broken up into data, logic, and GUI drawing. ==Data: constants.py== The easiest file to get into is c...")
(No difference)

Revision as of 16:07, 11 November 2010

There are three files which handle the running of Lemonade Stand. They are broken up into data, logic, and GUI drawing.

Data: constants.py

The easiest file to get into is constants.py. This file has collections of all the different modifiable elements in the game, along with any important constants, like starting money or lemonade price.

Each section consists of a dictionary or list, possibly containing more dictionaries. To change a value in the game, simply make the corresponding change in the file. For example, to make sugar cost $.07 per unit instead of $.05, cahnge 'cost': 5 to 'cost': 7 under 'Sugar'.