Added texture cache and sprite origins.

This commit is contained in:
2026-01-14 23:09:13 -05:00
parent fcb4f1cf05
commit 61d51f5188
36 changed files with 319 additions and 83 deletions

View File

@@ -1,4 +1,5 @@
using AlienAttack.MonoGame.Audio;
using AlienAttack.MonoGame.Textures;
using AlienAttack.MonoGame.View;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
@@ -13,6 +14,7 @@ internal abstract class GameLoopBase(AlienAttackGame game) : IGameLoop
protected readonly SpriteBatch SpriteBatch = game.SpriteBatch;
protected readonly ViewTransform ViewTransform = game.ViewTransform;
protected readonly AudioManager Audio = game.Audio;
protected readonly TextureCache Textures = game.Textures;
public void Draw(GameTime gameTime)
{