Skip to content

Commit

Permalink
Codebase cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbuck committed Jun 7, 2024
1 parent 88fdb91 commit b509ef6
Show file tree
Hide file tree
Showing 80 changed files with 255 additions and 5,724 deletions.
2 changes: 1 addition & 1 deletion Ion.Examples/Ion.Examples.Breakout/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public class BreakoutSystems(IWindow window, IInputState input, ISpriteBatch spr

[Init]
public void SetupBlocks(GameTime dt, GameLoopDelegate next)
{
{
_blockTexture = assets.Load<Texture2D>("Block1.png");
_ballTexture = assets.Load<Texture2D>("Ball1.png");
_bonkSound = assets.Load<SoundEffect>("Bonk.wav");
Expand Down
36 changes: 18 additions & 18 deletions Ion.Examples/Ion.Examples.Scenes/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ IEnumerator CountDown(int from)
game.UseUpdate((GameLoopDelegate next, IEventEmitter eventEmitter, IEventListener events) =>
{
var flip = false;
var switchScene = Throttler.Wrap(TimeSpan.FromSeconds(1), (dt) => {
eventEmitter.Emit(new ChangeSceneEvent(flip ? (int)Scenes.MainMenu : (int)Scenes.Gameplay));
var switchScene = Throttler.Wrap(TimeSpan.FromSeconds(3), (dt) => {
eventEmitter.EmitChangeScene(flip ? (int)Scenes.MainMenu : (int)Scenes.Gameplay);
flip = !flip;
});
Expand Down Expand Up @@ -117,28 +117,28 @@ IEnumerator CountDown(int from)

game.UseScene((int)Scenes.MainMenu, scene =>
{
//scene.UseRender((GameLoopDelegate next, ISpriteBatch spriteBatch) =>
//{
// return dt =>
// {
// spriteBatch.DrawRect(Color.ForestGreen, new RectangleF(10, 10, 90, 90));
// next(dt);
// };
//});
scene.UseRender((GameLoopDelegate next, ISpriteBatch spriteBatch) =>
{
return dt =>
{
spriteBatch.DrawRect(Color.ForestGreen, new RectangleF(10, 10, 90, 90));
next(dt);
};
});
scene.UseSystem<TestMiddleware>();
});

game.UseScene((int)Scenes.Gameplay, scene =>
{
//scene.UseRender((GameLoopDelegate next, ISpriteBatch spriteBatch) =>
//{
// return dt =>
// {
// spriteBatch.DrawRect(Color.DarkRed, new RectangleF(10, 10, 90, 90));
// next(dt);
// };
//});
scene.UseRender((GameLoopDelegate next, ISpriteBatch spriteBatch) =>
{
return dt =>
{
spriteBatch.DrawRect(Color.DarkRed, new RectangleF(10, 10, 90, 90));
next(dt);
};
});
});

game.UseRender(next => dt => Console.WriteLine("NEVER GETTING CALLED!"));
Expand Down

This file was deleted.

27 changes: 0 additions & 27 deletions Ion.Examples/Ion.Examples.SpriteRenderer/Program.cs

This file was deleted.

This file was deleted.

27 changes: 0 additions & 27 deletions Ion.Examples/Ion.Examples.SpriteRenderer/RenderDoc.cap

This file was deleted.

84 changes: 0 additions & 84 deletions Ion.Examples/Ion.Examples.SpriteRenderer/TestLoggerSystem.cs

This file was deleted.

Loading

0 comments on commit b509ef6

Please sign in to comment.