public TestCamera() { Moumoune m = new Moumoune(100, 100); AddEntity(m); CameraUpdater.AddCamera(new Camera2D(Viewport, null, CameraType.Fixed)); }
protected GameModel() { Graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; SpriteDrawer = new SpriteDrawer(this); SpriteUpdater = new SpriteUpdater(this); SpriteLoader = new SpriteLoader(this, Content, SpriteDrawer); InputsManager = new InputsManager(this); TextSpriteDrawer = new TextSpriteDrawer(this); TextSpriteUpdater = new TextSpriteUpdater(this); TextSpriteLoader = new TextSpriteLoader(this, Content, TextSpriteDrawer); GeneratorUpdater = new GeneratorUpdater(this); CameraUpdater = new CameraUpdater(this); Cursor = new Cursor("Cursor2"); ShapeDrawer = new ShapeDrawer(this); _currentGameState = GameStateType.Game; }
internal DataUpdater() { _parsers = new List <Parser> { new WeekendInfoParser(), new DriverInfoParser(this), new SessionInfoParser(this), new QualiSessionParser(), new CameraParser() }; _sessionTimeUpdater = new SessionTimeUpdater(this); _sessionStateUpdater = new SessionStateUpdater(this); _sessionFlagUpdater = new SessionFlagUpdater(this); _cameraUpdater = new CameraUpdater(this); _radioUpdater = new RadioUpdater(this); _entityUpdater = new EntityUpdater(this); _entityResultsUpdater = new EntityResultsUpdater(this); }
// Use this for initialization void Start() { jumpCount = 0; player = GameObject.Find("Player"); fireBurner = GameObject.Find("fire_killer").GetComponent <fire_burner>(); cameraUpdater = GameObject.Find("Main Camera").GetComponent <CameraUpdater>(); timerController = gameObject.GetComponent <TimerController>(); scorePos = new Rect(5, 5, 200, 30); scoreMiddlePos = new Rect( nativeWidth / 2 - 200, nativeHeight / 2 - 50, 400, 100 ); GameObject.Find("GlobalVars").GetComponent <GlobalVars> ().level = level; }
public MoveCameraBot(CameraUpdater cameraUpdater) { _cameraUpdater = cameraUpdater; }
public MoveCameraRight(CameraUpdater cameraUpdater) { _cameraUpdater = cameraUpdater; }
public MoveCameraTop(CameraUpdater cameraUpdater) { _cameraUpdater = cameraUpdater; }