Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expanded McMapBook to do the font writing and word-wrapping. Now basically functional. Need to add hyphenation.
- Loading branch information
Kroc Camen
committed
Oct 30, 2011
1 parent
2ca5887
commit f5f5257
Showing
15 changed files
with
314 additions
and
24 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
McMaps © Copyright cc-by 3.0 Kroc Camen of Camen Design | ||
======================================================= | ||
The code and other resources of this project are licensed under a | ||
Creative Commons 3.0 Attribution Unported licence (unless otherwise | ||
stated), viewable here: | ||
|
||
http://creativecommons.org/licenses/by/3.0/deed.en_GB | ||
|
||
What does this mean? This means that you may do anything you want with | ||
this code, as long as you give credit. How you decide to give credit is | ||
up to you. | ||
|
||
NOTE: The fonts included with the code are licenced under their own | ||
terms, please see fonts/LICENCE.txt. Please be aware of this when | ||
redistributing McMaps in any way. | ||
|
||
|
||
Warranty: | ||
========= | ||
Or lack there-of. No warranty is provided. Once you download this code, | ||
it's yours and your responsibility. The authors are not liable for any | ||
damage, loss of time, money or security breaches. You are expected to | ||
test the code yourself in the environment you are deploying it. | ||
|
||
|
||
Licence Text: | ||
============= | ||
Creative Commons Attribution 3.0 Unported (CC BY 3.0) | ||
|
||
You are free: | ||
|
||
• To Share — to copy, distribute and transmit the work | ||
• To Remix — to adapt the work | ||
|
||
Under the following conditions: | ||
|
||
• Attribution — You must attribute the work in the manner | ||
specified by the author or licensor (but not in any way that | ||
suggests that they endorse you or your use of the work). | ||
|
||
With the understanding that: | ||
|
||
• Waiver — Any of the above conditions can be waived if you get | ||
permission from the copyright holder. | ||
|
||
• Public Domain — Where the work or any of its elements is in the | ||
public domain under applicable law, that status is in no way | ||
affected by the license. | ||
|
||
• Other Rights — In no way are any of the following rights | ||
affected by the license: | ||
|
||
+ Your fair dealing or fair use rights, or other | ||
applicable copyright exceptions and limitations; | ||
|
||
+ The author's moral rights; | ||
|
||
+ Rights other persons may have either in the work itself | ||
or in how the work is used, such as publicity or | ||
privacy rights. | ||
|
||
|
||
Notice — For any reuse or distribution, you must make clear to others | ||
the license terms of this work. The best way to do this is provide a | ||
copy of this file, or link to this file on the web. | ||
|
||
This is a human-readable summary of the Legal Code (the full license), | ||
which can be found at: | ||
|
||
http://creativecommons.org/licenses/by/3.0/legalcode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Fonts: | ||
|
||
./04b03/ | ||
"04b-03" - Copyright © 1998-2003 Yuji Yoshimoto - <dsg4.com/04> | ||
'Freeware - You may use them as you like' | ||
|
||
./alicia_marie/ | ||
"Alicia Marie" - Alicia Rios | ||
'Free for personal use' | ||
|
||
./cazoom.ttf | ||
"CaZOOM" - Sara Batchelor | ||
'Free for personal use' | ||
|
||
./handy00.ttf | ||
"Handy" - Cal Henderson - <iamcal.com/misc/fonts> | ||
'Free' | ||
|
||
./nayupixel.ttf | ||
"Nayupixel" - Nathalie D. - <twitter.com/nnathaliee> | ||
'Free for personal use' | ||
|
||
./uni_05_x/ | ||
Uni 05 - Craig Kroeger - <miniml.com> | ||
'free to use in commercial or personal work' | ||
|
||
./XPAIDERP.TTF | ||
Pixel Explosion 01 - Xpaider | ||
? - assumed free |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule nbt
updated
from a62595 to 4e85a9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/usr/bin/php | ||
<?php | ||
|
||
/* NOTE: This is a shell script. Please make it executable (`chmod +x test.php.sh`), | ||
and run it from the terminal (`./test.php.sh`). | ||
*/ | ||
|
||
include 'mcmap.php'; | ||
include 'mcmapbook.php'; | ||
|
||
$book = new McMapBook ( | ||
//the full path to the data folder of the Minecraft world, e.g. '~/Application Support/minecraft/saves/World1/data/' | ||
'.', | ||
//the map ID to begin writing at, i.e. 'map_0.dat' | ||
0 | ||
); | ||
|
||
//note: ensure the number of maps required already exist in your minecraft world, if you use McMaps to generate a map that | ||
// hasn’t yet been crafted in the game, when you craft it, it will be overwritten. just run your McMaps script again | ||
|
||
//you can use the next ID returned to start the next book | ||
$next_id = $book->generate (<<<TXT | ||
Leisure by W. H. Davies | ||
What is this life if, full of care, we have no time to stand and stare?— | ||
No time to stand beneath the boughs, and stare as long as sheep and cows: | ||
No time to see, when woods we pass, where squirrels hide their nuts in grass: | ||
No time to see, in broad daylight, streams full of stars, like skies at night: | ||
No time to turn at Beauty's glance, and watch her feet, how they can dance: | ||
No time to wait till her mouth can enrich that smile her eyes began? | ||
A poor life this if, full of care, we have no time to stand and stare. | ||
TXT | ||
); | ||
|
||
?> |