Finishing Touches

Let's add a couple of final touches to finish off our simple game. First, go to the asset browser and select the "Materials\Effects\invisible.mat" material file. With the "Kill Trigger" object selected, select the Tools > Paint menu item. This will give us an invisible trigger the player can still run into, which is a lot better than having a visible floor below the level.

Now let's add a skybox to the scene. Select the Scene tab in the side panel to show the scene panel. Select the Root node in the scene editor. In the properties editor below, press the button next to the Skybox field, with the folder icon. Choose the TropicalSunnyDay.tex file and press OK. This will add a nice background to your level.

We can add music to the scene with another scripted entity. Select the Objects tab in the side panel to show the objects panel. In the top dropdown box choose the "Miscellanous" category. Now, in the bottom dropdown box choose the "Pivot" object. Create a pivot anywhere in the scene. With this object still selected, select the Scene tab to show the scene panel. In the properties editor below, select the Script tab. Set the script to "Scripts\Objects\Sound\Noise.lua". Set the Sound field to "Sound\Music\Move_Forward.wav" and set the Volume field to 25.

Run the game again and you can see how we built up a fun playable little game, one piece at a time.

Can you think of any ideas for additional obstacles and levels? Be creative and show off what you make to the community!

Wow, that was a big step! You've learned how use to the features of Leadwerks Editor, how the Lua programming language works, and now you understand how to make a simple game. Awesome!