GameMonkey Script

GameMonkey Script Forums
It is currently Thu Jun 22, 2017 4:17 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: xstart Script Runtime
PostPosted: Sat Nov 05, 2016 12:22 am 
Offline

Joined: Fri Nov 04, 2016 11:43 pm
Posts: 3
xstart is a script runtime for rapid software development based on gm-script.

For over 3-years in development now, this is the first public release (v0.3.0) - contributors are welcome!

It already has a bunch of features, and is versatile enough to be used for tools, servers and frontends. Rendering is done through a OpenGL based scene-graph. Each node receives input in the form of callbacks (eg. onMouseDown, onMouseUp etc.). See reference documentation at http://xstart.io/help.htm

The software was tested on Windows, Linux and Raspberry Pi. The Windows installer comes with examples and a modified Scite editor. Installation instructions on Linux is provided here: https://gitlab.com/bavoha/xstart/wikis/home

http://www.xstart.io



Here a two examples, first shows Window creation, scene graph node and event:
Code:
global FRAME = Frame("main", 50, 50, 640, 480, "#ffffff").toggle().cursor(true);
FRAME.root["texture"] = Texture("images/earth-bg.jpg", 0, 0, 640, 480);
FRAME.root["texture"].onMouseDown = function(evt) { this.rotate += 0.1; };
while(FRAME.render()) { yield(); }


Second is a web-server with custom handlers:
Code:
global SERVER = HttpServer("8080", ".", true);
SERVER.onRequest = function(url, get, post, auth) {
    if(auth != "xstart:asdf") { this.sendAuthRequest("Login"); return; }
    SERVER.sendFile();
};
SERVER._admin = function(url, get, post, auth) {
    if(auth != "xstart:asdf") { this.sendAuthRequest("Login"); return; }
    this.send("hi master");
};
while(true) {
    SERVER.poll(1.0);
    yield();
}


Last edited by bavoha on Sat Nov 05, 2016 12:44 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
PostPosted: Sat Nov 05, 2016 12:40 am 
Offline

Joined: Mon Dec 15, 2003 1:38 pm
Posts: 699
Welcome to the forum bavoha, thanks for sharing!


Top
 Profile  
Reply with quote  
PostPosted: Wed Dec 07, 2016 10:20 am 
Offline

Joined: Fri Nov 04, 2016 11:43 pm
Posts: 3
Alive and kicking...

* I listed XStart on alternativeto.
* Now it has a small quickstart guide in the installation.
* Bugfixes and features added.

More in the making... I will rewrite the scene-graph to handle polygons instead of rectangle hit-testing. The idea is to be able to draw on 3D-object textures.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group