home *** CD-ROM | disk | FTP | other *** search
- class MaggieHome extends BuildingPart
- {
- function MaggieHome()
- {
- super();
- }
- function render()
- {
- var _loc1_ = this;
- var _loc2_ = smashing.Viewport.getPos(_loc1_);
- if(_loc2_.x > smashing.Viewport.halfWidth)
- {
- _loc1_._visible = false;
- }
- else
- {
- _loc1_._visible = true;
- _loc1_._x = _loc2_.x + smashing.Viewport.centerX;
- _loc1_._y = _loc2_.y + smashing.Viewport.centerY;
- }
- }
- }
-