changeset 6:510541745cd1

turned myrrdin into package.
author fred@reichbier.de
date Sat, 19 Jul 2008 15:10:56 +0200
parents f4b89014ad39
children 806b3781f4e4
files bin/gfx/README bin/gfx/f-1.png bin/gfx/f-10.png bin/gfx/f-11.png bin/gfx/f-12.png bin/gfx/f-2.png bin/gfx/f-3.png bin/gfx/f-4.png bin/gfx/f-5.png bin/gfx/f-6.png bin/gfx/f-7.png bin/gfx/f-8.png bin/gfx/f-9.png bin/gfx/grass-stone-water-east.png bin/gfx/grass-stone-water-l.png bin/gfx/grass-stone-water-north.png bin/gfx/grass.png bin/gfx/mountain.png bin/gfx/spacecar-normal.png bin/gfx/spacecar-thrust1.png bin/gfx/spacecar-thrust2.png bin/gfx/water.png bin/map-example.xml bin/tileset-example.xml dsss.conf import/dsss.conf import/myrrdin/animatedsprite.d import/myrrdin/consumer.d import/myrrdin/imagecache.d import/myrrdin/movingfigure.d import/myrrdin/renderer.d import/myrrdin/sprite.d import/myrrdin/spriteconsumer.d import/myrrdin/test.d import/myrrdin/tileconsumer.d import/myrrdin/tilemap.d import/myrrdin/tileset.d import/myrrdin/tools.d import/myrrdin/viewconsumer.d import/myrrdin/xmlmap.d test/bin/gfx/README test/bin/gfx/f-1.png test/bin/gfx/f-10.png test/bin/gfx/f-11.png test/bin/gfx/f-12.png test/bin/gfx/f-2.png test/bin/gfx/f-3.png test/bin/gfx/f-4.png test/bin/gfx/f-5.png test/bin/gfx/f-6.png test/bin/gfx/f-7.png test/bin/gfx/f-8.png test/bin/gfx/f-9.png test/bin/gfx/grass-stone-water-east.png test/bin/gfx/grass-stone-water-l.png test/bin/gfx/grass-stone-water-north.png test/bin/gfx/grass.png test/bin/gfx/mountain.png test/bin/gfx/spacecar-normal.png test/bin/gfx/spacecar-thrust1.png test/bin/gfx/spacecar-thrust2.png test/bin/gfx/water.png test/bin/map-example.xml test/bin/tileset-example.xml test/dsss.conf test/movingfigure/movingfigure.d
diffstat 66 files changed, 357 insertions(+), 216 deletions(-) [+]
line wrap: on
line diff
--- a/bin/gfx/README	Sat Jul 19 14:33:08 2008 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-Most of this graphics are from 'reiners Tileset': http://reinerstileset.4players.de/
-Many thanks, reiner :-)
-
Binary file bin/gfx/f-1.png has changed
Binary file bin/gfx/f-10.png has changed
Binary file bin/gfx/f-11.png has changed
Binary file bin/gfx/f-12.png has changed
Binary file bin/gfx/f-2.png has changed
Binary file bin/gfx/f-3.png has changed
Binary file bin/gfx/f-4.png has changed
Binary file bin/gfx/f-5.png has changed
Binary file bin/gfx/f-6.png has changed
Binary file bin/gfx/f-7.png has changed
Binary file bin/gfx/f-8.png has changed
Binary file bin/gfx/f-9.png has changed
Binary file bin/gfx/grass-stone-water-east.png has changed
Binary file bin/gfx/grass-stone-water-l.png has changed
Binary file bin/gfx/grass-stone-water-north.png has changed
Binary file bin/gfx/grass.png has changed
Binary file bin/gfx/mountain.png has changed
Binary file bin/gfx/spacecar-normal.png has changed
Binary file bin/gfx/spacecar-thrust1.png has changed
Binary file bin/gfx/spacecar-thrust2.png has changed
Binary file bin/gfx/water.png has changed
--- a/bin/map-example.xml	Sat Jul 19 14:33:08 2008 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-<map version="1" width="36" height="10">
-  <tiles tileset="tileset-example.xml">
-    <layer tilewidth="32" tileheight="32">
-      1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
-    </layer>
-    <layer tilewidth="128" tileheight="128">
-            0,3
-    </layer>
-  </tiles>
-</map>
--- a/bin/tileset-example.xml	Sat Jul 19 14:33:08 2008 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-<tileset version="1">
-  <tile id="1" filename="grass.png" />
-  <tile id="2" filename="grass-stone-water-l.png" />
-  <tile id="3" filename="mountain.png" />
-</tileset>
--- a/dsss.conf	Sat Jul 19 14:33:08 2008 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-[src/test.d]
-target = bin/test
-buildflags += -Isrc -I/usr/include/d/ -S/usr/lib -L-ldsfml-graphics -L-ldsfml-window -L-ldsfml-system
-
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/import/dsss.conf	Sat Jul 19 15:10:56 2008 +0200
@@ -0,0 +1,4 @@
+[src/test.d]
+target = bin/test
+buildflags += -Isrc -I/usr/include/d/ -S/usr/lib -L-ldsfml-graphics -L-ldsfml-window -L-ldsfml-system
+
--- a/import/myrrdin/animatedsprite.d	Sat Jul 19 14:33:08 2008 +0200
+++ b/import/myrrdin/animatedsprite.d	Sat Jul 19 15:10:56 2008 +0200
@@ -1,19 +1,25 @@
 /*
-    This file is part of myrrdin.
+    myrrdin, a 2d tile engine
+    Copyright (c) 2008 Friedrich Weber
 
-    myrrdin is free software: you can redistribute it and/or modify
-    it under the terms of the GNU Lesser General Public License as 
-    published by the Free Software Foundation, either version 3 of 
-    the License, or (at your option) any later version.
+    Permission is hereby granted, free of charge, to any person obtaining a copy
+    of this software and associated documentation files (the "Software"), to deal
+    in the Software without restriction, including without limitation the rights
+    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+    copies of the Software, and to permit persons to whom the Software is
+    furnished to do so, subject to the following conditions:
 
-    myrrdin is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU Lesser General Public License for more details.
+    The above copyright notice and this permission notice shall be included in
+    all copies or substantial portions of the Software.
 
-    You should have received a copy of the GNU Lesser General Public 
-    License along with myrrdin. If not, see <http://www.gnu.org/licenses/>.
-*/
+    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+    THE SOFTWARE.
+ */
 
 module animatedsprite;
 
