comparison test/director/testdirector.d @ 11:5866d9f2ca75 default tip

fixed director + tilemap stuff
author fred@reichbier.de
date Wed, 13 Aug 2008 18:31:10 +0200
parents 79b534bbda65
children
comparison
equal deleted inserted replaced
10:79b534bbda65 11:5866d9f2ca75
19 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 THE SOFTWARE. 21 THE SOFTWARE.
22 */ 22 */
23 23
24 module testdirector;
25
24 import myrrdin.director; 26 import myrrdin.director;
27 import myrrdin.scenes.tilescene;
28 import myrrdin.tools;
29 import myrrdin.xmlmap;
25 30
26 void main() { 31 void main() {
27 CreateDirector("gfx", 600, 480, 32); 32 /* first: create the director */
28 33 CreateDirector("gfx", "Titel", 600, 480, 32);
34 /* then: create a scene */
35 auto scene = new TileScene(parse_map(read_file_contents("map-example.xml")));
36 /* insert the scene ... Director is a global variable which is defined in myrrdin.director */
37 Director.set_scene(scene);
38 /* and run the stuff. */
39 Director.run();
29 } 40 }