Version 27 vs 28
Version 27 vs 28
Edits
Edits
- Edit by 0xseantasker, Version 28
- Nov 24 2021 9:54 AM
- Edit by 0xseantasker, Version 27
- Nov 24 2021 9:53 AM
« Previous Change | Next Change » |
Edit Older Version 27... | Edit Older Version 28... |
Content Changes
Content Changes
NOTE: This page is out of date. The project is cmake
Please [[projects/echo_3/building/|install and build the Echo engine]].
=Your first project=
Now that you have everything installed, create a new project:
1. Open a command prompt and run the GenerateProject script
```
$ECHO_ENGINE_INSTALL_DIR/templates/cmake/GenerateProject.sh MyEchoProject EchoApplicationProject destinationFolder
```
You can run the script without any parameters and it will include a list of available templates.
2. The output will display the path to the new project folder and build instructions which will look like this:
```
mkdir build
cd build
cmake -DECHO_ENGINE_INSTALL_DIR="/opt/echo3" ..
make
```
Your install location may be different.
3. To run the project run from the project directory (rather than the build directory). This is because the template references resources relative to the project folder. You can change the configuration however you like though.
The Echo Application template has a simple menu and main game state that you can switch between using the on screen buttons. The game state scene is made up of a spinning cube and some lights.
{F4377 size=full}
Congratulations, you have created, built and run your first Echo project!
=What next?=
Have a look at the project source code. The source files contain documentation about some Echo fundamentals and details the project Task structure.
Here are some suggestions for moving forward:
- Familiarise yourself with `Scene` objects:
-- Modify the scene.
-- Add another `SceneEntity` to the scene, give it a `Sphere` mesh (hint: the `Mesh` class contains some helper methods for generating certain meshes).
- Familiarise yourself with `Camera`s, `Renderer`s and `Viewport`s:
-- Modify the Game state to include a third `Viewport`.
- Familiarise yourself with GUI scripts:
-- In the resources folder you'll find a folder named Menu that contains various `.gui` files. These define GUI layouts of images, buttons, text etc. The element types correspond to Echo GUI classes. Play around with the menu elements.
-- Try creating a couple of new buttons to click on in the Game state to speed up or slow down the spinning cube. You will need to create a function to change the speed and set up a new binding to make it available for GUI buttons (see the application file on how to set up bindings, but set the bindings up in `Game.cpp` using the provided `FunctionBinder`).
- Familiarise yourself with `Task`s: Create a custom `Task` to periodically toggle the visibility of the sphere (or, if you didn't create one, the cube).
If you're happy with your progress so far, you can move onto a more advanced project by creating a third person game using the provided project template. The third person game template is a little more complicated that the simple application. It provides examples of:
- Using a `ContextSwitcher` to manage application states.
- How you can get values from a `Configuration` object,
- Creating a custom `Camera` controller task to follow a character
- How to create and use `MappedInputDevice`s
- How to create a generic game entity class that has discrete states defined by animations, physics bodies
- How to create a `BulletPhysicsWorld` and add `PhysicsBody` instances to it.
Please [[projects/echo_3/building/|install and build the Echo engine]].
=Your first project=
Now that you have everything installed, create a new project:
1. Open a command prompt and run the GenerateProject script
```
$ECHO_ENGINE_INSTALL_DIR/templates/cmake/GenerateProject.sh MyEchoProject EchoApplicationProject destinationFolder
```
You can run the script without any parameters and it will include a list of available templates.
2. The output will display the path to the new project folder and build instructions which will look like this:
```
mkdir build
cd build
cmake -DECHO_ENGINE_INSTALL_DIR="/opt/echo3" ..
make
```
Your install location may be different.
3. To run the project run from the project directory (rather than the build directory). This is because the template references resources relative to the project folder. You can change the configuration however you like though.
The Echo Application template has a simple menu and main game state that you can switch between using the on screen buttons. The game state scene is made up of a spinning cube and some lights.
{F4377 size=full}
Congratulations, you have created, built and run your first Echo project!
=What next?=
Have a look at the project source code. The source files contain documentation about some Echo fundamentals and details the project Task structure.
Here are some suggestions for moving forward:
- Familiarise yourself with `Scene` objects:
-- Modify the scene.
-- Add another `SceneEntity` to the scene, give it a `Sphere` mesh (hint: the `Mesh` class contains some helper methods for generating certain meshes).
- Familiarise yourself with `Camera`s, `Renderer`s and `Viewport`s:
-- Modify the Game state to include a third `Viewport`.
- Familiarise yourself with GUI scripts:
-- In the resources folder you'll find a folder named Menu that contains various `.gui` files. These define GUI layouts of images, buttons, text etc. The element types correspond to Echo GUI classes. Play around with the menu elements.
-- Try creating a couple of new buttons to click on in the Game state to speed up or slow down the spinning cube. You will need to create a function to change the speed and set up a new binding to make it available for GUI buttons (see the application file on how to set up bindings, but set the bindings up in `Game.cpp` using the provided `FunctionBinder`).
- Familiarise yourself with `Task`s: Create a custom `Task` to periodically toggle the visibility of the sphere (or, if you didn't create one, the cube).
If you're happy with your progress so far, you can move onto a more advanced project by creating a third person game using the provided project template. The third person game template is a little more complicated that the simple application. It provides examples of:
- Using a `ContextSwitcher` to manage application states.
- How you can get values from a `Configuration` object,
- Creating a custom `Camera` controller task to follow a character
- How to create and use `MappedInputDevice`s
- How to create a generic game entity class that has discrete states defined by animations, physics bodies
- How to create a `BulletPhysicsWorld` and add `PhysicsBody` instances to it.
NOTE: This page is out of date. The project is cmake
Please [[projects/echo_3/building/|install and build the Echo engine]].
=Your first project=
Now that you have everything installed, create a new project:
1. Open a command prompt and run the GenerateProject script
```
$ECHO_ENGINE_INSTALL_DIR/templates/cmake/GenerateProject.sh MyEchoProject EchoApplicationProject destinationFolder
```
You can run the script without any parameters and it will include a list of available templates.
2. The output will display the path to the new project folder and build instructions which will look like this:
```
mkdir build
cd build
cmake -DECHO_ENGINE_INSTALL_DIR="/opt/echo3" ..
make
```
Your install location may be different.
3. To run the project run from the project directory (rather than the build directory). This is because the template references resources relative to the project folder. You can change the configuration however you like though.
The Echo Application template has a simple menu and main game state that you can switch between using the on screen buttons. The game state scene is made up of a spinning cube and some lights.
{F4377 size=full}
Congratulations, you have created, built and run your first Echo project!
=What next?=
Have a look at the project source code. The source files contain documentation about some Echo fundamentals and details the project Task structure.
Here are some suggestions for moving forward:
- Familiarise yourself with `Scene` objects:
-- Modify the scene.
-- Add another `SceneEntity` to the scene, give it a `Sphere` mesh (hint: the `Mesh` class contains some helper methods for generating certain meshes).
- Familiarise yourself with `Camera`s, `Renderer`s and `Viewport`s:
-- Modify the Game state to include a third `Viewport`.
- Familiarise yourself with GUI scripts:
-- In the resources folder you'll find a folder named Menu that contains various `.gui` files. These define GUI layouts of images, buttons, text etc. The element types correspond to Echo GUI classes. Play around with the menu elements.
-- Try creating a couple of new buttons to click on in the Game state to speed up or slow down the spinning cube. You will need to create a function to change the speed and set up a new binding to make it available for GUI buttons (see the application file on how to set up bindings, but set the bindings up in `Game.cpp` using the provided `FunctionBinder`).
- Familiarise yourself with `Task`s: Create a custom `Task` to periodically toggle the visibility of the sphere (or, if you didn't create one, the cube).
If you're happy with your progress so far, you can move onto a more advanced project by creating a third person game using the provided project template. The third person game template is a little more complicated that the simple application. It provides examples of:
- Using a `ContextSwitcher` to manage application states.
- How you can get values from a `Configuration` object,
- Creating a custom `Camera` controller task to follow a character
- How to create and use `MappedInputDevice`s
- How to create a generic game entity class that has discrete states defined by animations, physics bodies
- How to create a `BulletPhysicsWorld` and add `PhysicsBody` instances to it.