Active Topics

 



Notices


Reply
Thread Tools
Posts: 15 | Thanked: 10 times | Joined on Apr 2010
#1
I'm working on a geography game for the N900

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
 

The Following 3 Users Say Thank You to ErikHK For This Useful Post:
Andy1210's Avatar
Posts: 233 | Thanked: 220 times | Joined on Jan 2010 @ Hungary
#2
nice idea and nice work. When you upload this to extras_devel, then i will install

edit: pls create custom language support!
__________________
Nokia N950 - PR1.3
OpenSUSE 12.2 / Windows 8
 
Posts: 15 | Thanked: 10 times | Joined on Apr 2010
#3
Originally Posted by Andy1210 View Post
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.
 
Posts: 15 | Thanked: 10 times | Joined on Apr 2010
#4
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
 

The Following User Says Thank You to ErikHK For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 21:20.