-
Notifications
You must be signed in to change notification settings - Fork 7
The_Basics
Follow these quick steps to get started with LUTE. Once you're up and running, delve deeper into LUTE's capabilities and explore the documentation available.
All of the creation takes place within the Loga Flow Engine window and you can see your game executing through each component inside this window. We suggest opening the window and keeping it docked initially:
- Open the window by selecting the item from the top context drop-down menus:
LUTE>Show Engine Menu
- Drag-and drop the window to the location you wish to dock it:
When importing the LUTE plugin, a folder containing some examples is also included. Such examples showcase some of the core features of the system. To get started, we suggest checking out the 'Demo' scene (Assets|LUTESampleExamples|Scenes|LUTEGames|Demo). This scene offers you a base template to work from which includes all required prefabs to use all orders in LUTE. You can use this base template to load a main and pause menu to navigate your first scene.
When loading examples, one should consider having the Flow Engine window open to immediately show how each example scene is constructed in the Flow Engine. Users can then enter play mode and watch each node and orde being executed as the game is played through.
Creating a new scene in Unity for your first game is rather simple.
-
Choose
File | New Scene -
Note: if you have any unsaved changes for the current scene you need to either save or abandon them before a new scene can be created.
-
You should now have a new scene, with a Hierarchy containing just one gameObject, a Main Camera. The new scene will have been give the default name "Untitled", which you can see in the title of the Application window.
-
Good practice is to save your scene (in the right place, with the right name), before creating your work in the scene. You should save most of your scenes in the root of your project "Assets" folder. To save your scene first choose menu:
File | Save Scene As... -
Choose the location and name (we'll choose folders "Assets" and scene name "demo1"):
-
Once you have successfully saved the scene you should now see the new scene file "demo1" in your Assets folder in the Project window, and you should also see in the Application window title that you are currently editing the scene named "demo1".
The LUTE>Create submenu offers the following items:
- Create an empty engine
- Create an engine with blueprint or add a blueprint to an exisiting engine
To create a LUTE Flow Engine:
- Select
Loga>Create>Engine - A new 'BasicFlowEngine' Game Object should appear in the hierarchy window.
- If the Flow Engine window was not open or created, this will be shown.
- If the new Flow Engine Game Object is not selected then please select this and you will see the Flow Engine properties in the Inspector Window and the properties on the Flow Engine window:
- As visible, when a new Engine is created a single command Node is created named 'Node' which has the
Game StartedEvent Handler attached (meaning it will start when the game enters Play Mode).
The engine has a few properties you can adjust in the inspector. These are all related to the visuals of the engine and window besides from the Demo Map Mode boolean check. This switches between using a dummy location on the map or the real device location (useful for testing location experiences in the editor).
Clicking on a a node in the engine window will show the inspector for it. Here, we can change some basic values of the node and begin to add orders to begin building out your experience. To begin, change the node's name, description and tint. You should see these update in the window as well. A node's description is visible when hovering over it (and this behaviour can be toggled on/off in the engine).
- Create a new LoGa Engine and then click the basic starting node
- When shown the inspector for the node, update its name, description and colour (tint)
Adding some basic mechanics to your first game is straightforward. In essence, nodes drive the experiences and orders are the individual mechanics and components that a node will iterate through when called. The basic structure is: Engine>Node>Orders.
A common trope you will find in narrative games is dialogue and dialogue boxes. Let's try adding this to our experience now:
- Using your new Flow Engine window, select the starter node.
- Click on the 'Plus' icon to show the order menu. This menu contains all possible orders that you can add to nodes (developers can add more orders with ease - see [page on custom orders]. You can search this menu for easier navigation.
- Choose
Narrative>Dialogue:
- In the inspector window you should see more details to add information about your dialogue order:
- You can add text, change characters and more but for now we will add a simple piece of text.
- Run the scene and LUTE will create a dialogue window and write the text that was inputted.
You have just created your first experience using the LUTE authoring tool! Checkout further tutorials for more detailed stuff!