Re: [Sugar-devel] cool animation w/ all-javascript space invaders
>create an Audio object that uses flash or >plugin media players in the background for backwards compatibility Yes, that's right. Since it exists "new Image()" new Audio() seems familiar. Thanks for your advise. 2009/6/4 Lucian Branescu > For sound, you'll either have to find a wrapper that can use both > and flash or use (or more precisely use it with > scripting, new Audio()) and create an Audio object that uses flash or > plugin media players in the background for backwards compatibility > (which can use soundmanager or whatever else you like). > > 2009/6/4 Felipe López Toledo : > > nice example > > > > it has a tween.js with easing equations - excellent > > > > about the sounds (here is the tricky part) > > it uses soundmanager2 http://www.schillmania.com/projects/soundmanager2/ > > really really usefulbut it depends on a swf file (soundmanager2.swf) > in > > the background.. so, if you don't have the flash plugin the sounds don't > > work :( > > > > here is more information about the flash based solution > > http://www.boutell.com/newfaq/creating/scriptsound.html > > > > there is also other flash audio wrappers > > like JS Sound Kit http://jssoundkit.sourceforge.net/ > > > > also, I found a (ugly) java applet solution :S > > > > and jQuery has its own sound plugin > http://plugins.jquery.com/project/sound > > that was useless > > > > so > > > > why not to use ? > > > > here it is :) http://karma.sugarlabs.org/can_cant/ > > btw It's simpler than the others > > > > > > 2009/6/3 Lucian Branescu > >> > >> Very interesting, especially because of its browser support. > >> > >> 2009/6/3 Bryan Berry : > >> > http://static.boundvariable.com/space-invaders/ > >> > > >> > does most of the animation that we need using raphaeljs, which uses > svg > >> > and not canvas http://www.raphaeljs.com > >> > > >> > -- > >> > Bryan W. Berry > >> > Technology Director > >> > OLE Nepal, http://www.olenepal.org > >> > > >> > ___ > >> > Sugar-devel mailing list > >> > Sugar-devel@lists.sugarlabs.org > >> > http://lists.sugarlabs.org/listinfo/sugar-devel > >> > > > > > > ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] cool animation w/ all-javascript space invaders
regrettably, i haven't tried it on the XO. given that there is no wireless where i am right now, probably won't try it immediately I see no reason why js animations can't work on the XO. It all depends on the particular user used. On Fri, 2009-06-05 at 10:03 +0200, NoiseEHC wrote: > Bryan Berry wrote: > > http://static.boundvariable.com/space-invaders/ > > > > does most of the animation that we need using raphaeljs, which uses svg > > and not canvas http://www.raphaeljs.com > > > > > Have you tried it on an XO? I just had this "experience". Seems to me > that we will not do animation with js ever... > -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] cool animation w/ all-javascript space invaders
2009/6/5 NoiseEHC : > Have you tried it on an XO? I just had this "experience". Seems to me > that we will not do animation with js ever... Well, I don't think the js in that game is optimised at all. Very jerky on my mid-range (non-XO) laptop. There's lots of nice tricks you can do when scripting games in HLLs. I wrote fairly snappy games with Macromind Director 3 in the era of 1x CDROMS and the 'MPC' ;-) More recently, I've seen Mihai Suncan's Paintweb go from unusably slow to very usable on the XO. The xulrunner behind Browse.xo is fairly fast, you just have to be smart in how you use it :-) cheers, m -- martin.langh...@gmail.com mar...@laptop.org -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] cool animation w/ all-javascript space invaders
Bryan Berry wrote: > http://static.boundvariable.com/space-invaders/ > > does most of the animation that we need using raphaeljs, which uses svg > and not canvas http://www.raphaeljs.com > > Have you tried it on an XO? I just had this "experience". Seems to me that we will not do animation with js ever... ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] cool animation w/ all-javascript space invaders
For sound, you'll either have to find a wrapper that can use both and flash or use (or more precisely use it with scripting, new Audio()) and create an Audio object that uses flash or plugin media players in the background for backwards compatibility (which can use soundmanager or whatever else you like). 2009/6/4 Felipe López Toledo : > nice example > > it has a tween.js with easing equations - excellent > > about the sounds (here is the tricky part) > it uses soundmanager2 http://www.schillmania.com/projects/soundmanager2/ > really really usefulbut it depends on a swf file (soundmanager2.swf) in > the background.. so, if you don't have the flash plugin the sounds don't > work :( > > here is more information about the flash based solution > http://www.boutell.com/newfaq/creating/scriptsound.html > > there is also other flash audio wrappers > like JS Sound Kit http://jssoundkit.sourceforge.net/ > > also, I found a (ugly) java applet solution :S > > and jQuery has its own sound plugin http://plugins.jquery.com/project/sound > that was useless > > so > > why not to use ? > > here it is :) http://karma.sugarlabs.org/can_cant/ > btw It's simpler than the others > > > 2009/6/3 Lucian Branescu >> >> Very interesting, especially because of its browser support. >> >> 2009/6/3 Bryan Berry : >> > http://static.boundvariable.com/space-invaders/ >> > >> > does most of the animation that we need using raphaeljs, which uses svg >> > and not canvas http://www.raphaeljs.com >> > >> > -- >> > Bryan W. Berry >> > Technology Director >> > OLE Nepal, http://www.olenepal.org >> > >> > ___ >> > Sugar-devel mailing list >> > Sugar-devel@lists.sugarlabs.org >> > http://lists.sugarlabs.org/listinfo/sugar-devel >> > > > ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] cool animation w/ all-javascript space invaders
nice example it has a tween.js with easing equations - excellent about the sounds (here is the tricky part) it uses soundmanager2 http://www.schillmania.com/projects/soundmanager2/ really really usefulbut it depends on a swf file (soundmanager2.swf) in the background.. so, if you don't have the flash plugin the sounds don't work :( here is more information about the flash based solution http://www.boutell.com/newfaq/creating/scriptsound.html there is also other flash audio wrappers like JS Sound Kit http://jssoundkit.sourceforge.net/ also, I found a (ugly) java applet solution :S and jQuery has its own sound plugin http://plugins.jquery.com/project/sound that was useless so why not to use ? here it is :) http://karma.sugarlabs.org/can_cant/ btw It's simpler than the others 2009/6/3 Lucian Branescu > Very interesting, especially because of its browser support. > > 2009/6/3 Bryan Berry : > > http://static.boundvariable.com/space-invaders/ > > > > does most of the animation that we need using raphaeljs, which uses svg > > and not canvas http://www.raphaeljs.com > > > > -- > > Bryan W. Berry > > Technology Director > > OLE Nepal, http://www.olenepal.org > > > > ___ > > Sugar-devel mailing list > > Sugar-devel@lists.sugarlabs.org > > http://lists.sugarlabs.org/listinfo/sugar-devel > > > ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] cool animation w/ all-javascript space invaders
Very interesting, especially because of its browser support. 2009/6/3 Bryan Berry : > http://static.boundvariable.com/space-invaders/ > > does most of the animation that we need using raphaeljs, which uses svg > and not canvas http://www.raphaeljs.com > > -- > Bryan W. Berry > Technology Director > OLE Nepal, http://www.olenepal.org > > ___ > Sugar-devel mailing list > Sugar-devel@lists.sugarlabs.org > http://lists.sugarlabs.org/listinfo/sugar-devel > ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] cool animation w/ all-javascript space invaders
http://static.boundvariable.com/space-invaders/ does most of the animation that we need using raphaeljs, which uses svg and not canvas http://www.raphaeljs.com -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel