Hello guys,<div><br></div><div>Well I used fixed coordinates because that's the way it was done in the original Conozco Urugay (see datos/ciudades.txt)</div><div><br></div><div>Gabriel, if you need help I translating think I can give you hand, I don't no much about spanish but portuguese is my mother language and they are not that different :)</div>
<div><br></div><div>Take care,</div><div>Jose<br><br><div class="gmail_quote">On Fri, Oct 9, 2009 at 1:11 PM, Gabriel Eirea <span dir="ltr"><<a href="mailto:geirea@gmail.com">geirea@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
This is extremely cool.<br>
<br>
I agree with Bryan that it would be great to have svg from the start.<br>
I used a fixed bitmap image and then it became very difficult for<br>
scaling. Now I'm working in zoomed-in versions for very local<br>
information, and I need to draw a new map for each one of the zones.<br>
The holy grail would be to have true cartographic information with<br>
different projections, then you could use GPS data and all kind of<br>
interesting options would open for us. Of course, this was not<br>
necessary for Uruguay because it is such a small country, but it may<br>
be necessary for larger countries or continents if you want to be able<br>
to zoom in and out.<br>
<br>
For those asking for translations, I apologize for not being very<br>
international. Almost all the strings are located in the file<br>
datos/niveles.txt. You can read about it here (in Spanish and<br>
unfinished yet, sorry):<br>
<br>
<a href="http://drupal.ceibaljam.org/?q=node/46" target="_blank">http://drupal.ceibaljam.org/?q=node/46</a><br>
<br>
I'm trying to improve internationalization for the next version.<br>
There's even a Conozco Perú brewing somewhere in the Andes.<br>
<br>
Regards,<br>
<br>
Gabriel<br>
<br>
<br>
2009/10/9 Bryan Berry <<a href="mailto:bryan@olenepal.org">bryan@olenepal.org</a>>:<br>
<div><div></div><div class="h5">> Hey Ze,<br>
><br>
> Great start!<br>
><br>
> I cloned your git repo and made a few changes<br>
> <a href="http://github.com/bryanwb/Conozco-Uruguay" target="_blank">http://github.com/bryanwb/Conozco-Uruguay</a><br>
><br>
><br>
> Just a few notes:<br>
><br>
> U don't need the xml declaration anymore w/ html5<br>
> so <?xml version="1.0" encoding="iso-8859-1"?> and<br>
> xmlns="<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>" are no longer needed<br>
><br>
> all u need is <!DOCTYPE html><br>
><br>
> I have copied the needed js files into js/ so u can run it as a<br>
> standalone. Perhaps I should create a karma-base package that just has<br>
> all requirements for creating a standalone lesson and nothing more.<br>
><br>
> You can use jquery methods to make your code more succinct<br>
><br>
> for instance:<br>
><br>
> document.getElementById('mycanvas').addEventListener( . . .<br>
><br>
> can become<br>
><br>
> $('#mycanvas').bind('click', clicked, false);<br>
><br>
> and<br>
><br>
> document.getElementById('question').innerHTML = q.getPhrase;<br>
><br>
> can become<br>
><br>
> $('#question').html(q.getPhrase);<br>
><br>
><br>
> I also see that you used static coordinates to represent the cities.<br>
> This means the image can't be resized for different screen resolutions.<br>
> It would be neat if we could do the same image as an SVG w/ the names of<br>
> the capitals embedded as nodes. Then you could attach an event listener<br>
> to each node.<br>
><br>
> Each node would have an ID matching the City name and class="cities".<br>
> You could then match the ID of the element clicked on against the city<br>
> named in the question.<br>
><br>
> Unfortunately, I have no idea how to do this ;)<br>
><br>
><br>
> On Thu, 2009-10-08 at 18:04 +0100, Ze maria wrote:<br>
>> Hello guys,<br>
>> I started a port of the activity "Conozco Uruguay" (available at<br>
>> <a href="http://activities.sugarlabs.org/en-US/sugar/addon/4199" target="_blank">http://activities.sugarlabs.org/en-US/sugar/addon/4199</a>) from Python to<br>
>> the new Karma framework (downloaded from:<br>
>> <a href="http://git.sugarlabs.org/projects/karma" target="_blank">http://git.sugarlabs.org/projects/karma</a>).<br>
>> I'm new to html5 and to the canvas element so don't be scared by the<br>
>> lookn'feel :)<br>
>><br>
>><br>
>> Currently to only thing implemented is the capital game, where a<br>
>> person guesses where which capital of the state is located.<br>
>><br>
>><br>
>> By the way, I coulnd't get to work the Raphael function 'print', every<br>
>> time I try to use I get a :<br>
>><br>
>><br>
>> Error: f.fonts is undefined<br>
>> Source File:<br>
>> file:///Users/zemariamm/workspace/olenepal/mainline/js/raphael-min.js<br>
>> Line: 7<br>
>><br>
>><br>
>><br>
>><br>
>> The code is available at <a href="http://github.com/zemariamm/Conozco-Uruguay" target="_blank">http://github.com/zemariamm/Conozco-Uruguay</a><br>
>> Comments, critics and sugestions are all welcome :)<br>
>><br>
>><br>
>> (To run the code just download the new karma framework and drop the<br>
>> urugay activity code in the lessons directory)<br>
>><br>
>><br>
>> Take care,<br>
>> Jose<br>
>> _______________________________________________<br>
>> Sugar-devel mailing list<br>
>> <a href="mailto:Sugar-devel@lists.sugarlabs.org">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>
> Bryan W. Berry<br>
> Senior Engineer<br>
> OLE Nepal, <a href="http://www.olenepal.org" target="_blank">http://www.olenepal.org</a><br>
><br>
> _______________________________________________<br>
> Sugar-devel mailing list<br>
> <a href="mailto:Sugar-devel@lists.sugarlabs.org">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>
</div></div></blockquote></div><br></div>