Jul 9, 17 / Leo 22, 01 00:47 UTC
Gear3D Engine ¶
Hello, I'm creating a video game engine called Gear 3D. The idea is to offer the necessary and effective tools to create 3D scenarios. The engine is in a development phase and will run on Windows operating systems, with DiretX and will be programmed in Lua script. Sample Script Lua. --///////////////////////////////////////// --| Fichero : Main.lua / Gear3D --| Nota : Fichero de entrada Script. --| No cambiar el nombre Main.lua --///////////////////////////////////////// --Variables Globales. teapot = 0 True = 1 False = 0 sun = 0 -- Function Start. function Start()--Ilumination. sun = CLight.CreateLight(1) --Teapot. teapot = CMesh.LoadMesh('Teapot.3ds') --Control Teapot. CControl.SetPosEntity ( teapot,0, 0, 0) CControl.SetRotEntity ( teapot, 10, 10, 10 ) CControl.SetColorEntity( teapot, 255, 255, 0 )
end --Function Update. function Update()
if CInput.MouseDown(1) == True then
CControl.TranslateEntity( teapot, 0, 0, 1.0 )
end CControl.TurnEntity ( teapot, 1, 1, 1,1 ) -- Turn teapot.
end
Image :
http://i66.tinypic.com/2eoi9hu.png
Last edited by:
John Jairo Caicedo Guzman
(Asgardian)
on Jul 9, 17 / Leo 22, 01 00:53 UTC,
Total number of edits: 6 times