Michael Siebert
2006-Jul-23 10:33 UTC
[slightly OT] ajax calls, interpolating inbetween, moving ships and a map
Hello there, since this is the greatest gathering of JS gurus all over the world, i have a question not directly related to Prototype and Scriptaculous. I need to mak a map of a certain part of the space (a system, sotosay). Displaying it is not a problem, panning and zooming works great (thanks to prototype). My question is mor design-related. In the sytem, i have spaceships that are moving on a know route, (via backgroundrb) so the database is updating every few seconds. These changes shall be propagated to the user of the application, that works well via ajax calls an PeriodicalExecuter. I dont want the resolution of the executer keep as low as possible by interpolating the movement of the ships. You see, thats a complex problem (at least for me, although i think im no a bad programmer). and now my question: whats the best way to accomplish all this? i dont want the complete sourcecode, i want some ideas, because i think that my approach is ... unfitting, not to say shit. How would you solve this? I really dot have any ideas anymore... greets -- Michael Siebert <info-norLuBQQNv0t+8dGM1inlw@public.gmane.org> www.stellar-legends.de - Weltraum-Browsergame im Alpha-Stadium _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Ryan Gahl
2006-Jul-23 19:06 UTC
Re: [slightly OT] ajax calls, interpolating inbetween, moving ships and a map
Hmm, sounds interesting, any way we can log in to that link you provided in your signature or see some example of the problem? On 7/23/06, Michael Siebert <info-norLuBQQNv0t+8dGM1inlw@public.gmane.org> wrote:> > Hello there, > since this is the greatest gathering of JS gurus all over the world, i > have a question not directly related to Prototype and Scriptaculous. I need > to mak a map of a certain part of the space (a system, sotosay). Displaying > it is not a problem, panning and zooming works great (thanks to prototype). > My question is mor design-related. In the sytem, i have spaceships that are > moving on a know route, (via backgroundrb) so the database is updating every > few seconds. > These changes shall be propagated to the user of the application, that > works well via ajax calls an PeriodicalExecuter. I dont want the resolution > of the executer keep as low as possible by interpolating the movement of the > ships. You see, thats a complex problem (at least for me, although i think > im no a bad programmer). and now my question: whats the best way to > accomplish all this? i dont want the complete sourcecode, i want some ideas, > because i think that my approach is ... unfitting, not to say shit. > How would you solve this? I really dot have any ideas anymore... > > greets > > -- > Michael Siebert <info-norLuBQQNv0t+8dGM1inlw@public.gmane.org> > > www.stellar-legends.de - Weltraum-Browsergame im Alpha-Stadium > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > >_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Michael Siebert
2006-Jul-24 09:28 UTC
Re: [slightly OT] ajax calls, interpolating inbetween, moving ships and a map
sure you can... just click "registrieren" on the login page, type in some stuff and you should be able to login. to get to the map once you''re logged in, clickon "navigation" in the menu. be sure to see the tiny plus and minus zoom links just above of the map, otherwise you can''t pan the map. the map code can be found in http://stellar-legends.de/javascripts/slmap.js, but its still undocumented 2006/7/23, Ryan Gahl <ryan.gahl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> > Hmm, sounds interesting, any way we can log in to that link you provided > in your signature or see some example of the problem? > > On 7/23/06, Michael Siebert <info-norLuBQQNv0t+8dGM1inlw@public.gmane.org> wrote: > > > Hello there, > since this is the greatest gathering of JS gurus all over the world, i > have a question not directly related to Prototype and Scriptaculous. I need > to mak a map of a certain part of the space (a system, sotosay). Displaying > it is not a problem, panning and zooming works great (thanks to prototype). > My question is mor design-related. In the sytem, i have spaceships that are > moving on a know route, (via backgroundrb) so the database is updating every > few seconds. > These changes shall be propagated to the user of the application, that > works well via ajax calls an PeriodicalExecuter. I dont want the resolution > of the executer keep as low as possible by interpolating the movement of the > ships. You see, thats a complex problem (at least for me, although i think > im no a bad programmer). and now my question: whats the best way to > accomplish all this? i dont want the complete sourcecode, i want some ideas, > because i think that my approach is ... unfitting, not to say shit. > How would you solve this? I really dot have any ideas anymore... > > greets > > -- > Michael Siebert < info-norLuBQQNv0t+8dGM1inlw@public.gmane.org> > > www.stellar-legends.de - Weltraum-Browsergame im Alpha-Stadium > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > >-- Michael Siebert <info-norLuBQQNv0t+8dGM1inlw@public.gmane.org> www.stellar-legends.de - Weltraum-Browsergame im Alpha-Stadium _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs