Leadwerks Game Engine

Leadwerks Game Engine

Collection of my Workshop LeadWerks Assets
[PBS] epsilonion  [developer] 17 Jan, 2015 @ 6:02pm
Main Menu Code - Install Instructions
*****************************
**** Main Menu script ****
*****************************

1. Copy the Images folder into your projects root directory.
2. Copy the App.lua in to your scripts folder.

Edit the App.lua


Under APP:Start()

Create a window set the resolution to what you want, it is currently set to my resolution i have on my computer.


Under the APP:loop()
find Time:Delay(10000)

the time delay pauses your game and is currently set for 10 sec's as there is a disclaime on there, set it to what you want.

If you want to change the splash screen or menu image then you can do so, I have named them splash_uni.tex and menuBG.tex

If you save your newly created image in Jpeg or what ever then LEADWERKS automatically generates the .tex files for you once it is copied into the image directory.


The way it works is that it loads an image and scales it to the size of the context window (the space allocated to context) so if you resize the resolution then it automatically resizes the image to fit the context screen.