Intelligent Systems – 6

For this week, I created an interactive UI for the main menu using pygame. The main menu contains 4 buttons which are an option for the game modes (Single-player, multi-player, ai vs ai) and a quit button. The menu navigation is by using a mouse to hover to the buttons and left-click it. The buttons automatically became large when the user hover the mouse to the buttons and instantly return to its normal size when it is not hovered by a mouse. Here are the codes:

Leave a Reply

Your email address will not be published. Required fields are marked *