public void PopulateObjects(Zone zone, Point globalScreenCoord) { Vector2 screenOffset = zone.getLocalScreenOffsetInPixelVector( zone.getLocalScreenFromGlobalScreen(globalScreenCoord)); screenOffset += new Vector2(Zone.SCREEN_WIDTH_IN_PIXELS / 2, Zone.SCREEN_HEIGHT_IN_PIXELS / 2 + 60); zone.add( new ChozoStatue(screenOffset, m_item, Direction.Right)); }
public void PopulateObjects(Zone zone, Point globalScreenCoord) { Point offset = zone.getLocalScreenOffsetInPixels( zone.getLocalScreenFromGlobalScreen(globalScreenCoord)); Vector2 ripperPos = new Vector2( offset.X + Zone.SCREEN_WIDTH_IN_PIXELS / 2, offset.Y + Zone.SCREEN_HEIGHT_IN_PIXELS / 2); zone.add( new RipperController(ripperPos)); }