Mirage Source

Free ORPG making software.
It is currently Thu Mar 28, 2024 7:16 pm

All times are UTC




Post new topic Reply to topic  [ 43 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: JavaScript Remake
PostPosted: Mon May 28, 2012 9:12 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
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


Top
 Profile  
 
 Post subject: Re: JavaScript Remake
PostPosted: Mon May 28, 2012 9:22 pm 
Offline
Community Leader
User avatar

Joined: Sun May 28, 2006 10:29 pm
Posts: 1762
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com
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...

_________________
I'm on Facebook! Google Plus LinkedIn My Youtube Channel Send me an email Call me with Skype Check me out on Bitbucket Yup, I'm an EVE Online player!
Why not try my app, ColorEye, on your Android devlce?
Do you like social gaming? Fight it out in Battle Juice!

I am a professional software developer in Salt Lake City, UT.


Top
 Profile  
 
 Post subject: Re: JavaScript Remake
PostPosted: Mon May 28, 2012 9:27 pm 
Offline
Knowledgeable
User avatar

Joined: Sun Nov 19, 2006 6:59 pm
Posts: 213
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


Top
 Profile  
 
 Post subject: Re: JavaScript Remake
PostPosted: Mon May 28, 2012 9:28 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
You have some deciding to do :P

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject: Re: JavaScript Remake
PostPosted: Tue May 29, 2012 4:14 pm 
Offline
Community Leader
User avatar

Joined: Sun May 28, 2006 10:29 pm
Posts: 1762
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com
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

_________________
I'm on Facebook! Google Plus LinkedIn My Youtube Channel Send me an email Call me with Skype Check me out on Bitbucket Yup, I'm an EVE Online player!
Why not try my app, ColorEye, on your Android devlce?
Do you like social gaming? Fight it out in Battle Juice!

I am a professional software developer in Salt Lake City, UT.


Top
 Profile  
 
 Post subject: Re: JavaScript Remake
PostPosted: Tue May 29, 2012 4:17 pm 
Offline
Persistant Poster

Joined: Fri Jun 26, 2009 10:15 pm
Posts: 701
Google Talk: FAProductions
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.


Top
 Profile  
 
 Post subject: Re: JavaScript Remake
PostPosted: Tue May 29, 2012 4:19 pm 
Offline
Community Leader
User avatar

Joined: Sun May 28, 2006 10:29 pm
Posts: 1762
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com
But rest assured, if you suddenly started using a lot, you'd be getting a call :-)

_________________
I'm on Facebook! Google Plus LinkedIn My Youtube Channel Send me an email Call me with Skype Check me out on Bitbucket Yup, I'm an EVE Online player!
Why not try my app, ColorEye, on your Android devlce?
Do you like social gaming? Fight it out in Battle Juice!

I am a professional software developer in Salt Lake City, UT.


Top
 Profile  
 
 Post subject: Re: JavaScript Remake
PostPosted: Tue May 29, 2012 4:23 pm 
Offline
Persistant Poster

Joined: Fri Jun 26, 2009 10:15 pm
Posts: 701
Google Talk: FAProductions
Lea wrote:
But rest assured, if you suddenly started using a lot, you'd be getting a call :-)


And if need be, I'd be getting a lawyer. It states I have unlimited bandwidth. They can't change their mind just cause I'm actually using it. Lol. That's false advertisement. ;)


Top
 Profile  
 
 Post subject: Re: JavaScript Remake
PostPosted: Tue May 29, 2012 4:29 pm 
Offline
Community Leader
User avatar

Joined: Sun May 28, 2006 10:29 pm
Posts: 1762
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com
There are websocket libraries for android, too......... socket.io and node.js are looking better and better, but I don't feel like learning something new right now :-)

I'll start making a plan, we can probably launch crossplatform pretty easily, especially if I'm not the only one working on it..... my side projects get pushed to the ... side... as soon as i get busy at work, but I got ahead of schedule over the long weekend so :-)

_________________
I'm on Facebook! Google Plus LinkedIn My Youtube Channel Send me an email Call me with Skype Check me out on Bitbucket Yup, I'm an EVE Online player!
Why not try my app, ColorEye, on your Android devlce?
Do you like social gaming? Fight it out in Battle Juice!

I am a professional software developer in Salt Lake City, UT.


Top
 Profile  
 
 Post subject: Re: JavaScript Remake
PostPosted: Thu May 31, 2012 1:34 am 
Offline
Regular

Joined: Sun Apr 26, 2009 11:22 pm
Posts: 43
Location: Cincinnati, OH
Google Talk: rj.cox101@gmail.com
Take a look at BrowserQuest .. They have a github which you could fork and make your engine off of


Top
 Profile  
 
 Post subject: Re: JavaScript Remake
PostPosted: Thu May 31, 2012 2:27 am 
Offline
Community Leader
User avatar

Joined: Sun May 28, 2006 10:29 pm
Posts: 1762
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com
nice! Definitely going to check this out!

_________________
I'm on Facebook! Google Plus LinkedIn My Youtube Channel Send me an email Call me with Skype Check me out on Bitbucket Yup, I'm an EVE Online player!
Why not try my app, ColorEye, on your Android devlce?
Do you like social gaming? Fight it out in Battle Juice!

I am a professional software developer in Salt Lake City, UT.


Top
 Profile  
 
 Post subject: Re: JavaScript Remake
