serg-srri-umass / TP-data-games

Middle School/Statistics oriented data games for the Data Games Project
http://srri.umass.edu/datagames
4 stars 5 forks source link

Fixing issue #35: Ship Odyssey: Rat min max values wrong #41

Closed cdmiller closed 11 years ago

cdmiller commented 11 years ago

"number of rats to send at a time" current/min/max values are set once at the start of the first game, and after a level change. The current value will then stay under user control as long as it is within the level's min and max values. Initial, Min and max for Levels 1-2 are now 100,100-500. Initial, Min and max for Levels 3-4 are now 10,1-500. ShipOdyssey.mxml: Fixed by consolidating code to change min/max/current values into method setCurrentMixMaxRats(). Renamed game variables from "k" prefix to "m" prefix because they are not constants, they change from level to level.