In here you will find links to the proper sections of this documentation
Table Of Contents
What is Pointo?
Start using Pointo
GameObject for selection box
Creating a new Unit Configuration
Creating a new Resource Configuration
User Resource Manager
First of all, I would like to personally thank you for trying out this asset!
Pointo is a super simple Starter Kit for Real Time Strategy (RTS) games. Why is it simple? Because every game has their own needs. You can see Pointo as a Blueprint that will help with some basic mechanics for RTS games, such as selecting Units and move them around to collect different resources. It also has a camera script specially made for RTS games. It is based on Scriptable Objects so one can extend the features and make a more tailored experience for your specific game.
Once the Project Settings are done, you can start preparing your project. Start by adding a 3D model (we recommend a Plane or a Cube) to act as a floor. Make sure this new object has a collider attached to it and if it has a Rigidbody make sure to set it to “isKinematic” since it doesn’t move and we don’t want gravity on it.
Make sure that this new object has the layer “Ground”
Finally mark the ground as Navigation static.
Go to Window -> AI -> Navigation and Bake your scene
Create an Empty GameObject and attach the PointoController script to it (or use the prefab if you want).
In the script you can set different values for different attributes. Here is a picture of the standard configuration:
This section handles the UI display box when dragging the mouse.
Only for debug purposes. To see the different parts of the PointoController in action, you can toggle on or off this feature
To create a new Unit configuration just right click on your project. Go to Create -> Unit -> New Unit. Your new Scriptable Object with a Unit data is created. Name it however you want and start setting the stats for it.
Same as the previous section of Creating a new Unit Configuration. Go to Create -> Resource -> New Resource. Your new Scriptable Object with a Resource data is created. Name it however you want and start setting the stats for it.
The script needs a Resource Configuration on it. Be sure of also adding the specific LayerMask used in the PointoController script under the RayCasting section.
To add a Unit to the scene you:
So now press the Play Button and you can start playing around. If one presses the G button on your keyboard, all Units will be back to the starting point.
This is a helper script to visualize what type of resources are being collected by the player. It takes some TextMeshPro objects to display the information.
Simple camera follow script that works great for a RTS game. Create an empty GameObject, attach the CameraFollow script, set some configurations as follow:
Now attach the Main Camera as a child of this new GameObject. Set the main Camera Transform as the Camera Transform and now you can move around using your WASD keys and Mouse.
Now you are set to start your own Real Time Strategy game! You can move around using your keyboard and mouse.
The possibilities of expansion are endless! For example, you can create a Terrain object instead of a plane to use as a ground. Play around with the elevation and place objects.
Thanks again for trying this starter kit! If you are curious about what else we have check more of our content in our Shop on the Asset Store
For any further question not covered here feel free to contact us at firstname.lastname@example.org