Thread
:
[Announce] Mokomaze - great opensource Labirynth clone ported to N900
View Single Post
rcull
2011-01-14 , 15:37
Posts: 299 | Thanked: 168 times | Joined on Jun 2006 @ Wales UK
#
83
New translevel script attached. This script expects to find a folder under MyDocs named levels:- ie MyDocs/levels/
Within this folder the script expects files with names n.txt ie:-
1.txt, 2.txt .....
The script needs two parameters 'Name of level' and 'author' in inverted commas ie
Code:
./translevel "New levels" "Anon"
This will create a file in MyDocs/levels named main.levelpack.json also attached to this post is wall.png, desk.png, config.json and main.levelpack.json ( Teeter levels ).
EDIT: the levelpack is zipped into main.zip - drop all .txt extensions
In root navigate to /opt/mokomaze/data and rename these four files with for instance .old ie.
Code:
mv wall.png wall.png.old
and then copy the attached four files to the current directory.
You're done.
Try It
Editing config.json is just a matter of changing the res so do that instead if your confident with vi.
These levels are 800x480 so to run the originals you will have to put all back as you found it.
ie
Code:
mv wall.png.old wall.png
etc
To reset levels - edit /home/user/.mokomaze/user.json changing both the level and max_levels to 1 or whatever level you want to start at.
As they're both 800x480, wall.png and desk.png can be swapped to get a green background with brushed steel walls and obviously any two .png of the right resolution can be used - ( keep in mind the text overlays ).
I haven't tried it yet but there is a 'levelpack' parameter in user.json - maybe we can have more levelpacks and change this parameter to suit. It obviously wouldn't work unless all are the same resolution.
Attached Images
Attached Files
config.json.txt
(405 Bytes, 111 views)
main.zip
(7.1 KB, 114 views)
TransLevel.txt
(1.6 KB, 115 views)
__________________
Class .. :
Power User,Tester,Apprentice Developer
Humor .. : [
#####-----
] Alignment:
Gadget Junky,Grumpy old man
Patience : [
##########
] Weapon(s):
Indifference
Agro ... : |
##--------
] Relic(s) :
770,N800,eee
Quote & Reply
|
The Following 2 Users Say Thank You to rcull For This Useful Post:
Mentalist Traceur
,
zehjotkah
rcull
View Public Profile
Send a private message to rcull
Find all posts by rcull