Post

Visualizzazione dei post con l'etichetta shooter

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...

Game concept

Immagine
For my first game I wanted a very simple idea, so I wouldn't have to deal with complex mechanics, animations, rigging etc. My goal was to have a working, finished game, not a breathtaking revolutionary multiplayer game I had no chance to manage; I had many big ideas in the past, but every time I got stuck after spending days and days on details, losing interest while complexity grew too much. So, this time I decided to try and focus on the bigger plan first, and make it beautiful later. My first idea was a simple top-down space shooter, maybe with the rotating capabilities of  the classic Asteroids . After some days, I thought I could go even more simple, and make it a turn-based puzzle game. I decided for a hexagonal pattern grid, and I started prototyping it in Java. Java is my daily bread at work, so it was the ideal choice for me to have something working in no time... and so it was. I created a fast graphic framework using base Swing and AWT functions, and aft...