Skip to content

Commit

Permalink
Removed old unneeded code from Game1 in all templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
vchelaru committed Apr 6, 2024
1 parent c43085a commit f7e5246
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 72 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,12 @@ public Game1() : base()
{
graphics = new GraphicsDeviceManager(this);

#if WINDOWS_PHONE || ANDROID || IOS

// Frame rate is 30 fps by default for Windows Phone,
// so let's keep that for other phones too
TargetElapsedTime = TimeSpan.FromTicks(333333);
#if ANDROID || IOS
graphics.IsFullScreen = true;
#elif WINDOWS || DESKTOP_GL
graphics.PreferredBackBufferWidth = 800;
graphics.PreferredBackBufferHeight = 600;
#endif


#if WINDOWS_8
FlatRedBall.Instructions.Reflection.PropertyValuePair.TopLevelAssembly =
this.GetType().GetTypeInfo().Assembly;
#endif

}

protected override void Initialize()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,12 @@ public Game1() : base()
{
graphics = new GraphicsDeviceManager(this);

#if WINDOWS_PHONE || ANDROID || IOS

// Frame rate is 30 fps by default for Windows Phone,
// so let's keep that for other phones too
TargetElapsedTime = TimeSpan.FromTicks(333333);
#if ANDROID || IOS
graphics.IsFullScreen = true;
#elif WINDOWS || DESKTOP_GL
graphics.PreferredBackBufferWidth = 800;
graphics.PreferredBackBufferHeight = 600;
#endif


#if WINDOWS_8
FlatRedBall.Instructions.Reflection.PropertyValuePair.TopLevelAssembly =
this.GetType().GetTypeInfo().Assembly;
#endif

}

protected override void Initialize()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,12 @@ public Game1() : base()
{
graphics = new GraphicsDeviceManager(this);

#if WINDOWS_PHONE || ANDROID || IOS

// Frame rate is 30 fps by default for Windows Phone,
// so let's keep that for other phones too
TargetElapsedTime = TimeSpan.FromTicks(333333);
#if ANDROID || IOS
graphics.IsFullScreen = true;
#elif WINDOWS || DESKTOP_GL
graphics.PreferredBackBufferWidth = 800;
graphics.PreferredBackBufferHeight = 600;
#endif


#if WINDOWS_8
FlatRedBall.Instructions.Reflection.PropertyValuePair.TopLevelAssembly =
this.GetType().GetTypeInfo().Assembly;
#endif

}

protected override void Initialize()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,12 @@ public Game1() : base()
{
graphics = new GraphicsDeviceManager(this);

#if WINDOWS_PHONE || ANDROID || IOS

// Frame rate is 30 fps by default for Windows Phone,
// so let's keep that for other phones too
TargetElapsedTime = TimeSpan.FromTicks(333333);
#if ANDROID || IOS
graphics.IsFullScreen = true;
#elif WINDOWS || DESKTOP_GL
graphics.PreferredBackBufferWidth = 800;
graphics.PreferredBackBufferHeight = 600;
#endif


#if WINDOWS_8
FlatRedBall.Instructions.Reflection.PropertyValuePair.TopLevelAssembly =
this.GetType().GetTypeInfo().Assembly;
#endif

}

protected override void Initialize()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,12 @@ public Game1() : base()
{
graphics = new GraphicsDeviceManager(this);

#if WINDOWS_PHONE || ANDROID || IOS

// Frame rate is 30 fps by default for Windows Phone,
// so let's keep that for other phones too
TargetElapsedTime = TimeSpan.FromTicks(333333);
#if ANDROID || IOS
graphics.IsFullScreen = true;
#elif WINDOWS || DESKTOP_GL
graphics.PreferredBackBufferWidth = 800;
graphics.PreferredBackBufferHeight = 600;
#endif


#if WINDOWS_8
FlatRedBall.Instructions.Reflection.PropertyValuePair.TopLevelAssembly =
this.GetType().GetTypeInfo().Assembly;
#endif

}

protected override void Initialize()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,12 @@ public Game1() : base()
{
graphics = new GraphicsDeviceManager(this);

#if WINDOWS_PHONE || ANDROID || IOS

// Frame rate is 30 fps by default for Windows Phone,
// so let's keep that for other phones too
TargetElapsedTime = TimeSpan.FromTicks(333333);
#if ANDROID || IOS
graphics.IsFullScreen = true;
#elif WINDOWS || DESKTOP_GL
graphics.PreferredBackBufferWidth = 800;
graphics.PreferredBackBufferHeight = 600;
#endif


#if WINDOWS_8
FlatRedBall.Instructions.Reflection.PropertyValuePair.TopLevelAssembly =
this.GetType().GetTypeInfo().Assembly;
#endif

}

protected override void Initialize()
Expand Down

0 comments on commit f7e5246

Please sign in to comment.