ICS 111: Introduction to Computer Science 1, is the first programming course in the computer science series at UH Manoa. Taught in Java, this class focuses on “problem solving, algorithm development, implementation, and debugging/testing using an object-oriented programming language.” (catalog)
“Candy Collector” is the final project I completed for ICS 111. In this game, players avoid the graves and ghosts while collecting the moving candies. The player that collects the most candies while not bumping into the obstacles wins. We created this game using the EZJava library provided by our professor (documentation below). This library provided a “visual” representation of our objects so that we could better understand how to interact with them.
The overall goal of this project was to get used to working with the skills we learned in class which included file parsing, class structure, private/public member variables and member functions. I think the most interesting part about creating this game for me was realizing that games (or any application) essentially run within a while loop. Our whole game runs through a while(true) loop, with almost all the function calls and logic going inside.
I think the main thing I learned from this project was the importance of project organization. If we didn’t organize all our code into separate functions, the while loop in main would be absolutely incomprehensible. Especially working with a partner, readability is extremely important. This was a very fun introductory java project.
Link to the game: airyclam/CandyGame