Post

Visualizzazione dei post con l'etichetta gameplay

User interface - Adding functionalities

Immagine
In the previous post we created the layout for our user interface. Before going on with the work on it, I want to add some useful stuff to C++ code. I decided to store all informations about the player status (health points, resources, etc.) in the PlayerController class, becuse it seems the most logic place for them. So I'm adding a bunch of new variables: lives:  the number of actual health points left; maxLives:  the maximum number of available health points (it's 3 for now); resources:  the number of collected resources; maxResources:  the maximum number of collectible resources (let's say it's our cargo space, and I'm setting it to 5 for now). All these variables are created with the UPROPERTY macro, so that they're visible from the Blueprints, and can be used to modify the User Interface widget. I'm also going to create some new UFUNCTION methods that will handle the events coming from the User Interface buttons: selectOpti...

Prototype gameplay

Immagine
Hello! I'm back to programming after my short holiday in the 3D modeling world with Blender. Today, I'll show you a gameplay video from my Java prototype: This is a sample level with random spawned enemies of all kind. It shows how you can approach enemies in different ways, trying to avoid them, moving to their same cell to destroy them, or deploying a mine for the most annoying ones. Also, resources management can be done with different strategies: you can repair as soon as you get hit, or decide to continue playing damaged, hoping to reach the end of the level. In advanced levels, you could be asked to complete it after collecting at least N resources, or killing X enemies, and so on. These constraints will constantly change the way you play, and (hopefully) keep you interested in the game. Next: I'll finally move to Unreal Engine and see how hard it is to implement all these ideas in that environment. I expect many challenges, but I'm sure it will be a...