mirror of
https://github.com/Ellpeck/GameBundle.git
synced 2024-11-14 13:09:10 +01:00
29 lines
No EOL
812 B
C#
29 lines
No EOL
812 B
C#
using Microsoft.Xna.Framework;
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
using MLEM.Startup;
|
|
|
|
namespace Test;
|
|
|
|
public class GameImpl : MlemGame {
|
|
|
|
public static GameImpl Instance { get; private set; }
|
|
private Texture2D texture;
|
|
|
|
public GameImpl() {
|
|
GameImpl.Instance = this;
|
|
}
|
|
|
|
protected override void LoadContent() {
|
|
base.LoadContent();
|
|
this.texture = MlemGame.LoadContent<Texture2D>("Textures/Test");
|
|
}
|
|
|
|
protected override void DoDraw(GameTime gameTime) {
|
|
this.GraphicsDevice.Clear(Color.Black);
|
|
base.DoDraw(gameTime);
|
|
this.SpriteBatch.Begin(samplerState: SamplerState.PointClamp, transformMatrix: Matrix.CreateScale(10));
|
|
this.SpriteBatch.Draw(this.texture, Vector2.Zero, Color.White);
|
|
this.SpriteBatch.End();
|
|
}
|
|
|
|
} |