maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   Geography game for the N900 by me (https://talk.maemo.org/showthread.php?t=50501)

ErikHK 2010-04-19 20:39

Geography game for the N900 by me
 
I'm working on a geography game for the N900 http://erikhk.net/tmp/leif_n900.png

Here the game is in practice mode, if you click on a country it will display the name of it. Otherwise it will display a country name and you're supposed to click on the right one. It is not at all finished and it needs packaging, but if you want to try it out/play with it, you can download it from http://www.erikhk.net/tmp/leif.tar
You'll need python-lxml to run it, I think it is in some dev/extras repository

sudo gainroot
apt-get install python-lxml

To "install"/play it, place it somewhere and unpack it with

tar -xvvf leif.tar

Then a dir called leif/ is created, then do:

cd leif/src/
python main_menu.py

Now the game should start, just choose New Game (Options is not finished, unfortunately)

If you want to create your own maps you "just" have to create an svg map in res/ with an id on every path, then you connect that id to the name of the country/whatever with an xml file with the same name in res/names/, then change the call to Game() in main_menu.py

Andy1210 2010-04-19 20:43

Re: Geography game for the N900 by me
 
nice idea :) and nice work. When you upload this to extras_devel, then i will install :)

edit: pls create custom language support!

ErikHK 2010-04-20 12:14

Re: Geography game for the N900 by me
 
Quote:

Originally Posted by Andy1210 (Post 618359)
nice idea :) and nice work. When you upload this to extras_devel, then i will install :)

edit: pls create custom language support!

Nice. I have custom language support, it's in English as default, but my two maps I've done (I will do more of course) exist in both English and Swedish. If you want it isn't that difficult to add other languages if you know some basic XML.

I forgot to add that there are still a lot of bugs, and that you can zoom in and out with + and - (Fn-S and Fn-F) and pan around with the arrow keys.

ErikHK 2010-04-23 00:22

Re: Geography game for the N900 by me
 
It seems as though I've managed to add it to the extras-devel repository, just do a apt-get update and apt-get install leif, and you should be good to go. The options menu still doesn't work, so it's currently just in training mode on Europe actually :P And the game is pretty slow aswell..

If it doesn't work, try this as root:
chmod +x /opt/leif/src/main_menu.py


All times are GMT. The time now is 02:31.

vBulletin® Version 3.8.8