The AI controlling the ships in combat has to know how its enemy’s ships are situated. This affects how it should do its attack a lot. In this short video I show how the AI sees its enemies’ (and its own) ships in combat in my game.
Until now I have had attack commands only for individual ships. But as I now have ships doing everything in groups I had to add logic for group attacking also. Here I demonstrate aggressive attack which means that the ships try to get close and match the velocity of the target group and then justContinue reading “Group aggressive attack”
Now that I have groups, I could finally add the whole formation system for them. The ships fly and stay in their formations and they reorganize in the formation as needed. This happens when formation is changed, a move command is given or ships leave or join the group. There are found kinds of formationsContinue reading “Formations”
I have known that there has to be some kind of ship groups that can be commanded like a single unit, so that it is easier to command big battles. But I wanted a flexible solution and not permanent groups which can’t be split or merged if needed. So the solution I came up withContinue reading “Ship selection and commanding”
Of course there has to be carriers, so I added them now. The ships form queues to dock to the hangars and precisely float in. Once they are in, any number can be undocked. Undocked ships then follow the carrier in formation, so that they are not left behind.
I refined the map generation process and isolated some parameters to be chosen freely when making a new game. The first one is naturally the number of civilizations in the game, called “player count” in the video. The next one is the number of star systems in the game. It can be chosen freely butContinue reading “Advanced map generation”
It is quite messy and complicated if ships can move from every star system to any other star system freely. Even if there is some kind of maximum jump range, I feel there are too many possible ways to move around and to attack to make playing it fun. This is why I want toContinue reading “Map generation”
A video where I take manual control of individual ships during combat. As you can see, the AI is much better at this. I’m planning to add parameters on how good or bad the ship is at flying. With this I can then do an experience system or a battle computer system etc. Bad pilotsContinue reading “Manual flight in combat”
In the first posts in the blog I talked about the space flight model and controls. Now that I have a nice way to take manual control of the ships I can show it a bit more. Essentially it uses real physics but has some restrictions to prevent some unwanted things. For example, there isContinue reading “Flight model”
It is nice to see everything from the perspective of individual ships, so I made an action camera feature for that purpose. I made the camera follow the ship smoothly so the velocities can be sensed from the camera lag. I’m planning to add an option to toggle manual flight on when in action cameraContinue reading “Action camera”