DreamLand editor

Profile
Republic of Moldova, Odesa
0 comments
33 entries
Advertisement
Calin
September 16, 2024
Building a better RTS AI. Counting future units as an obstacle

In a previous entry I was saying that you should start from the end when building your RTS AI. First you (when I say you I mean your AI player) try to kill the enemy workers that's your goal number 1. If there are enemy marines near the workers that`s an obstacle to reaching goal number 1. You must…

2,566 views
Calin
August 27, 2024
I`m adding one more AI player on the map

I have two AI players on the map now. Here is a screenshot

3,995 views
Calin
June 27, 2024
Trying to figure out ways to avoid obstacles with this new vector based approach

A couple days ago I felt lost. And I still do. I had no idea where to start. Eventually I came up with this code. I`m creating an additional vector that points in the opposite direction of where the obstacle is. If I move using this vector I can make some room between the unit and the obstacle, whi…

241,814 views
Calin
June 17, 2024
Vector based unit movement

Up to this point I have been using a unique code snippet for each direction of movement. These days I managed to switch to using vectors for movement. I have the same code for all directions now

float VectorX = NextNodeX - UpixPosX;
float VectorY = NextNodeY - UpixPosY;
float VecLength = sqrt(Vector…
22,892 views
Calin
June 01, 2024
Training workers

I don't know what else I should say, nothing super impressive in this video just training units. 

https://youtube.com/shorts/I-a5eMCGFu8?feature=share

44,873 views
Calin
May 15, 2024
Buildings construction

The graphics are boring I know.  I must switch to an isometric engine or 3d engine.  The second building is not pure white like the first one because it`s a different type of building. The size is the same as the size of the HQ same color too would have been confusing. 

https://youtub…

134,979 views
Calin
April 03, 2024
What happens when a resource patch runs out of resources

I started using state machines. You can see the result below

https://youtube.com/shorts/Vur448bRpXU?feature=share

49,462 views
Advertisement
Calin
March 13, 2024
Building a better RTS AI. Typical map moves.

This is a continuation of the Building a better RTS AI series from codeproject.com . I want to add an image and you can't add images on codeproject so I`m posting here.

To get a good RTS AI player the fog of war needs to be disabled for him, or in other words he needs to be able to see what his enem…

4,520 views
Calin
February 27, 2024
Resource collecting sequence

 A short video displaying mining resources behavior. The large square is the HQ. 

https://youtube.com/shorts/xT3heqX8GWs

2,500 views
Calin
February 15, 2024
Patrol

Units on patrol. This was a tough one. I had to imagine Im using a state machine to figure it out. Im not using a state machine right now.  

https://youtube.com/shorts/5bwWuP5TdaI

13,602 views
Advertisement

Popular Blogs

shawnhar
Generalist
101 Entries
14 Followers
klg71
Generalist
54 Entries
2 Followers
ApochPiQ
Generalist
628 Entries
45 Followers
15 Entries
14 Followers
johnhattan
Programmer
1,277 Entries
50 Followers
Advertisement