<div dir="ltr"><div><br></div>Fixed !!!<div><br></div><div>In fact I should have left the last line in loader.js (something like require(SUGAR_LIB))</div><div class="gmail_extra"><br></div><div class="gmail_extra">Regards<br>
<br><div class="gmail_quote">2014/1/24 laurent bernabe <span dir="ltr"><<a href="mailto:laurent.bernabe@gmail.com" target="_blank">laurent.bernabe@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Thank you very much.<div><br></div><div>I've tried to modify what needed to be modified in my LearnChess project (<a href="https://git.sugarlabs.org/learnchess/learnchess_web" target="_blank">https://git.sugarlabs.org/learnchess/learnchess_web</a>), but it seem that I missed something. (Too hurry to get started with CreateJS :=D, sorry).</div>
<div><br></div><div>Regards</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/24 Manuel Quiñones <span dir="ltr"><<a href="mailto:manuq@laptop.org" target="_blank">manuq@laptop.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2014/1/24 laurent bernabe <<a href="mailto:laurent.bernabe@gmail.com" target="_blank">laurent.bernabe@gmail.com</a>><br>
><br>
> Thank you,<br>
><br>
> The most challenging task that I am facing in my development beginning, is to get the libraries easel.js and tween.js work as shim dependencies of require.js. In fact, I think I could read require.js documentation thousands of times, I won't be able to get started.<br>
<br>
I have created a bootstrap activity for you:<br>
<a href="https://github.com/manuq/createjs-activity-bootstrap" target="_blank">https://github.com/manuq/createjs-activity-bootstrap</a><br>
<br>
The bad thing with CreateJS is that they don't support AMD yet. But see<br>
<a href="https://github.com/CreateJS/EaselJS/wiki/Using-easeljs-and-tweenjs-with-requirejs" target="_blank">https://github.com/CreateJS/EaselJS/wiki/Using-easeljs-and-tweenjs-with-requirejs</a>.<br>
What worked for me:<br>
<br>
./osbuild shell<br>
volo create my-game ./sugar-web-template<br>
cd my-game/lib<br>
wget <a href="http://code.createjs.com/easeljs-0.7.1.min.js" target="_blank">http://code.createjs.com/easeljs-0.7.1.min.js</a><br>
mv easeljs-0.7.1.min.js easeljs.js<br>
wget <a href="http://code.createjs.com/tweenjs-0.5.1.min.js" target="_blank">http://code.createjs.com/tweenjs-0.5.1.min.js</a><br>
mv tweenjs-0.5.1.min.js tweenjs.js<br>
<br>
And see the changes I did:<br>
<a href="https://github.com/manuq/createjs-activity-bootstrap/commit/79f4e4ed730c71cf42bfa0419f109718fb598fcb" target="_blank">https://github.com/manuq/createjs-activity-bootstrap/commit/79f4e4ed730c71cf42bfa0419f109718fb598fcb</a><br>
<br>
> The other problem, is that I need to put a real canvas element inside the <div id="canvas"> ... but I don't know which size I must give to the canvas in order to fit the sugar Window client area (without the toolbar).<br>
<br>
CreateJS does that for you.<br>
<br>
> At last, and for that they are plenty of documentations, Javascript OOP development is a bit trikier than the Python/Java OOP development<br>
<br>
I have the feeling that I responded this to you already, no?<br>
<br>
> So, how can I go further, at least with points 1) and 2) ?<br>
><br>
> Regards<br>
><br>
><br>
> 2014/1/24 Daniel Narvaez <<a href="mailto:dwnarvaez@gmail.com" target="_blank">dwnarvaez@gmail.com</a>><br>
>><br>
>> Try to share the issues you have been having with web activities, someone might be able to help.<br>
>><br>
>> Android has probably better API and documentation then gtk, but then it won't run on Sugar.<br>
>><br>
>> On Friday, 24 January 2014, laurent bernabe <<a href="mailto:laurent.bernabe@gmail.com" target="_blank">laurent.bernabe@gmail.com</a>> wrote:<br>
>>><br>
>>> Hello everyone,<br>
>>><br>
>>> I've started a new Web project (ChessLearning), but it seems that Web development is not my best skills. However, before turning it into a Python app, I am wondering whether I should do my best to fit the Web Activity development.<br>
>>><br>
>>> For example, I think of an easier Android port, but am I wrong when I say that it is better than Python for that ?<br>
>>><br>
>>> On the other side, Python + GTK3 programming is very hard, as the GTK3 library is not so easy to get used to, and Python version is not as well documented as the C one (Gnome developers fault).<br>
>>><br>
>>> So, I know that may be more a decision of mine, but, what do you advise me ?<br>
>>><br>
>>> Regards,<br>
>>><br>
>>> Laurent Bernabé<br>
>><br>
>><br>
<span><font color="#888888">>><br>
>> --<br>
>> Daniel Narvaez<br>
>><br>
><br>
><br>
> _______________________________________________<br>
> Sugar-devel mailing list<br>
> <a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
> <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
><br>
<br>
<br><span class="HOEnZb"><font color="#888888">
<br>
--<br>
.. manuq ..<br>
</font></span></font></span></blockquote></div><br></div>
</blockquote></div><br></div></div>