Add global variables at the top of the document, not inside an object, use for loop to create climateArray array
Wrote game setup for game weather. Creates climate change array, threshold weather array, and game weather array. Elliot's help.
Organized code into sections, deleted unnecessary code commented out, added variable cropChosen to updateGame function
Added calculateMaxScore to calculate max score at game start
Fixed #grow button so that it disappears after click and returns on FadeIn
Points counter now reflects current point count. Working on raising height of points flag using .css method
Created variables that measure flag height as integer. Working on function movePointFlag, need to fix issues with flagHeight variable
Fixed appearance of weather using z-index and .weather class in css, and correcting displayWeather and fadeWeather functions
changed first turn to turn equals 0
Reorganize and comment on code to make global variables easier to identity and change. Create code block labelled Assign Turnweather within Game Setup category.
Change makeThresholdArray function so that it progressively adds climate change factor to threshold
Changed threshold calculations to subtract climate change variable so that rain threshold is reduced over time
Removed .fadeOut and .fadeIn methods, resolving issue of incorrect weather graphics. Graphics now match turnWeather. Issue of #grow not disappearing returned.
#grow disappears after click. Added new line in displayWeather to remove .highlight, changed CSS to avoid conflicting display commands.
Removed turnWeather variable altogether, substituted gameWeather[turn]. Game now displays correct weather graphics, appropriate for turn number
Moved points_flag into points_bar so that relative bottom is 0 in CSS. Changed overflow:hidden to :visible on #points_bar.
Refactor CSS points_bar section to give clarity about DOM hierarchy, with points_flag and points_fill inside
Wrote movePointsFlag function that successfully increases height in HTML. Issue remains of how to call that function after each turn; only works in Console.
Included movePointsFlag function in updateGame function, flagHeight now updates after each turn, woohoo
Created movePointsFill function that increases the yellow points_fill bar by the same amount as the points_flag each turn. Success