Surlix : Game Programming Language

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
Post Reply
stevend
Posts: 114
Joined: Sat Mar 01, 2008 7:18 pm

Surlix : Game Programming Language

Post by stevend »

I have changed the goal of my programming language a bit.

Now Surlix has that ability to link to the irrlicht.net library and build 3D applications :)

Surlix takes a script and converts it into .net code and compiles it using the framework making a native .net application. its a mini programming language!

Image

requirements .net 3.5

Example: Open an irrlicht window:

Code: Select all

Import (3dlib.o);

Universe();

	ThisClass(); 


		EntryPoint(); 
			
			xx ( Game mygame = Game.Instance@ );

			Call (mygame.Start, 800 | 600);

			While (mygame.device.Run<>);
				Invoke ( mygame.BeginDraw );
				Invoke ( mygame.FinishDraw );
			DoWhile();

			Invoke (mygame.Dispose);

		Exit();


	EndClass();

EndUniverse();

it also includes a GUI frontend utility for easily compiling your program, and error checking.

http://confined.coderzilla.net/files/Debug.rar 8)
Last edited by stevend on Thu Sep 04, 2008 1:46 am, edited 10 times in total.
stevend
Posts: 114
Joined: Sat Mar 01, 2008 7:18 pm

Post by stevend »

http://confined.coderzilla.net/files/Debug.rar

you cant have spaces in the file paths so you need to make a folder in C:\ or something similar
stevend
Posts: 114
Joined: Sat Mar 01, 2008 7:18 pm

Post by stevend »

just incase any one is interested :P i updated the engine a bit.

- i have added full class support
- added the ability to make objects and to link them together
- started working on a standard library you can link to your project
- you can build your own objects to seperate code into classes
- full documentation included including API documentation
stevend
Posts: 114
Joined: Sat Mar 01, 2008 7:18 pm

Post by stevend »

Surlix is now a game programming language using irrlicht and irrlicht.net

there is a new library called 3dlib.o you can include into your surlix project in which you gain access to a 3D programming library (that is using irrlicht).

the example code above has been updated.

ps: if a mod thinks this is worthy of a project announcement than please move it!
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yeah, off-topic is probably a little misstating. So moved :)
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Sounds interesting and ambitious! Well done on getting it working thus far!
Image Image Image
pera
Posts: 460
Joined: Wed May 14, 2008 1:05 pm
Location: Novi Sad, Serbia
Contact:

Post by pera »

Hi. I downloaded the code and checked it out.
It was easy compiling provided example using GUICompiler.
But I wonder how do you do more?
What else can you write in surlix to appear in the game?
Do you write bindings for full irrlicht api or what?

And what is the purpose of surlix? is it like a scripting language? (no, because it has to compile), is it going to move programming to higher level like: CreateFPS(); (binding lots of lower functions to one higher)
Or is it just for the fun of having your own programming language (which is cool and really shines in the cv :)).
stevend
Posts: 114
Joined: Sat Mar 01, 2008 7:18 pm

Post by stevend »

well, currently, you cant do any more than make a window, school is keeping me busy, but this weekend i plan to add enough functions to get some terrain, this and that

well, there is a wrapper which abstracts irrlich.net for use inside the surlix language. After compiling surlix, it is as fast as a native .net program, no scripting involved. there is a lexer which converts Surlix code into opcodes and argument lists, and from there it is converted in C#

if you link with the 3d library you could easily write you own irrlicht.net wrapper in C# and throw it right into surlix and away you go :P

mostly, it would impress my programming teacher, something else to add to my portfolio, and yeah, its fun >.>
Post Reply