PostPosted: Thu May 31, 2012 3:35 am 
Offline
Persistant Poster
User avatar

Joined: Tue May 30, 2006 2:07 am
Posts: 836
Location: Nashville, Tennessee, USA
Google Talk: rs.ruggles@gmail.com
unknown wrote:
Take a look at BrowserQuest .. They have a github which you could fork and make your engine off of


This game was so fun. I found it, got nostalgic of Mirage, and basically beat it (earned every achievement and got the best gear) in one sitting. Only took two hours tops, but still, tremendously fun.

_________________
I'm on Facebook! Google Plus My Youtube Channel My Steam Profile

Image


Top
 Profile  
 
 Post subject: Re: JavaScript Remake
PostPosted: Fri Jun 01, 2012 12:51 am 
Offline
Pro

Joined: Mon May 29, 2006 5:01 pm
Posts: 420
Location: Canada, BC
Google Talk: anthony.fleck@gmail.com
Wasn't Liam/Fox working on a Java port of MS? Can't remember the project name or find a URL atm..


Top
 Profile  
 
 Post subject: Re: JavaScript Remake
PostPosted: Fri Jun 01, 2012 1:01 am 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
Anthony wrote:
Wasn't Liam/Fox working on a Java port of MS? Can't remember the project name or find a URL atm..

That was shutdown some time ago. And I think he was just making his own game, nothing related to mirage really.

http://www.mirage-realms.com/community/newspage.php

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject: Re: JavaScript Remake
PostPosted: Sat Jun 02, 2012 2:06 pm 
Offline
Knowledgeable
User avatar

Joined: Sun Nov 19, 2006 6:59 pm
Posts: 213
So I've started working on a super basic prototype, but I've hit my first kind of big snag - UI's using the canvas. I'm looking into it now, but there doesn't seem to be many good UI frameworks for the <canvas> tag, and re-implementing all of the UI functionalities that you'd expect (caret, text selection, copy / paste, etc.) is a huge pain in the ass.

Lame. :(

Edit: Now that I'm looking at it, it seems that doing this is against best practice, and it's better to render DOM elements above the canvas. This could save quite a lot of hassle.

_________________
Image


Top
 Profile  
 
 Post subject: Re: JavaScript Remake
PostPosted: Sat Jun 02, 2012 5:27 pm 
Offline
Community Leader
User avatar

Joined: Sun May 28, 2006 10:29 pm
Posts: 1762
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com
take a look at stuff like tweenMax http://www.greensock.com/v12/

and paper.js http://paperjs.org

but yes, I'd be tempted to do the UI outside of the canvas and do only the heavy duty drawing on it. Of course, it depends how complex you want the UI... but it absolutely positioned divs you can do just about anything amirite?

_________________
I'm on Facebook! Google Plus LinkedIn My Youtube Channel Send me an email Call me with Skype Check me out on Bitbucket Yup, I'm an EVE Online player!
Why not try my app, ColorEye, on your Android devlce?
Do you like social gaming? Fight it out in Battle Juice!

I am a professional software developer in Salt Lake City, UT.


Top
 Profile  
 
 Post subject: Re: JavaScript Remake
PostPosted: Sat Jun 02, 2012 5:31 pm 
Offline
Knowledgeable
User avatar

Joined: Sun Nov 19, 2006 6:59 pm
Posts: 213
Well, the system I've made so far allows you to create UI components either canvas-rendered or through a DOM element, while wrapping it all in a common interface (for things like positioning, dimensions, and focus) and it seems to work fine so far!

_________________
Image


Top
 Profile  
 
 Post subject: Re: JavaScript Remake
PostPosted: Tue Nov 02, 2021 7:05 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
nikt323.1PERFBettRobeWindFrieAndrBusiAnneJeffTescPensOrieTescOrieThisRivePunkannoZoneBeenRond
AtlaRondTescCarnPenhDoveMemoWilhsunsDoctWhatWillGeorAhavGezaGustSpicTimoAntoAnneRobeSammaliv
JardGuitYureSayiJeweHenrElecLoonWaynVoluEricNeriSomaFourLemoEduaXVIIStepNikiSelachaeGeorTras
ProgSaidIrviBradXVIIIdriApesZoneVentSonyMORGMiddJeweArtsJameSpoiGlenWildRondPHINGoodAllmZone
BertViraRXODWalkSwarZoneHoldIntrJuliEndrZoneShorWindZoneZoneZoneGeorTourPaulXVIIMikaJeweJewe
DaviPeteWeltLancStieOPALBoscOverBoyaChihToloBookPariBLACPETEPolaOlmeFlipWindARAGXXIIPathFolk
VODKEducenfaKarlEpsoFourWindIronWindwwwrMagnBoscBonuCaroEukaAndrViolElenSleePeteStepLewiKeit
TaxmdiskVIIIJennUptoClauXVIIServAcadAlbeGablVIIIISDNGaaaDissNextTerelongFendNickpersNigeEdou
OxfoExceTravLispParaJeffBrooMarkDeutXVIILawrEspaHarrLucaPresJeanmakeWordAutoAndrWindLancLanc
LancIUCNJeweReviLoveFranRockWindWhenGaiuAnotABBYTenntuchkasSaraOnce


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 43 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 7 guests


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:  
Powered by phpBB® Forum Software © phpBB Group