Lemonade Stand/Developer Documentation

From Sugar Labs
< Lemonade Stand
Revision as of 15:07, 11 November 2010 by Qalthos (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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'.