Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
roo-oliv committed Sep 15, 2024
1 parent b4b57ff commit 22b1f66
Show file tree
Hide file tree
Showing 67 changed files with 1,179 additions and 215 deletions.
17 changes: 17 additions & 0 deletions MonoDreams.Examples/Constants.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using Microsoft.Xna.Framework;

namespace MonoDreams.Examples;

public static class Constants
{
public static int WorldGravity => 1600;
public static int JumpGravity => 1250;
public static int JumpVelocity => -400;
public static int JumpHVelocity => 300;
public static int MaxWalkVelocity => 210;
public static int MaxFallVelocity => 700;
public static int SlidingVelocity => 120;

public static int ScalingSpeed => 8;
public static Point PlayerSize { get; } = new(10);
}
12 changes: 12 additions & 0 deletions MonoDreams.Examples/Content/Content.mgcb
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,18 @@
/processorParam:TextureFormat=Color
/build:Sprout Lands color pallet/Sprout Lands defautlt palette.png

#begin square.png
/importer:TextureImporter
/processor:TextureProcessor
/processorParam:ColorKeyColor=255,0,255,255
/processorParam:ColorKeyEnabled=True
/processorParam:GenerateMipmaps=False
/processorParam:PremultiplyAlpha=True
/processorParam:ResizeToPowerOfTwo=False
/processorParam:MakeSquare=False
/processorParam:TextureFormat=Color
/build:square.png

