UniversityofAlaskaAnchorageCS / RotationFrenzy

Educational Physics Game
MIT License
2 stars 0 forks source link

Add level thumbnail name to level JSON file #49

Open kaltinril opened 5 years ago

kaltinril commented 5 years ago

Currently the icon to display on the ChapterSelectScreen.java is hard coded via a switch statement.

Need to update the level code so it loads a new JSON attribute "thumbnail". This should be the filename of the image to display or type of thumbnail (Say, eagle, den, etc). Then the switch statement could be replaced via a set of IF statements to check the thumbnail name/type and set that image.

https://github.com/UniversityofAlaskaAnchorageCS/RotationFrenzy/blob/master/source/core/src/com/uaa/rotationfrenzy/screen/ChapterSelectScreen.java#L96-L137