--- a/import/myrrdin/consumer.d	Sat Jul 19 14:33:08 2008 +0200
+++ b/import/myrrdin/consumer.d	Sat Jul 19 15:10:56 2008 +0200
@@ -1,27 +1,33 @@
 /*
-    This file is part of myrrdin.
+    myrrdin, a 2d tile engine
+    Copyright (c) 2008 Friedrich Weber
 
-    myrrdin is free software: you can redistribute it and/or modify
-    it under the terms of the GNU Lesser General Public License as 
-    published by the Free Software Foundation, either version 3 of 
-    the License, or (at your option) any later version.
+    Permission is hereby granted, free of charge, to any person obtaining a copy
+    of this software and associated documentation files (the "Software"), to deal
+    in the Software without restriction, including without limitation the rights
+    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+    copies of the Software, and to permit persons to whom the Software is
+    furnished to do so, subject to the following conditions:
 
-    myrrdin is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU Lesser General Public License for more details.
+    The above copyright notice and this permission notice shall be included in
+    all copies or substantial portions of the Software.
 
-    You should have received a copy of the GNU Lesser General Public 
-    License along with myrrdin. If not, see <http://www.gnu.org/licenses/>.
-*/
+    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+    THE SOFTWARE.
+ */
 
-module consumer;
+module myrrdin.consumer;
 
 import dsfml.window.all;
 import dsfml.system.all;
 import dsfml.graphics.all;
 