#begin Tilesets/Bitmask references 1.png
/importer:TextureImporter
/processor:TextureProcessor
Expand Down
Binary file not shown.
Binary file added MonoDreams.Examples/Content/bin/square.xnb
Binary file not shown.
2 changes: 2 additions & 0 deletions MonoDreams.Examples/Content/obj/.mgcontent
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
<File>/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Sprite sheet for Basic Pack.png</File>
<File>/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Sprout Lands color pallet/Sprout Lands defautlt palette snip.PNG</File>
<File>/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Sprout Lands color pallet/Sprout Lands defautlt palette.png</File>
<File>/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/square.png</File>
<File>/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Tilesets/Bitmask references 1.png</File>
<File>/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Tilesets/Bitmask references 2.png</File>
<File>/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Tilesets/Bitmask references gif.gif</File>
Expand Down Expand Up @@ -122,5 +123,6 @@
<File xsi:nil="true" />
<File xsi:nil="true" />
<File xsi:nil="true" />
<File xsi:nil="true" />
</DestFiles>
</SourceFileCollection>
5 changes: 3 additions & 2 deletions MonoDreams.Examples/Content/obj/.mgstats
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Source File,Dest File,Processor Type,Content Type,Source File Size,Dest File Size,Build Seconds
"/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Fonts/Kaph Regular White 80px Stroke Black 4px.fnt","/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/Fonts/Kaph Regular White 80px Stroke Black 4px fnt.xnb","BitmapFontProcessor","BitmapFontProcessorResult",148748,42404,0,166241
"/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Fonts/Kaph Regular White 80px Stroke Black 4px.png","/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/Fonts/Kaph Regular White 80px Stroke Black 4px.xnb","TextureProcessor","Texture2DContent",2880493,19927381,0,832684
"/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Fonts/Kaph Regular White 80px Stroke Black 4px.fnt","/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/Fonts/Kaph Regular White 80px Stroke Black 4px fnt.xnb","BitmapFontProcessor","BitmapFontProcessorResult",148748,42404,0,147314
"/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Fonts/Kaph Regular White 80px Stroke Black 4px.png","/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/Fonts/Kaph Regular White 80px Stroke Black 4px.xnb","TextureProcessor","Texture2DContent",2880493,19927381,0,704272
"/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/square.png","/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/square.xnb","TextureProcessor","Texture2DContent",157,89,0,001992
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
<File>/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Sprite sheet for Basic Pack.png</File>
<File>/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Sprout Lands color pallet/Sprout Lands defautlt palette snip.PNG</File>
<File>/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Sprout Lands color pallet/Sprout Lands defautlt palette.png</File>
<File>/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/square.png</File>
<File>/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Tilesets/Bitmask references 1.png</File>
<File>/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Tilesets/Bitmask references 2.png</File>
<File>/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Tilesets/Bitmask references gif.gif</File>
Expand Down Expand Up @@ -122,5 +123,6 @@
<File xsi:nil="true" />
<File xsi:nil="true" />
<File xsi:nil="true" />
<File xsi:nil="true" />
</DestFiles>
</SourceFileCollection>
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Source File,Dest File,Processor Type,Content Type,Source File Size,Dest File Siz
"/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Dialouge UI/Premade dialog box medium.png","/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/DesktopGL/Content/Dialouge UI/Premade dialog box medium.xnb","TextureProcessor","Texture2DContent",921,61525,0.006769
"/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Dialouge UI/Premade dialog box small.png","/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/DesktopGL/Content/Dialouge UI/Premade dialog box small.xnb","TextureProcessor","Texture2DContent",852,45141,0.005407
"/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Effects/MultiTextureEffect.glsl","/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/DesktopGL/Content/Effects/MultiTextureEffect.glsl","CopyItem","File",402,402,0.001767
"/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Fonts/Kaph Regular White 80px Stroke Black 4px.fnt","/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/DesktopGL/Content/Fonts/Kaph Regular White 80px Stroke Black 4px fnt.xnb","BitmapFontProcessor","BitmapFontProcessorResult",148748,42404,0.185654
"/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Fonts/Kaph Regular White 80px Stroke Black 4px.png","/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/DesktopGL/Content/Fonts/Kaph Regular White 80px Stroke Black 4px.xnb","TextureProcessor","Texture2DContent",2880493,19927381,1.118948
"/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Fonts/Kaph Regular White 80px Stroke Black 4px.fnt","/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/DesktopGL/Content/Fonts/Kaph Regular White 80px Stroke Black 4px fnt.xnb","BitmapFontProcessor","BitmapFontProcessorResult",148748,42404,0.159452
"/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Fonts/Kaph Regular White 80px Stroke Black 4px.png","/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/DesktopGL/Content/Fonts/Kaph Regular White 80px Stroke Black 4px.xnb","TextureProcessor","Texture2DContent",2880493,19927381,0.705175
"/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Fonts/Kaph-Regular.fnt","/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/DesktopGL/Content/Fonts/Kaph-Regular-fnt.xnb","BitmapFontProcessor","BitmapFontProcessorResult",109029,31360,0.061174
"/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Fonts/Kaph-Regular.png","/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/DesktopGL/Content/Fonts/Kaph-Regular.xnb","TextureProcessor","Texture2DContent",854505,11498957,0.478066
"/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Icons/All Icons.png","/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/DesktopGL/Content/Icons/All Icons.xnb","TextureProcessor","Texture2DContent",2292,55381,0.005919
Expand All @@ -47,6 +47,7 @@ Source File,Dest File,Processor Type,Content Type,Source File Size,Dest File Siz
"/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Sprite sheet for Basic Pack.png","/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/DesktopGL/Content/Sprite sheet for Basic Pack.xnb","TextureProcessor","Texture2DContent",26933,860245,0.043533
"/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Sprout Lands color pallet/Sprout Lands defautlt palette snip.PNG","/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/DesktopGL/Content/Sprout Lands color pallet/Sprout Lands defautlt palette snip.xnb","TextureProcessor","Texture2DContent",15030,350309,0.022948
"/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Sprout Lands color pallet/Sprout Lands defautlt palette.png","/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/DesktopGL/Content/Sprout Lands color pallet/Sprout Lands defautlt palette.xnb","TextureProcessor","Texture2DContent",606,533,0.00376
"/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/square.png","/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/DesktopGL/Content/square.xnb","TextureProcessor","Texture2DContent",157,89,0.152264
"/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Tilesets/Bitmask references 1.png","/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/DesktopGL/Content/Tilesets/Bitmask references 1.xnb","TextureProcessor","Texture2DContent",3049,491605,0.025168
"/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Tilesets/Bitmask references 2.png","/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/DesktopGL/Content/Tilesets/Bitmask references 2.xnb","TextureProcessor","Texture2DContent",3416,491605,0.034294
"/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Tilesets/Bitmask references gif.gif","/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/DesktopGL/Content/Tilesets/Bitmask references gif.xnb","TextureProcessor","Texture2DContent",353038,1166485,0.031504
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<PipelineBuildEvent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SourceFile>/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Fonts/Kaph Regular White 80px Stroke Black 4px.fnt</SourceFile>
<SourceTime>2024-07-21T18:55:38-03:00</SourceTime>
<SourceTime>2024-07-22T12:23:35.2988483-03:00</SourceTime>
<DestFile>/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/DesktopGL/Content/Fonts/Kaph Regular White 80px Stroke Black 4px fnt.xnb</DestFile>
<DestTime>2024-07-21T23:53:59.8299817-03:00</DestTime>
<DestTime>2024-09-14T16:08:25.01345-03:00</DestTime>
<Importer>BitmapFontImporter</Importer>
<ImporterTime>2020-08-29T14:17:30-03:00</ImporterTime>
<Processor>BitmapFontProcessor</Processor>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<PipelineBuildEvent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SourceFile>/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Fonts/Kaph Regular White 80px Stroke Black 4px.png</SourceFile>
<SourceTime>2024-07-21T18:55:40-03:00</SourceTime>
<SourceTime>2024-07-22T12:23:35.3203002-03:00</SourceTime>
<DestFile>/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/DesktopGL/Content/Fonts/Kaph Regular White 80px Stroke Black 4px.xnb</DestFile>
<DestTime>2024-07-21T23:54:00.9542374-03:00</DestTime>
<DestTime>2024-09-14T16:08:25.7230871-03:00</DestTime>
<Importer>TextureImporter</Importer>
<ImporterTime>2022-07-26T08:44:56-03:00</ImporterTime>
<Processor>TextureProcessor</Processor>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<PipelineBuildEvent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SourceFile>/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/square.png</SourceFile>
<SourceTime>2024-08-16T23:10:19.3950982-03:00</SourceTime>
<DestFile>/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/DesktopGL/Content/square.xnb</DestFile>
<DestTime>2024-09-14T16:10:58.2382248-03:00</DestTime>
<Importer>TextureImporter</Importer>
<ImporterTime>2022-07-26T08:44:56-03:00</ImporterTime>
<Processor>TextureProcessor</Processor>
<ProcessorTime>2022-07-26T08:44:56-03:00</ProcessorTime>
<Parameters>
<Key>ColorKeyColor</Key>
<Value>255,0,255,255</Value>
</Parameters>
<Parameters>
<Key>ColorKeyEnabled</Key>
<Value>True</Value>
</Parameters>
<Parameters>
<Key>GenerateMipmaps</Key>
<Value>False</Value>
</Parameters>
<Parameters>
<Key>PremultiplyAlpha</Key>
<Value>True</Value>
</Parameters>
<Parameters>
<Key>ResizeToPowerOfTwo</Key>
<Value>False</Value>
</Parameters>
<Parameters>
<Key>MakeSquare</Key>
<Value>False</Value>
</Parameters>
<Parameters>
<Key>TextureFormat</Key>
<Value>Color</Value>
</Parameters>
<Dependencies />
<BuildAsset />
<BuildOutput />
</PipelineBuildEvent>
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<PipelineBuildEvent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SourceFile>/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Fonts/Kaph Regular White 80px Stroke Black 4px.fnt</SourceFile>
<SourceTime>2024-07-21T18:55:38-03:00</SourceTime>
<SourceTime>2024-07-22T12:23:35.2988483-03:00</SourceTime>
<DestFile>/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/Fonts/Kaph Regular White 80px Stroke Black 4px fnt.xnb</DestFile>
<DestTime>2024-07-21T15:57:52.0455752-03:00</DestTime>
<DestTime>2024-09-14T16:10:46.8335814-03:00</DestTime>
<Importer>BitmapFontImporter</Importer>
<ImporterTime>2020-08-29T14:17:30-03:00</ImporterTime>
<Processor>BitmapFontProcessor</Processor>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<PipelineBuildEvent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SourceFile>/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/Fonts/Kaph Regular White 80px Stroke Black 4px.png</SourceFile>
<SourceTime>2024-07-21T18:55:40-03:00</SourceTime>
<SourceTime>2024-07-22T12:23:35.3203002-03:00</SourceTime>
<DestFile>/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/Fonts/Kaph Regular White 80px Stroke Black 4px.xnb</DestFile>
<DestTime>2024-07-21T15:57:52.8810536-03:00</DestTime>
<DestTime>2024-09-14T16:10:47.5405476-03:00</DestTime>
<Importer>TextureImporter</Importer>
<ImporterTime>2022-07-26T08:44:56-03:00</ImporterTime>
<Processor>TextureProcessor</Processor>
Expand Down
42 changes: 42 additions & 0 deletions MonoDreams.Examples/Content/obj/square.mgcontent
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<PipelineBuildEvent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SourceFile>/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/square.png</SourceFile>
<SourceTime>2024-08-16T23:10:19.3950982-03:00</SourceTime>
<DestFile>/Users/rodrigooliveira/git/allrod5/monodreams/MonoDreams.Examples/Content/bin/square.xnb</DestFile>
<DestTime>2024-09-14T16:10:47.5727213-03:00</DestTime>
<Importer>TextureImporter</Importer>
<ImporterTime>2022-07-26T08:44:56-03:00</ImporterTime>
<Processor>TextureProcessor</Processor>
<ProcessorTime>2022-07-26T08:44:56-03:00</ProcessorTime>
<Parameters>
<Key>ColorKeyColor</Key>
<Value>255,0,255,255</Value>
</Parameters>
<Parameters>
<Key>ColorKeyEnabled</Key>
<Value>True</Value>
</Parameters>
<Parameters>
<Key>GenerateMipmaps</Key>
<Value>False</Value>
</Parameters>
<Parameters>
<Key>PremultiplyAlpha</Key>
<Value>True</Value>
</Parameters>
<Parameters>
<Key>ResizeToPowerOfTwo</Key>
<Value>False</Value>
</Parameters>
<Parameters>
<Key>MakeSquare</Key>
<Value>False</Value>
</Parameters>
<Parameters>
<Key>TextureFormat</Key>
<Value>Color</Value>
</Parameters>
<Dependencies />
<BuildAsset />
<BuildOutput />
</PipelineBuildEvent>
Binary file added MonoDreams.Examples/Content/square.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 6 additions & 4 deletions MonoDreams.Examples/Game1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ public Game1()

