瀏覽代碼

Readme added space to comment starts

Jean-David Moisan 4 年之前
父節點
當前提交
22e141155d
共有 1 個文件被更改,包括 7 次插入7 次删除
  1. 7 7
      README.md

+ 7 - 7
README.md

@@ -35,19 +35,19 @@ In your game's `Update(GameTime gameTime)`, call the two functions:
 
 ```csharp
 protected override void Update(GameTime gametime) {
-    //Call UpdateSetup at the start.
+    // Call UpdateSetup at the start.
     InputHelper.UpdateSetup();
 
-    //...
+    // ...
 
-    //Call UpdateCleanup at the end.
+    // Call UpdateCleanup at the end.
     InputHelper.UpdateCleanup();
 }
 ```
 
 ```csharp
-//Create a condition to jump.
-//It should work on space, the first gamepad's A button, or the mouse's left button.
+// Create a condition to jump.
+// It should work on space, the first gamepad's A button, or the mouse's left button.
 ICondition jump =
     new AnyCondition(
         new KeyboardCondition(Keys.Space),
@@ -57,9 +57,9 @@ ICondition jump =
 ```
 
 ```csharp
-//To check if the jump is triggered:
+// To check if the jump is triggered:
 if (jump.Pressed()) {
-    //Do the jump change.
+    // Do the jump change.
 }
 ```