From f5887c63c05b116a752cba727ccd94f0763fd785 Mon Sep 17 00:00:00 2001 From: Alessandro Proto Date: Mon, 10 Apr 2023 12:54:55 +0200 Subject: [PATCH] Increased tickrate to 30 from 20 in classic mode --- Capy64/Capy64.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Capy64/Capy64.cs b/Capy64/Capy64.cs index bb1387d..cc5b1f6 100644 --- a/Capy64/Capy64.cs +++ b/Capy64/Capy64.cs @@ -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", 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);