private void InitializeRenderer(int realScreenWidth, int realScreenHeight)
{
_renderer.VirtualWidth = realScreenWidth;
_renderer.VirtualHeight = realScreenHeight;
_renderer.VirtualWidth = 800;
_renderer.VirtualHeight = 600;
_renderer.ScreenWidth = realScreenWidth;
_renderer.ScreenHeight = realScreenHeight;
_renderer.BackgroundColor = new Color(68, 76, 86);
_renderer.Initialize();
_camera.RecalculateTransformationMatrices();
}
Expand All @@ -63,10 +64,11 @@ protected override void Initialize()
_camera.Zoom = 1.0f;
_camera.Position = Vector2.Zero;

_screenController.RegisterScreen(ScreenName.Game, () => new DreamGameScreen(this, Content, _camera, _renderer, _runner, _spriteBatch));
_screenController.RegisterScreen(ScreenName.MainMenu, () => new MainMenuScreen(GraphicsDevice, Content, _camera, _renderer, _runner, _spriteBatch));
_screenController.RegisterScreen(ScreenName.OptionsMenu, () => new OptionsMenuScreen(GraphicsDevice, Content, _camera, _renderer, _runner, _spriteBatch));

_screenController.LoadScreen(ScreenName.MainMenu);
_screenController.LoadScreen(ScreenName.Game);

base.Initialize();
}
Expand All @@ -77,7 +79,7 @@ protected override void Update(GameTime gameTime)
Keyboard.GetState().IsKeyDown(Keys.Escape))
Exit();

GraphicsDevice.Clear(Color.OldLace);
// GraphicsDevice.Clear(Color.OldLace);
_screenController.Update(gameTime);
}

Expand Down
14 changes: 14 additions & 0 deletions MonoDreams.Examples/Input/InputState.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using MonoDreams.Input;

namespace MonoDreams.Examples.Input;

public class InputState() : AInputState(0.5f)
{
public static readonly InputState Up = new();
public static readonly InputState Down = new();
public static readonly InputState Left = new();
public static readonly InputState Right = new();
public static readonly InputState Jump = new();
public static readonly InputState Grab = new();
public static readonly InputState Exit = new();
}
Loading

0 comments on commit 22b1f66

Please sign in to comment.