# Scene 2 Setup

CreateNode Scene2Node Root
EnableNode \Scene2Node 0

CreateVariable Scene2NodeMotion Linear 3
SetVariableKeyFrame Scene2NodeMotion 0  4 4 4
SetVariableKeyFrame Scene2NodeMotion 17 4.2 4.2 4.2
SetScale \Scene2Node Scene2NodeMotion

CreateTexture T_DonkeysAndTea "Data\donkeys and tea.png"
CreateMaterial MT_DonkeysAndTea Data\Mats\BasicMaterial.txt
BindTexture MT_DonkeysAndTea Texture T_DonkeysAndTea
SetColour MT_DonkeysAndTea AmbientColour 1.0f 1.0f 1.0f

CreateQuad MO_DonkeysAndTea

CreateNode N_DonkeysAndTea Scene2Node

AddProperty ModelRenderer DonkeysAndTeaRenderer \Scene2Node\N_DonkeysAndTea MO_DonkeysAndTea
BindMaterial DonkeysAndTeaRenderer Material MT_DonkeysAndTea
SetScale \Scene2Node\N_DonkeysAndTea T_DonkeysAndTea


CreateVariable DonkeyTeaMotion Linear 3
SetVariableKeyFrame DonkeyTeaMotion 0  -1 -0.3 0
SetVariableKeyFrame DonkeyTeaMotion 0.6 0.5 -0.3 0
SetVariableKeyFrame DonkeyTeaMotion 3 0.5 -0.3 0
SetVariableKeyFrame DonkeyTeaMotion 12 -0.4 0.25 0
SetPosition \Scene2Node\N_DonkeysAndTea DonkeyTeaMotion
