JavaScript Remake

Discuss the potential future or ports of the engine.

JavaScript Remake

Postby Lea » Sun May 27, 2012 10:26 pm

Lots of good memories from this place

so, anyone ever think of doing a javascript remake? :P
User avatar
Lea
Community Leader
 
Posts: 1762
Joined: Sun May 28, 2006 10:29 pm
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com

Re: Welcome to the Old Mirage Source

Postby Rian » Mon May 28, 2012 12:53 am

Java would be nice. I'd like to see a group effort for some sort of mobile phone version.

I don't really program at all anymore. I've filled gap in my time, formerly known as Mirage Source, with one too many hobbies over the past three years :P
Last edited by Rian on Mon May 28, 2012 3:35 pm, edited 1 time in total.
I'm on Facebook! Google Plus My Youtube Channel My Steam Profile

Image
User avatar
Rian
Persistant Poster
 
Posts: 836
Joined: Tue May 30, 2006 2:07 am
Location: Nashville, Tennessee, USA
Google Talk: rs.ruggles@gmail.com

Re: JavaScript Remake

Postby Lea » Mon May 28, 2012 3:19 pm

I think with the HTML 5 release and growing support for websockets, a javascript version is totally possible...

The benefits would be
1) Load it just like any other web page
2) Interact right on the web, no third party clients or extra software
3) Javascript is just freakin amazing :P
User avatar
Lea
Community Leader
 
Posts: 1762
Joined: Sun May 28, 2006 10:29 pm
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com

Re: JavaScript Remake

Postby Rian » Mon May 28, 2012 3:59 pm

Browser based would be pretty sweet. How would editors for something like this work? And I guess there wouldn't really be a 'server'? Just a database?
I'm on Facebook! Google Plus My Youtube Channel My Steam Profile

Image
User avatar
Rian
Persistant Poster
 
Posts: 836
Joined: Tue May 30, 2006 2:07 am
Location: Nashville, Tennessee, USA
Google Talk: rs.ruggles@gmail.com

Re: JavaScript Remake

Postby JokeofWeek » Mon May 28, 2012 4:09 pm

I think this definitely could be done with websockets and canvas. The back-end could be done using Node.js, and the websockets stuff using Socket.io.

An in-browser version would be sweet. I miss the good old days of having a project to work on..
Image
User avatar
JokeofWeek
Knowledgeable
 
Posts: 213
Joined: Sun Nov 19, 2006 6:59 pm

Re: JavaScript Remake

Postby Lea » Mon May 28, 2012 4:13 pm

there would be a web server backend and a javascript frontend.

PHP backend is too much overhead, I'm thinking (using standard ajax http requests)

so something like Node.js with Socket.io would be better because it allows 2-way communication and far less overhead per packet.

But, then we require a server with shell access, at least. Not that big of a deal....

As far as editors, we could do the in-game editor like MS has done in the past, or a local editor, doesn't matter.

Data would be stored in a database and queried as needed; the javascript backend would execute the queries, get the data, and pass it up to the clients
User avatar
Lea
Community Leader
 
Posts: 1762
Joined: Sun May 28, 2006 10:29 pm
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com

Re: JavaScript Remake

Postby Lea » Mon May 28, 2012 4:14 pm

well if you want, I'll toss up a bitbucket repository public and we can get to work :P
User avatar
Lea
Community Leader
 
Posts: 1762
Joined: Sun May 28, 2006 10:29 pm
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com

Re: JavaScript Remake

Postby William » Mon May 28, 2012 4:17 pm

JokeofWeek wrote:I miss the good old days of having a project to work on..

Lea wrote:well if you want, I'll toss up a bitbucket repository public and we can get to work :P

Thats the spirit!
I'm on Facebook!My Youtube Channel Send me an email
Image
User avatar
William
Community Leader
 
Posts: 2534
Joined: Mon May 29, 2006 1:00 pm
Location: Sweden
Google Talk: johansson_tk@hotmail.com

Re: JavaScript Remake

Postby Lea » Mon May 28, 2012 4:20 pm

I've been thinking of doing it for a while :P
User avatar
Lea
Community Leader
 
Posts: 1762
Joined: Sun May 28, 2006 10:29 pm
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com

Re: JavaScript Remake

Postby JokeofWeek » Mon May 28, 2012 4:21 pm

Well, while there are PHP Websocket libraries, I think that it would be very interesting to use Node.js as it could lower the 'barrier of entry' for new programmers, since they don't have to learn two different languages.

As for the editors, I think either a seperate version of the client or stand-alone editors would need to be made. Since the entire client source is visible, it could easily become vulnerable, and the client would need to be bulletproof.

The database part could be very interesting depending on if you want a standard SQL database, or some NoSQL solution like mongo.

Hmm.. could be very interesting! :D
Image
User avatar
JokeofWeek
Knowledgeable
 
Posts: 213
Joined: Sun Nov 19, 2006 6:59 pm

Re: JavaScript Remake

Postby Lea » Mon May 28, 2012 4:24 pm

Sorry, I demand MySQL :P

seems like node.js and socket.io are the popular choice; I would be ~much~ more comfortable with php
User avatar
Lea
Community Leader
 
Posts: 1762
Joined: Sun May 28, 2006 10:29 pm
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com

Re: JavaScript Remake

Postby JokeofWeek » Mon May 28, 2012 4:26 pm

Haha, I'm looking into it now and am curious if binary data is supported by Socket.io.. all I've ever done before is used it for JSON. It'd definitely be preferrable if we could start with binary packets, rather then converting it all later.

Edit: This might be an interesting library to use.
Image
User avatar
JokeofWeek
Knowledgeable
 
Posts: 213
Joined: Sun Nov 19, 2006 6:59 pm

