RoboLab 3 (Creating the Contracts)


The Contracts Class

To start i thought it would be a good idea to use PhotoShop to create the images of all the different contracts as seen on this page. This would be our way of using file handling, making it really easy to make new contracts and put them straight into the game. I started using paint and realised how poor paint is to make game sprites especially if these sprites have text, which is why i switched to PhotoShop. 

A made the important bits of text different colours and left the description as white since it only added context. 

After the sprites where made, i made a simple "Setup" function in the class that renders the contract sprites in set positions and have them appear and disappear if the menu has been toggled. This is done through a switch case, with each sprite being its own case.  

Next i used the "IsInside" function to register the click on a particular sprite, it then renders a tick on that sprite to show it had been accepted. 

Because of time management the contracts menu became more of a trade menu rather than a contract that needs to be completed. This means when the player has 5 of any robot, they can click on the contract and earn a set amount of the  money resource. This wasn't what we wanted but due to time running short we had to get base functionality  first and make it better later. 

Leave a comment

Log in with itch.io to leave a comment.