-import renderer;
+import myrrdin.renderer;
 
 class Consumer {
     protected Renderer renderer;
--- a/import/myrrdin/imagecache.d	Sat Jul 19 14:33:08 2008 +0200
+++ b/import/myrrdin/imagecache.d	Sat Jul 19 15:10:56 2008 +0200
@@ -1,19 +1,25 @@
 /*
-    This file is part of myrrdin.
+    myrrdin, a 2d tile engine
+    Copyright (c) 2008 Friedrich Weber
 
-    myrrdin is free software: you can redistribute it and/or modify
-    it under the terms of the GNU Lesser General Public License as 
-    published by the Free Software Foundation, either version 3 of 
-    the License, or (at your option) any later version.
+    Permission is hereby granted, free of charge, to any person obtaining a copy
+    of this software and associated documentation files (the "Software"), to deal
+    in the Software without restriction, including without limitation the rights
+    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+    copies of the Software, and to permit persons to whom the Software is
+    furnished to do so, subject to the following conditions:
 
-    myrrdin is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU Lesser General Public License for more details.
+    The above copyright notice and this permission notice shall be included in
+    all copies or substantial portions of the Software.
 
-    You should have received a copy of the GNU Lesser General Public 
-    License along with myrrdin. If not, see <http://www.gnu.org/licenses/>.
-*/
+    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+    THE SOFTWARE.
+ */
 
 module imagecache;
 
--- a/import/myrrdin/movingfigure.d	Sat Jul 19 14:33:08 2008 +0200
+++ b/import/myrrdin/movingfigure.d	Sat Jul 19 15:10:56 2008 +0200
@@ -1,19 +1,25 @@
 /*
-    This file is part of myrrdin.
+    myrrdin, a 2d tile engine
+    Copyright (c) 2008 Friedrich Weber
 
-    myrrdin is free software: you can redistribute it and/or modify
-    it under the terms of the GNU Lesser General Public License as 
-    published by the Free Software Foundation, either version 3 of 
-    the License, or (at your option) any later version.
+    Permission is hereby granted, free of charge, to any person obtaining a copy
+    of this software and associated documentation files (the Software), to deal
+    in the Software without restriction, including without limitation the rights
+    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+    copies of the Software, and to permit persons to whom the Software is
+    furnished to do so, subject to the following conditions:
 
-    myrrdin is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU Lesser General Public License for more details.
+    The above copyright notice and this permission notice shall be included in
+    all copies or substantial portions of the Software.
 
-    You should have received a copy of the GNU Lesser General Public 
-    License along with myrrdin. If not, see <http://www.gnu.org/licenses/>.
-*/
+    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+    THE SOFTWARE.
+ */
 
 module movingfigure;
 
@@ -23,10 +29,10 @@
 import dsfml.system.all;
 import dsfml.graphics.all;
 
-import spriteconsumer;
-import animatedsprite;
-import renderer;
-import imagecache;
+import myrrdin.spriteconsumer;
+import myrrdin.animatedsprite;
+import myrrdin.renderer;
+import myrrdin.imagecache;
 
 class MovingAnimatedFigureConsumer : SpriteConsumer {
     private Animation ani_left, ani_right, ani_up, ani_down;
--- a/import/myrrdin/renderer.d	Sat Jul 19 14:33:08 2008 +0200
+++ b/import/myrrdin/renderer.d	Sat Jul 19 15:10:56 2008 +0200
@@ -1,29 +1,35 @@
 /*
-    This file is part of myrrdin.
+    myrrdin, a 2d tile engine
+    Copyright (c) 2008 Friedrich Weber
 
-    myrrdin is free software: you can redistribute it and/or modify
-    it under the terms of the GNU Lesser General Public License as 
-    published by the Free Software Foundation, either version 3 of 
-    the License, or (at your option) any later version.
+    Permission is hereby granted, free of charge, to any person obtaining a copy
+    of this software and associated documentation files (the Software), to deal
+    in the Software without restriction, including without limitation the rights
+    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+    copies of the Software, and to permit persons to whom the Software is
+    furnished to do so, subject to the following conditions:
 
-    myrrdin is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU Lesser General Public License for more details.
+    The above copyright notice and this permission notice shall be included in
+    all copies or substantial portions of the Software.
 
-    You should have received a copy of the GNU Lesser General Public 
-    License along with myrrdin. If not, see <http://www.gnu.org/licenses/>.
-*/
+    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+    THE SOFTWARE.
+ */
 
-module renderer;
+module myrrdin.renderer;
 
 import dsfml.window.all;
 import dsfml.system.all;
 import dsfml.graphics.all;
 
-import consumer;
-import imagecache;
-import animatedsprite;
+import myrrdin.consumer;
+import myrrdin.imagecache;
+import myrrdin.animatedsprite;
 
 class Renderer {
     public RenderWindow app;
--- a/import/myrrdin/sprite.d	Sat Jul 19 14:33:08 2008 +0200
+++ b/import/myrrdin/sprite.d	Sat Jul 19 15:10:56 2008 +0200
@@ -4,4 +4,4 @@
 import dsfml.system.all;
 import dsfml.graphics.all : Sprite = SFSprite;
 
-import renderer;
+import myrrdin.renderer;
--- a/import/myrrdin/spriteconsumer.d	Sat Jul 19 14:33:08 2008 +0200
+++ b/import/myrrdin/spriteconsumer.d	Sat Jul 19 15:10:56 2008 +0200
@@ -1,19 +1,25 @@
 /*
-    This file is part of myrrdin.
+    myrrdin, a 2d tile engine
+    Copyright (c) 2008 Friedrich Weber
 
-    myrrdin is free software: you can redistribute it and/or modify
-    it under the terms of the GNU Lesser General Public License as 
-    published by the Free Software Foundation, either version 3 of 
-    the License, or (at your option) any later version.
+    Permission is hereby granted, free of charge, to any person obtaining a copy
+    of this software and associated documentation files (the Software), to deal
+    in the Software without restriction, including without limitation the rights
+    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+    copies of the Software, and to permit persons to whom the Software is
+    furnished to do so, subject to the following conditions:
 
-    myrrdin is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU Lesser General Public License for more details.
+    The above copyright notice and this permission notice shall be included in
+    all copies or substantial portions of the Software.
 
-    You should have received a copy of the GNU Lesser General Public 
-    License along with myrrdin. If not, see <http://www.gnu.org/licenses/>.
-*/
+    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+    THE SOFTWARE.
+ */
 
 module spriteconsumer;
 
@@ -21,9 +27,9 @@
 import dsfml.system.all;
 import dsfml.graphics.all;
 
-import animatedsprite;
-import consumer;
-import renderer;
+import myrrdin.animatedsprite;
+import myrrdin.consumer;
+import myrrdin.renderer;
 
 class SpriteConsumer : Consumer {
     private Sprite[] sprites;
--- a/import/myrrdin/test.d	Sat Jul 19 14:33:08 2008 +0200
+++ b/import/myrrdin/test.d	Sat Jul 19 15:10:56 2008 +0200
@@ -1,19 +1,25 @@
 /*
-    This file is part of myrrdin.
+    myrrdin, a 2d tile engine
+    Copyright (c) 2008 Friedrich Weber
 
-    myrrdin is free software: you can redistribute it and/or modify
-    it under the terms of the GNU Lesser General Public License as 
-    published by the Free Software Foundation, either version 3 of 
-    the License, or (at your option) any later version.
+    Permission is hereby granted, free of charge, to any person obtaining a copy
+    of this software and associated documentation files (the Software), to deal
+    in the Software without restriction, including without limitation the rights
+    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+    copies of the Software, and to permit persons to whom the Software is
+    furnished to do so, subject to the following conditions:
 
-    myrrdin is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU Lesser General Public License for more details.
+    The above copyright notice and this permission notice shall be included in
+    all copies or substantial portions of the Software.
 
-    You should have received a copy of the GNU Lesser General Public 
-    License along with myrrdin. If not, see <http://www.gnu.org/licenses/>.
-*/
+    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+    THE SOFTWARE.
+ */
 
 module test;
 
@@ -21,18 +27,18 @@
 import dsfml.system.all;
 import dsfml.graphics.all;
 
-import tileconsumer;
-import renderer;
-import consumer;
-import imagecache;
-import tilemap;
-import tileset;
-import xmlmap;
-import tools;
-import viewconsumer;
-import animatedsprite;
-import spriteconsumer;
-import movingfigure;
+import myrrdin.tileconsumer;
+import myrrdin.renderer;
+import myrrdin.consumer;
+import myrrdin.imagecache;
+import myrrdin.tilemap;
+import myrrdin.tileset;
+import myrrdin.xmlmap;
+import myrrdin.tools;
+import myrrdin.viewconsumer;
+import myrrdin.animatedsprite;
+import myrrdin.spriteconsumer;
+import myrrdin.movingfigure;
 
 int main(char[][] args) {
     Cache cache = new Cache("gfx");
--- a/import/myrrdin/tileconsumer.d	Sat Jul 19 14:33:08 2008 +0200
+++ b/import/myrrdin/tileconsumer.d	Sat Jul 19 15:10:56 2008 +0200
@@ -1,19 +1,25 @@
 /*
-    This file is part of myrrdin.
+    myrrdin, a 2d tile engine
+    Copyright (c) 2008 Friedrich Weber
 
-    myrrdin is free software: you can redistribute it and/or modify
-    it under the terms of the GNU Lesser General Public License as 
-    published by the Free Software Foundation, either version 3 of 
-    the License, or (at your option) any later version.
+    Permission is hereby granted, free of charge, to any person obtaining a copy
+    of this software and associated documentation files (the Software), to deal
+    in the Software without restriction, including without limitation the rights
+    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+    copies of the Software, and to permit persons to whom the Software is
+    furnished to do so, subject to the following conditions:
 
-    myrrdin is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU Lesser General Public License for more details.
+    The above copyright notice and this permission notice shall be included in
+    all copies or substantial portions of the Software.
 
-    You should have received a copy of the GNU Lesser General Public 
-    License along with myrrdin. If not, see <http://www.gnu.org/licenses/>.
-*/
+    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+    THE SOFTWARE.
+ */
 
 module tileconsumer;
 
@@ -22,10 +28,10 @@
 import dsfml.graphics.all;
 import tango.io.Stdout;
 
-import consumer;
-import renderer;
-import tileset;
-import tilemap;
+import myrrdin.consumer;
+import myrrdin.renderer;
+import myrrdin.tileset;
+import myrrdin.tilemap;
 
 class TileConsumer : Consumer {
     public Tilemap map;
--- a/import/myrrdin/tilemap.d	Sat Jul 19 14:33:08 2008 +0200
+++ b/import/myrrdin/tilemap.d	Sat Jul 19 15:10:56 2008 +0200
@@ -1,19 +1,25 @@
 /*
-    This file is part of myrrdin.
+    myrrdin, a 2d tile engine
+    Copyright (c) 2008 Friedrich Weber
 
-    myrrdin is free software: you can redistribute it and/or modify
-    it under the terms of the GNU Lesser General Public License as 
-    published by the Free Software Foundation, either version 3 of 
-    the License, or (at your option) any later version.
+    Permission is hereby granted, free of charge, to any person obtaining a copy
+    of this software and associated documentation files (the Software), to deal
+    in the Software without restriction, including without limitation the rights
+    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+    copies of the Software, and to permit persons to whom the Software is
+    furnished to do so, subject to the following conditions:
 
-    myrrdin is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU Lesser General Public License for more details.
+    The above copyright notice and this permission notice shall be included in
+    all copies or substantial portions of the Software.
 
-    You should have received a copy of the GNU Lesser General Public 
-    License along with myrrdin. If not, see <http://www.gnu.org/licenses/>.
-*/
+    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+    THE SOFTWARE.
+ */
 
 module tilemap;
 
@@ -23,7 +29,7 @@
 import dsfml.system.all;
 import dsfml.graphics.all;
 
-import tileset;
+import myrrdin.tileset;
 import tango.io.Stdout;
 
 typedef Sprite[] SpriteArray;
--- a/import/myrrdin/tileset.d	Sat Jul 19 14:33:08 2008 +0200
+++ b/import/myrrdin/tileset.d	Sat Jul 19 15:10:56 2008 +0200
@@ -1,19 +1,25 @@
 /*
-    This file is part of myrrdin.
+    myrrdin, a 2d tile engine
+    Copyright (c) 2008 Friedrich Weber
 
-    myrrdin is free software: you can redistribute it and/or modify
-    it under the terms of the GNU Lesser General Public License as 
-    published by the Free Software Foundation, either version 3 of 
-    the License, or (at your option) any later version.
+    Permission is hereby granted, free of charge, to any person obtaining a copy
+    of this software and associated documentation files (the Software), to deal
+    in the Software without restriction, including without limitation the rights
+    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+    copies of the Software, and to permit persons to whom the Software is
+    furnished to do so, subject to the following conditions:
 
-    myrrdin is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU Lesser General Public License for more details.
+    The above copyright notice and this permission notice shall be included in
+    all copies or substantial portions of the Software.
 
-    You should have received a copy of the GNU Lesser General Public 
-    License along with myrrdin. If not, see <http://www.gnu.org/licenses/>.
-*/
+    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+    THE SOFTWARE.
+ */
 
 module tileset;
 
@@ -21,7 +27,7 @@
 import dsfml.system.all;
 import dsfml.graphics.all;
 
-import imagecache;
+import myrrdin.imagecache;
 
 alias Image[int] TileList;
 
--- a/import/myrrdin/tools.d	Sat Jul 19 14:33:08 2008 +0200
+++ b/import/myrrdin/tools.d	Sat Jul 19 15:10:56 2008 +0200
@@ -1,19 +1,25 @@
 /*
-    This file is part of myrrdin.
+    myrrdin, a 2d tile engine
+    Copyright (c) 2008 Friedrich Weber
 
-    myrrdin is free software: you can redistribute it and/or modify
-    it under the terms of the GNU Lesser General Public License as 
-    published by the Free Software Foundation, either version 3 of 
-    the License, or (at your option) any later version.
+    Permission is hereby granted, free of charge, to any person obtaining a copy
+    of this software and associated documentation files (the Software), to deal
+    in the Software without restriction, including without limitation the rights
+    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+    copies of the Software, and to permit persons to whom the Software is
+    furnished to do so, subject to the following conditions:
 
-    myrrdin is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU Lesser General Public License for more details.
+    The above copyright notice and this permission notice shall be included in
+    all copies or substantial portions of the Software.
 
-    You should have received a copy of the GNU Lesser General Public 
-    License along with myrrdin. If not, see <http://www.gnu.org/licenses/>.
-*/
+    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+    THE SOFTWARE.
+ */
 
 module tools;
 
--- a/import/myrrdin/viewconsumer.d	Sat Jul 19 14:33:08 2008 +0200
+++ b/import/myrrdin/viewconsumer.d	Sat Jul 19 15:10:56 2008 +0200
@@ -1,19 +1,25 @@
 /*
-    This file is part of myrrdin.
+    myrrdin, a 2d tile engine
+    Copyright (c) 2008 Friedrich Weber
 
-    myrrdin is free software: you can redistribute it and/or modify
-    it under the terms of the GNU Lesser General Public License as 
-    published by the Free Software Foundation, either version 3 of 
-    the License, or (at your option) any later version.
+    Permission is hereby granted, free of charge, to any person obtaining a copy
+    of this software and associated documentation files (the Software), to deal
+    in the Software without restriction, including without limitation the rights
+    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+    copies of the Software, and to permit persons to whom the Software is
+    furnished to do so, subject to the following conditions:
 
-    myrrdin is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU Lesser General Public License for more details.
+    The above copyright notice and this permission notice shall be included in
+    all copies or substantial portions of the Software.
 
-    You should have received a copy of the GNU Lesser General Public 
-    License along with myrrdin. If not, see <http://www.gnu.org/licenses/>.
-*/
+    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+    THE SOFTWARE.
+ */
 
 module viewconsumer;
 
@@ -21,8 +27,8 @@
 import dsfml.system.all;
 import dsfml.graphics.all;
 
-import consumer;
-import renderer;
+import myrrdin.consumer;
+import myrrdin.renderer;
 import tango.io.Stdout;
 
 /* That is a consumer which sets and manipulates the render window view */
--- a/import/myrrdin/xmlmap.d	Sat Jul 19 14:33:08 2008 +0200
+++ b/import/myrrdin/xmlmap.d	Sat Jul 19 15:10:56 2008 +0200
@@ -1,30 +1,36 @@
 /*
-    This file is part of myrrdin.
+    myrrdin, a 2d tile engine
+    Copyright (c) 2008 Friedrich Weber
 
-    myrrdin is free software: you can redistribute it and/or modify
-    it under the terms of the GNU Lesser General Public License as 
-    published by the Free Software Foundation, either version 3 of 
-    the License, or (at your option) any later version.
+    Permission is hereby granted, free of charge, to any person obtaining a copy
+    of this software and associated documentation files (the Software), to deal
+    in the Software without restriction, including without limitation the rights
+    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+    copies of the Software, and to permit persons to whom the Software is
+    furnished to do so, subject to the following conditions:
 
-    myrrdin is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU Lesser General Public License for more details.
+    The above copyright notice and this permission notice shall be included in
+    all copies or substantial portions of the Software.
 
-    You should have received a copy of the GNU Lesser General Public 
-    License along with myrrdin. If not, see <http://www.gnu.org/licenses/>.
-*/
+    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+    THE SOFTWARE.
+ */
 
 module xmlmap;
 
-import tileset;
-import tilemap;
+import myrrdin.tileset;
+import myrrdin.tilemap;
 
 import tango.text.xml.Document;
 import tango.text.convert.Integer;
 import tango.io.Stdout; // TODO
-import tools;
-import imagecache;
+import myrrdin.tools;
+import myrrdin.imagecache;
 import dsfml.system.all;
 import Text = tango.text.Util;
 static import tango.core.Exception;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/bin/gfx/README	Sat Jul 19 15:10:56 2008 +0200
@@ -0,0 +1,3 @@
+Most of this graphics are from 'reiners Tileset': http://reinerstileset.4players.de/
+Many thanks, reiner :-)
+
Binary file test/bin/gfx/f-1.png has changed
Binary file test/bin/gfx/f-10.png has changed
Binary file test/bin/gfx/f-11.png has changed
Binary file test/bin/gfx/f-12.png has changed
Binary file test/bin/gfx/f-2.png has changed
Binary file test/bin/gfx/f-3.png has changed
Binary file test/bin/gfx/f-4.png has changed
Binary file test/bin/gfx/f-5.png has changed
Binary file test/bin/gfx/f-6.png has changed
Binary file test/bin/gfx/f-7.png has changed
Binary file test/bin/gfx/f-8.png has changed
Binary file test/bin/gfx/f-9.png has changed
Binary file test/bin/gfx/grass-stone-water-east.png has changed
Binary file test/bin/gfx/grass-stone-water-l.png has changed
Binary file test/bin/gfx/grass-stone-water-north.png has changed
Binary file test/bin/gfx/grass.png has changed
Binary file test/bin/gfx/mountain.png has changed
Binary file test/bin/gfx/spacecar-normal.png has changed
Binary file test/bin/gfx/spacecar-thrust1.png has changed
Binary file test/bin/gfx/spacecar-thrust2.png has changed
Binary file test/bin/gfx/water.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/bin/map-example.xml	Sat Jul 19 15:10:56 2008 +0200
@@ -0,0 +1,10 @@
+<map version="1" width="36" height="10">
+  <tiles tileset="tileset-example.xml">
+    <layer tilewidth="32" tileheight="32">
+      1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
+    </layer>
+    <layer tilewidth="128" tileheight="128">
+            0,3
+    </layer>
+  </tiles>
+</map>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/bin/tileset-example.xml	Sat Jul 19 15:10:56 2008 +0200
@@ -0,0 +1,5 @@
+<tileset version="1">
+  <tile id="1" filename="grass.png" />
+  <tile id="2" filename="grass-stone-water-l.png" />
+  <tile id="3" filename="mountain.png" />
+</tileset>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/dsss.conf	Sat Jul 19 15:10:56 2008 +0200
@@ -0,0 +1,3 @@
+[movingfigure/movingfigure.d]
+target=bin/movingfigure
+buildflags += -I../import
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/movingfigure/movingfigure.d	Sat Jul 19 15:10:56 2008 +0200
@@ -0,0 +1,60 @@
+/*
+    myrrdin, a 2d tile engine
+    Copyright (c) 2008 Friedrich Weber
+
+    Permission is hereby granted, free of charge, to any person obtaining a copy
+    of this software and associated documentation files (the Software), to deal
+    in the Software without restriction, including without limitation the rights
+    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+    copies of the Software, and to permit persons to whom the Software is
+    furnished to do so, subject to the following conditions:
+
+    The above copyright notice and this permission notice shall be included in
+    all copies or substantial portions of the Software.
+
+    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+    THE SOFTWARE.
+ */
+
+module test;
+
+import myrrdin.tileconsumer;
+import myrrdin.renderer;
+import myrrdin.imagecache;
+import myrrdin.tilemap;
+import myrrdin.tileset;
+import myrrdin.xmlmap;
+import myrrdin.tools;
+import myrrdin.animatedsprite;
+import myrrdin.spriteconsumer;
+import myrrdin.movingfigure;
+
+int main(char[][] args) {
+    Cache cache = new Cache("gfx");
+    Tilemap map = parse_map(cache, read_file_contents("map-example.xml"));
+    Renderer render = new Renderer("Blubb", 600, 480, 32);
+//    render.add_consumer(new InteractiveViewConsumer(render));
+    TileConsumer consumer = new TileConsumer(render, map);
+    map.set_view(render.app.getView());
+    render.add_consumer(consumer);
+    render.add_consumer(load_charset(render, cache, "f-", ".png", 10)); 
+/*    SpriteConsumer c = new SpriteConsumer(render);
+    AnimatedSprite s = new AnimatedSprite;
+    s.setX(10);
+    s.setY(10);
+    Animation a = new Animation;
+    a.add_frame(map.tileset.tiles[0], 10);
+    a.add_frame(map.tileset.tiles[1], 10);
+//    s.setImage(map.tileset.tiles[0]);
+    s.play_animation(a, true);
+    c.add_sprite(s);
+    render.add_consumer(c);*/
+
+    render.mainloop();
+    return 0; 
+}