Activities/Nutrition: Difference between revisions
| Line 63: | Line 63: | ||
== Modifying Nutrition == | == Modifying Nutrition == | ||
Add your own foods by adding images to the images directory and adding to the table in game.py | |||
<pre> | |||
# Food name; calories; food pyramid level, image file name | |||
GAME_DEFS = [[_('banana'), 105, 2, 'banana.png'], | |||
[_('apple'), 72, 2, 'apple.png'], | |||
[_('fish'), 58, 1, 'fish.png'], | |||
[_('corn'), 96, 2, 'corn.png'], | |||
[_('broccoli'), 55, 2, 'broccoli.png'], | |||
[_('chicken'), 262, 1, 'chicken.png'], | |||
[_('cheese'), 114, 1, 'cheese.png'], | |||
[_('orange'), 62, 2, 'orange.png'], | |||
[_('potato'), 159, 2, 'potato.png'], | |||
[_('water'), 0, 3, 'water.png'], | |||
[_('tomato'), 150, 2, 'tomato.png'], | |||
[_('cookie'), 68, 0, 'cookie.png'], | |||
[_('beef'), 284, 1, 'beef.png'], | |||
[_('egg'), 77, 1, 'egg.png'], | |||
[_('sweetpotato'), 169, 2, 'sweetpotato.png'], | |||
[_('tamale'), 126, 2, 'nacatamal.png'], | |||
[_('bread'), 69, 2, 'bread.png'], | |||
[_('rice and beans'), 411, 2, 'rice-and-beans.png'], | |||
[_('cake'), 387, 0, 'cake.png']] | |||
</pre> | |||
---- | ---- | ||