Mercurial > projects > myrrdin
diff import/myrrdin/tilemap.d @ 11:5866d9f2ca75 default tip
fixed director + tilemap stuff
author | fred@reichbier.de |
---|---|
date | Wed, 13 Aug 2008 18:31:10 +0200 |
parents | 806b3781f4e4 |
children |
line wrap: on
line diff
--- a/import/myrrdin/tilemap.d Sat Jul 19 19:29:00 2008 +0200 +++ b/import/myrrdin/tilemap.d Wed Aug 13 18:31:10 2008 +0200 @@ -29,7 +29,9 @@ import dsfml.system.all; import dsfml.graphics.all; +import myrrdin.director; import myrrdin.tileset; + import tango.io.Stdout; typedef Sprite[] SpriteArray; @@ -47,11 +49,7 @@ this.height = height; this.tilewidth = tilewidth; this.tileheight = tileheight; - } - - /* set the view. you should do this if you use a sf::View */ - void set_view(View view) { - this.view = view; + this.view = Director.renderer.app.getView(); } /* translate On-Screen -> With-View */