To begin, congratulations for this game development. Still in alpha but a lot of play potential.
What I have noticed. When a ship is brought to the battlefield and is taking damages, there is no damages location indicator:
The idea is to display the ship status as a “dynamic see from above ship picture”. The first version of algorithms as I see in my mind would work as follow:
// ALGO may be launch in build mode, on even key:
// create two variables: initialNumberOfBlockOnY and currentNumberOfBlockOnY as two dimensional array of int (don’t remember how to in JAVA), ini at 0 each.
// Scan the ship on the xz plane:
To create the picture, if currentNumberOfBlockOnY is equal to initialNumberOfBlockOnY, draw a green pixel, otherwise, turn the green more and more into red, depending of the difference of these two variables (actualize on each shoot received).
Resize the picture to fit the screen resolution independently on ship size by grouping pixel (standard algorithm for resizing picture).
First I was decided to create it myself as a mod, but a read the topic explaining that the code is obfuscated for now. I understand the reasons. So I post as a suggestion/idea. However if you are interested by any help, it would be a pleasure to contribute by developing this feature. I have a Master in software development (expert C++, but JAVA is ok), 3 years of experiences in companies. I have a job, so I offer my help for free of course, on my free time when I can .
What I have noticed. When a ship is brought to the battlefield and is taking damages, there is no damages location indicator:
- For a mother ship, are the shots coming from the top, bottom, left …? Hard to tell from the fly mode in “shoot view”.
- Ok the shield is down, now the hull and components begin to be deleted. The build view must be used to see the ship and to discover which blocks are missing.
- Ok the shield is down, the ship had taken a lot of damages, are the canon operational at 50%, 60%, how about engines…?
The idea is to display the ship status as a “dynamic see from above ship picture”. The first version of algorithms as I see in my mind would work as follow:
// ALGO may be launch in build mode, on even key:
// create two variables: initialNumberOfBlockOnY and currentNumberOfBlockOnY as two dimensional array of int (don’t remember how to in JAVA), ini at 0 each.
// Scan the ship on the xz plane:
Code:
for (int x = 0; x++; x < maxShipSizeX)
{
for (int z = 0; z++; z < maxShipSizeZ)
{
for (int y = 0; y++; y < maxShipSizeY)
{
if (ship[x][y][z].isABlock); // not a void block
initialNumberOfBlockOnY[x][z]++;
}
}
}
currentNumberOfBlockOnY = initialNumberOfBlockOnY;
To create the picture, if currentNumberOfBlockOnY is equal to initialNumberOfBlockOnY, draw a green pixel, otherwise, turn the green more and more into red, depending of the difference of these two variables (actualize on each shoot received).
Resize the picture to fit the screen resolution independently on ship size by grouping pixel (standard algorithm for resizing picture).
First I was decided to create it myself as a mod, but a read the topic explaining that the code is obfuscated for now. I understand the reasons. So I post as a suggestion/idea. However if you are interested by any help, it would be a pleasure to contribute by developing this feature. I have a Master in software development (expert C++, but JAVA is ok), 3 years of experiences in companies. I have a job, so I offer my help for free of course, on my free time when I can .