Re: JavaScript Remake

Postby Lea » Mon May 28, 2012 4:30 pm

yeah looks good; I won't be able to work on it until tonight..

I have some like.. real life projects... that I am paid for... to work on right now :P
User avatar
Lea
Community Leader
 
Posts: 1762
Joined: Sun May 28, 2006 10:29 pm
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com

Re: JavaScript Remake

Postby JokeofWeek » Mon May 28, 2012 4:33 pm

Lea wrote:yeah looks good; I won't be able to work on it until tonight..

I have some like.. real life projects... that I am paid for... to work on right now :P


Haha yeah, I definitely feel that. I'm all excited now, but I know the fist of reality will be punching me in a few minutes :(
Image
User avatar
JokeofWeek
Knowledgeable
 
Posts: 213
Joined: Sun Nov 19, 2006 6:59 pm

Re: JavaScript Remake

Postby Lea » Mon May 28, 2012 8:08 pm

I think compressed JSON would be better, here's a library to do zip in js http://stuartk.com/jszip/

It looks like the implementation of BiSON is a little buggy, but not too many problems have been shared - I'd like to test both before we decide :)
User avatar
Lea
Community Leader
 
Posts: 1762
Joined: Sun May 28, 2006 10:29 pm
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com

Re: JavaScript Remake

Postby Lea » Mon May 28, 2012 9:05 pm

The more I read on websockets, the more I am meh

Have you ever used them?
User avatar
Lea
Community Leader
 
Posts: 1762
Joined: Sun May 28, 2006 10:29 pm
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com

Re: JavaScript Remake

Postby Matt » Mon May 28, 2012 9:07 pm

Honestly, I think the real market for this would be Android and iOS. Mobile gaming would generate much more players and much more revenue for those who wish to make their game not F2P or make it have a cash shop.

Just sayin'.

That would make it Java for Android. Not sure about iOS, though. Don't like it. Lol.
Matt
Persistant Poster
 
Posts: 701
Joined: Fri Jun 26, 2009 10:15 pm
Google Talk: FAProductions

Re: JavaScript Remake

Postby Lea » Mon May 28, 2012 9:08 pm

if it's made with html5 and js it can be opened on any phone ;)
User avatar
Lea
Community Leader
 
Posts: 1762
Joined: Sun May 28, 2006 10:29 pm
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com

Re: JavaScript Remake

Postby Matt » Mon May 28, 2012 9:09 pm

Won't run the same, though. It won't be native to the device.

Me and Rian were discussing this. If I were to reprogram FADE into anything, it would be an Android app.
Matt
Persistant Poster
 
Posts: 701
Joined: Fri Jun 26, 2009 10:15 pm
Google Talk: FAProductions

Re: JavaScript Remake

Postby William » Mon May 28, 2012 9:12 pm

Was just googeling for fun, is this anything your talking about:

Client: http://github.com/BonsaiDen/NodeGame-Sh ... .client.js
Server: http://github.com/BonsaiDen/NodeGame-Sh ... odegame.js
I'm on Facebook!My Youtube Channel Send me an email
Image
User avatar
William
Community Leader
 
Posts: 2534
Joined: Mon May 29, 2006 1:00 pm
Location: Sweden
Google Talk: johansson_tk@hotmail.com

Re: JavaScript Remake

Postby Lea » Mon May 28, 2012 9:22 pm

maybe, yeah

https://github.com/greevex/php-websocket this library looks totally easy to use, but it's old

https://github.com/lemmingzshadow/php-websocket this is a much more recently updated library (forked from greevex') and it might be better...
User avatar
Lea
Community Leader
 
Posts: 1762
Joined: Sun May 28, 2006 10:29 pm
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com

Re: JavaScript Remake

Postby JokeofWeek » Mon May 28, 2012 9:27 pm

I've worked with Websockets, but they are indeed a bit meh. Socket.io provides a nice interface for it but it's still not perfect.

I've been hacking around for part of the afternoon to make at least a small prototype, but there are some annoyances with Node - it's callback hell lol.
Image
User avatar
JokeofWeek
Knowledgeable
 
Posts: 213
Joined: Sun Nov 19, 2006 6:59 pm

Re: JavaScript Remake

Postby William » Mon May 28, 2012 9:28 pm

You have some deciding to do :P
I'm on Facebook!My Youtube Channel Send me an email
Image
User avatar
William
Community Leader
 
Posts: 2534
Joined: Mon May 29, 2006 1:00 pm
Location: Sweden
Google Talk: johansson_tk@hotmail.com

Re: JavaScript Remake

Postby Lea » Tue May 29, 2012 4:14 pm

How is android's socket interface? Oh would we be stuck doing it over http anyways with android? All the networking I've done with android has been http requests.... if we develop an http API, it would be easy to make a client in both Java for android and JavaScript for web... bit of latency and higher bandwidth that way, but come on, its 2012 and bandwidth is cheap .... and we can reduce it using clever tricks
User avatar
Lea
Community Leader
 
Posts: 1762
Joined: Sun May 28, 2006 10:29 pm
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com

Re: JavaScript Remake

Postby Matt » Tue May 29, 2012 4:17 pm

Lea wrote:How is android's socket interface? Oh would we be stuck doing it over http anyways with android? All the networking I've done with android has been http requests.... if we develop an http API, it would be easy to make a client in both Java for android and JavaScript for web... bit of latency and higher bandwidth that way, but come on, its 2012 and bandwidth is cheap .... and we can reduce it using clever tricks


Webpage wise, I pay $7/mo for unlimited space and bandwidth. Lol.
Matt
Persistant Poster
 
Posts: 701
Joined: Fri Jun 26, 2009 10:15 pm
Google Talk: FAProductions

Next

Return to Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron