September 23, 2019, 06:52:58 AM

Author Topic: Creating my game engine. [ Gear3D ]  (Read 1400 times)

Offline Yue

  • Hero Member
  • *****
  • Posts: 579
    • YiHosting Your Hosting Free
Creating my game engine. [ Gear3D ]
« on: July 06, 2017, 10:07:12 PM »
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.
Code: [Select]

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 )

Offline Rooster

  • Sr. Member
  • ****
  • Posts: 358
  • I don't know what this does...
Re: Creating my game engine.
« Reply #1 on: July 07, 2017, 09:42:32 AM »
Sounds cool.
I'm ready to see what you come up with. :)

Offline Yue

  • Hero Member
  • *****
  • Posts: 579
    • YiHosting Your Hosting Free
Re: Creating my game engine.
« Reply #2 on: July 08, 2017, 05:45:59 PM »
@Rooster

I always have something new to learn. ;D

Offline Rooster

  • Sr. Member
  • ****
  • Posts: 358
  • I don't know what this does...
Re: Creating my game engine.
« Reply #3 on: July 08, 2017, 06:37:33 PM »
Yep, that's the way to go.

Offline Yue

  • Hero Member
  • *****
  • Posts: 579
    • YiHosting Your Hosting Free
Re: Creating my game engine.
« Reply #4 on: July 08, 2017, 08:01:53 PM »
 :)


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

Greetings.

Offline Rooster

  • Sr. Member
  • ****
  • Posts: 358
  • I don't know what this does...
Re: Creating my game engine. [ Gear3D ]
« Reply #5 on: July 09, 2017, 10:13:56 PM »
I'll look into it when I'm done with my entry for Qube's competition. :)

Offline Yue

  • Hero Member
  • *****
  • Posts: 579
    • YiHosting Your Hosting Free
Re: Creating my game engine. [ Gear3D ]
« Reply #6 on: July 10, 2017, 07:03:27 PM »
New Image Loading Engine. :)


Offline Dennise

  • Jr. Member
  • **
  • Posts: 12
Re: Creating my game engine. [ Gear3D ]
« Reply #7 on: July 13, 2017, 10:57:35 PM »
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. :)


 :-*