Oprava spawnování monster, optimalizace v CommandProcessor a EventProcessor. Přesunutí některých tříd do vlastních namespaců, pročištění kódu, úpravy formátování, odstranění nepoužívaných souborů a zakomentovaného kódu
This commit is contained in:
parent
e5d746d597
commit
243f071a43
62 changed files with 873 additions and 1217 deletions
|
|
@ -1,29 +1,21 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Microsoft.Xna.Framework.Input;
|
||||
using MonoGameLibrary;
|
||||
using MonoGameLibrary.Graphics;
|
||||
using MonoGameLibrary.Input;
|
||||
using ONDClient.GUI;
|
||||
using ONDClient.Net;
|
||||
using ONDClient.Sound;
|
||||
|
||||
namespace ONDClient;
|
||||
|
||||
public class GameMain() : Core("OND", 1280, 720, false) {
|
||||
// private GraphicsDeviceManager _graphics;
|
||||
// private SpriteBatch _spriteBatch;
|
||||
|
||||
|
||||
protected override void Initialize() {
|
||||
Exiting += (_, _) => {
|
||||
Client.Disconnect();
|
||||
};
|
||||
|
||||
// Client.Connect("127.0.0.1", 9012);
|
||||
|
||||
CommandManager.InitInputListeners();
|
||||
|
||||
// InputManager.AddListener(InputManager.MouseButton.LEFT, (() => Console.WriteLine("LMB pressed at: " + InputManager.MouseState.Position)), InputTiming.PRESS, new InputListenerHook(true));
|
||||
|
||||
base.Initialize();
|
||||
|
||||
|
|
@ -35,8 +27,6 @@ public class GameMain() : Core("OND", 1280, 720, false) {
|
|||
protected override void LoadContent() {
|
||||
UIManager.LoadAssets();
|
||||
SoundManager.LoadSounds();
|
||||
// spriteBatch = new SpriteBatch(GraphicsDevice);
|
||||
// font = Content.Load<SpriteFont>("font");
|
||||
}
|
||||
|
||||
protected override void Update(GameTime gameTime) {
|
||||
|
|
@ -58,8 +48,6 @@ public class GameMain() : Core("OND", 1280, 720, false) {
|
|||
spriteBatch.Begin(samplerState:SamplerState.PointClamp);
|
||||
|
||||
Screen.DrawCurrentAndOverlay(spriteBatch);
|
||||
// Screen.CurrentScreen.Draw(spriteBatch);
|
||||
// spriteBatch.DrawString(font, "Elapsed time: " + gameTime.TotalGameTime.Milliseconds, new Vector2(10, 10), Color.White);
|
||||
|
||||
spriteBatch.End();
|
||||
base.Draw(gameTime);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue