I need guidance. I have been searching the forum, but being new to C++ and Qt is making it difficult for me. I am working with a group to develop a simple RPG game. I have to design the UI and link it to my code, which I have not been able to figure out. Hopefully I will be able to explain what I am trying to do, and be able to receive ideas on where to start to reach my objective.
We are trying to build a Pirate game where the pirate fights off other bad pirates while collecting gold. The pirate will have different weapons to choose and certain amount of health. This pirate can be in map mode, traveling from one place to another, and in battle mode. Each mode would trigger a different pause menu. In the map world, the pause menu will allow the player to replenish health, and see the current inventory of weapons. Also, there will be an Exit, Resume button. Additionally, there will be a progress bar and numerical text that will display the player’s health.
In battle mode, another UI will appear that will allow the player to interchange weapons currently on inventory, and use any health available that the player collected on missions, I suppose. Once the player makes a selection, the the game will resume on with either a pressed key or by the press of a button.
I have created two different UI’s with the ‘Create a new UI form’ that Qt offers. I need help on how to link the UI’s to certain classes when the player presses a key. Also, how do I connect my widgets to my classes? For example, as soon as the player pauses the game, my pause menu will show the current health of the player. I can’t figure out how to do this.
I hope I made sense, and would appreciate very much your help on getting me started in right direction.
Thanks
↧