Skip to content

Commit afec889

Browse files
committed
Fix tabs-spaces conflicts
1 parent 10e76a9 commit afec889

File tree

6 files changed

+21
-21
lines changed

6 files changed

+21
-21
lines changed

ColorSwitch.Windows/GameCore/Components/PlayerPhysics.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ public class PlayerPhysics : Component {
1010
private float impulseAccelerator;
1111
private static float ImpulseSpeed => 10f;
1212

13-
public PlayerPhysics() : base() { }
13+
public PlayerPhysics() : base() { }
1414

1515
public void ApplyImpulse() {
1616
impulseAccelerator = 0;
1717
impulseHandling = true;
1818
}
19-
19+
2020
public void Update() {
2121
if (impulseHandling) {
2222
if (impulseAccelerator < 10f) {
@@ -27,7 +27,7 @@ public void Update() {
2727
}
2828
} else {
2929
entity.transform.position += new Vector2(0, ImpulseSpeed - impulseAccelerator);
30-
if (impulseAccelerator > 0)
30+
if (impulseAccelerator > 0)
3131
impulseAccelerator -= 0.5f;
3232
}
3333
}

ColorSwitch.Windows/GameCore/Entities/ColorSwitcher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public override void onAddedToScene() {
1717
addComponent(switcherSprite);
1818

1919
var collider = new CircleCollider(switcherTexture.Height / 2);
20-
addComponent(collider);
20+
addComponent(collider);
2121

2222
transform.position = new Vector2(400, 100);
2323
}

ColorSwitch.Windows/GameCore/Entities/Player.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class Player : Entity {
1212
public Color color {
1313
get => playerSprite.color;
1414
set => playerSprite.color = value;
15-
}
15+
}
1616

1717
public List<ColorEntity> colorEntities;
1818

@@ -22,21 +22,21 @@ public Color color {
2222

2323
public Player() : base("player") {
2424
colorEntities = new List<ColorEntity>();
25-
}
25+
}
2626

27-
public override void onAddedToScene() {
27+
public override void onAddedToScene() {
2828
playerTexture = scene.content.Load<Texture2D>("Player/player_circle");
2929
playerSprite = new Sprite(playerTexture);
3030
addComponent(playerSprite);
31-
31+
3232
var physics = new PlayerPhysics();
3333
addComponent(physics);
3434

3535
var collider = new CircleCollider(playerTexture.Height / 2);
36-
addComponent(collider);
36+
addComponent(collider);
3737

3838
transform.position = new Vector2(scene.sceneRenderTargetSize.X / 2, scene.sceneRenderTargetSize.Y / 2);
39-
}
39+
}
4040

4141
public override void update() {
4242
base.update();
@@ -47,10 +47,10 @@ public override void update() {
4747
physics.Update();
4848
physics.HandleColorEntities(colorEntities);
4949

50-
if (Input.isKeyPressed(Keys.Up) || Input.leftMouseButtonPressed) {
50+
if (Input.isKeyPressed(Keys.Up) || Input.leftMouseButtonPressed) {
5151
gameStarted = true;
5252
physics.ApplyImpulse();
53-
}
54-
}
55-
}
53+
}
54+
}
55+
}
5656
}

ColorSwitch.Windows/GameCore/Scenes/GameScene.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ public override void initialize() {
1313

1414
addEntity(colorSwitcher);
1515
addEntity(player);
16-
}
16+
}
1717
}
1818
}

ColorSwitch.Windows/MainGame.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
using ColorSwitch.Windows.GameCore.Scenes;
66

77
namespace ColorSwitch.Windows {
8-
public class MainGame : Core {
9-
public MainGame() : base(width: 800, height: 800, isFullScreen: false, enableEntitySystems: false) { }
8+
public class MainGame : Core {
9+
public MainGame() : base(width: 800, height: 800, isFullScreen: false, enableEntitySystems: false) { }
1010

11-
protected override void Initialize() {
11+
protected override void Initialize() {
1212
base.Initialize();
1313
Window.AllowUserResizing = true;
1414

1515
defaultSamplerState = SamplerState.PointClamp;
1616
#pragma warning disable 0618 // disable obsolete warning
17-
scene = Scene.createWithDefaultRenderer<GameScene>(Color.Black);
17+
scene = Scene.createWithDefaultRenderer<GameScene>(Color.Black);
1818
#pragma warning restore 0618
1919
Core.debugRenderEnabled = true;
20-
}
21-
}
20+
}
21+
}
2222
}

ColorSwitch.Windows/Program.cs

-85 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)