mirror of
https://github.com/Ale32bit/Capy64.git
synced 2025-01-18 10:36:44 +00:00
Increased tickrate to 30 from 20 in classic mode
This commit is contained in:
parent
544025290b
commit
f5887c63c0
1 changed files with 5 additions and 1 deletions
|
@ -24,6 +24,7 @@ using Microsoft.Extensions.Configuration;
|
|||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Microsoft.Xna.Framework.Input;
|
||||
using MonoGame.Extended;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
@ -53,7 +54,7 @@ public class Capy64 : Game, IGame
|
|||
public const float BorderMultiplier = 1.5f;
|
||||
public static readonly EngineMode EngineMode = EngineMode.Classic;
|
||||
|
||||
public const int ClassicTickrate = 20;
|
||||
public const int ClassicTickrate = 30;
|
||||
public const int FreeTickrate = 60;
|
||||
}
|
||||
|
||||
|
@ -230,6 +231,9 @@ public class Capy64 : Game, IGame
|
|||
SetEngineMode(configuration.GetValue<EngineMode>("EngineMode", DefaultParameters.EngineMode));
|
||||
|
||||
Audio = new Audio();
|
||||
var cursorTexture = Texture2D.FromFile(GraphicsDevice, "Assets/cursor.png");
|
||||
var cursor = MouseCursor.FromTexture2D(cursorTexture, 0, 0);
|
||||
Mouse.SetCursor(cursor);
|
||||
|
||||
NativePlugins = GetNativePlugins();
|
||||
Plugins = PluginLoader.LoadAllPlugins("plugins", _serviceProvider);
|
||||
|
|
Loading…
Reference in a new issue