Creating my game engine. [ Gear3D ]

Started by Yue, July 06, 2017, 22:07:12

Previous topic - Next topic

Yue

I'm creating a video game engine. Simple experimentation so that someone can create a simple game. The engine is in its early stages of development, and is programmed in Lua script.


Version in development Gear3D v.0.0 Alpha




The idea of ​​all this madness is that my daughter has again the science and technology fair and will participate with this video game engine.

Greetings.  :-\
Download Test Engine

OS: Windows.
Programmin on Lua Script.

Sample Lua Script.


cube = 0
True = 1
False = 0


function Start()


   cube = CPrim.CreateCube()
   -- Position Cube on 0, 0, 0
   CPrim.SetPosEntity ( cube,0, 0, 10) --New Position Cube.
   CPrim.SetRotEntity ( cube, 10, 10, 10 ) -- Rotate Cube.
   CPrim.SetColorEntity( cube, 255, 255, 0 ) --Color Cube.


   
     
end


function Update()
   
      -- Move cube Key Mouse Left press.
   if CInput.MouseDown(1) == True  then
     
      CPrim.TranslateEntity( cube, 0, 0, 1.0 )
     
   end 
   
   
end


Objectives in each version of development  v.0.0
in progress
Finalized
Not Start
Slow


Class CMesh

CMesh.CreateCube(  int parent)
CMesh.CreateCone( int segments, bool solid,  int parent)
CMesh.CreateTorus(int segments, float r, float r_Tube, Int parent)
CMesh.CreateSphere(int segments, int parent)
CMesh.CreateCylinder( int segments, bool solid, int parent )
CMesh.LoadMesh( char* file, int parent )
CMesh.LoadAnimMesh( char* file, int parent )


Class CControl

CControl.SetPosEntity( float x, float y, float z, bool global)
CControl.SetColorEntity(byte r, byte g, byte b)
CControl.SetScaleEntity(float x, float y, float z)
CControl.TurnEntity(float x, float y, float z, bool glogal)
CControl.MoveEntity(float x, float y, float z)
CControl.TranslateEntity( float x, float y, float z)
CControl.SetRotEntity( float x, float y, float z, bool global)


Class CInput

CInput.KeyDown( int KeyCode)
CPrim.KeyDown( int KeyCode )
CInput.KeyHit( int KeyCode )
CInput.KeyUp( int KeyCode)
CInput.MouseDown( int KeyCode)
CInput.MouseHit(int KeyCode)

CInput.MouseUp ( int KeyCode )

Class CLight

TCLight.CreateLight( int Type )


Class CSystem

TSystem.AppTitle( char* Title )
TSystem.fullScreen ( bool mode )
TSystem.G3D( int width, int height )
TSystem.Close()

Class CCamera
CCamera.CreateCamera ( int parent )

Rooster

Sounds cool.
I'm ready to see what you come up with. :)

Yue

@Rooster

I always have something new to learn. ;D

Rooster


Yue

 :)


I've released a simple demo of the engine. I would like to hear your comments on this.

Greetings.

Rooster

I'll look into it when I'm done with my entry for Qube's competition. :)


Dennise

The teacher has looked at the program, says it looks very interesting, and he hopes to see more progress within four months for the science and technology fair.

I wonder what you were doing, I'm not really sure, I answered that with a program called Blitz3D or BlitzMax, I do not remember correctly. But he liked it a lot. :)


:-*