Spherical forums

Sphere Development => Sphere General => Topic started by: DaVince on June 23, 2013, 04:55:45 am

Title: Sphere game launcher talk
Post by: DaVince on June 23, 2013, 04:55:45 am
(This topic has been split off from this: http://forums.spheredev.org/index.php/topic,96.0.html)

(After finding out the startup game couldn't reach the files I wanted to reach...)
Bleh. Well, that's too bad. At least the startup game should have been able to.

I'm thinking of writing something Wx-based instead, then. When I get the time.
Title: Re: Sphere game launcher talk
Post by: Radnen on June 23, 2013, 04:59:17 am
That said, what you are doing reminds me of a game player in .NET that I made. What it was crucial for was detecting your monitor resolutions and writing to the .sgm the correct best fir for your monitor. It was in my StarFront game, which you can check out on my website (needs Windows OS tho).
Title: Re: Sphere game launcher talk
Post by: DaVince on June 23, 2013, 05:10:22 am
Interesting, I'll check it out. Was thinking of making something Python-based myself, if that proves to be properly cross-platform at least.
Title: Re: Sphere game launcher talk
Post by: Flying Jester on June 23, 2013, 06:13:57 pm
I was planning on making a simple Java based starter game and config tool for TurboSphere, myself. You can't beat Java for cross-platform support.
Title: Re: Sphere game launcher talk
Post by: DaVince on June 24, 2013, 05:06:04 am
Hmm, yeah, but I wanted to keep the launcher light and quick to start up. Well, I don't really have that much time to be making it this week, anyway...
Title: Re: Sphere game launcher talk
Post by: alpha123 on June 26, 2013, 05:05:56 pm

I was planning on making a simple Java based starter game and config tool for TurboSphere, myself. You can't beat Java for cross-platform support.

C beats Java flat cross-platform wise. Anything with a pure C VM (e.g. Lua) is likely to be at least as portable as Java as well.

Perhaps I will try making a launcher in Common Lisp, its cross-platform support is good enough for this purpose.
Title: Re: Sphere game launcher talk
Post by: DaVince on July 09, 2013, 05:13:30 pm
I split off the discussion about creating new launchers into a new thread, since I wanted to continue the discussion on this.

So I recently found this:

https://github.com/rogerwang/node-webkit

It's based on Node.js and WebKit. It basically lets you code cross-platform desktop applications with browser technology. Seems very useful to me (as you can just load and manipulate local files synchonously and with ease, for example).

I'm currently trying to create a Sphere game launcher with it, see how that goes. It seems like a fairly good solution to me. The only downside seems to be the file size, but that can be partially subverted with a binary compressor like UPX (it seems to work well on node-webkit...).
Title: Re: Sphere game launcher talk
Post by: Radnen on July 09, 2013, 05:31:14 pm
Can it be used to create standalone web-sphere games?
Title: Re: Sphere game launcher talk
Post by: DaVince on July 09, 2013, 05:36:23 pm
You know, I was thinking about that. It's a self-contained full browser, so it seems like it would to me.

Not sure what the policy settings are on local files loaded through jQuery's $.get() though, because that fails in a normal browser. I could try to run NEO's stuff in it as a test.
If that fails, though, the Node.js part offers file loading, any way. Sync *and* async.

EDIT: it works, without any modifications. This could really work as a HTML-based standalone Sphere interpreter and as a test bed for locally testing Neo's web-sphere-utilities. :)
Title: Re: Sphere game launcher talk
Post by: Radnen on July 09, 2013, 05:42:08 pm
That excellent news! I could even try to test JSIL in it.
Title: Re: Sphere game launcher talk
Post by: N E O on July 09, 2013, 05:59:39 pm
Fantastic! I knew node-webkit would eventually be useful to the advancement and proliferation of Sphere :)