Hanna's Coding

redBox
This is a portion of a Java program that allows a player to create a monster battle. This was a collaborative assignment with Horacio Valdes for our Compuer Science 111 class. For this assignment the player can pick the default monsters or create their own monster for the battle to fight one of the default monsters. Each monster has different values for speed and strength. The health is the same for each monster. Once the player chooses or creates their monsters, the battle begins. The battle is random and any monster can win while getting different outcomes for each fight.
This is a simple C# program that continously spawns an object randomly for a game I made in my Game Design 200 class. The program uses prefabs to instantiate the object that is spawning. It takes the range of (-2,2) on the Y-axis values to spawn the object at a random Y-value using the randY variable. The randIndex variable is used to determine which variant of the object is used in the array. The object that is being spawned in this case is an asteroid. The randIndex values of (0,4) are used to determine which sprite of the asteroid will spawn. It can either be a large or small asteroid based on the index. The variable of ct allows the spawner to spawn objects only every 2 seconds. The program will repeat as long as the program is running.
redBox
redBox
This is a portion of a Scala program that allows a player to order different items off of the Five Guys menu. This was a collaborative assignment with Zachary Schneider, Benjamin Boyle, Andrew Matos, and Jack Handy for our Computer Science 110 class. The program displays the menu with prices and allows the player to pick which items they would like to order and the sizes of the items. After selecting the choices of items, the program will list everything the player ordered and give them the total of the cost of items. The program allows you to order anything with no capacity size to how many items you can order.