You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -390,7 +390,7 @@ A basic input buffer can be implemented using a queue data structure, which foll
390
390
>
391
391
> This contrasts with a [`Stack<T>`](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.stack-1?view=net-9.0>), which follows Last In, First Out (LIFO) behavior, where the most recently added item is the first one retrieved.
392
392
393
-
The size of an input buffer is an important design decision. If it's too small, players might still feel the game isn't responsive enough. If it's too large, the game might feel like it's playing itself by working through a backlog of commands.
393
+
The size of an input buffer is an important design decision. If it is too small, players might still feel the game is not responsive enough. If it is too large, the game might feel like it is playing itself by working through a backlog of commands.
394
394
395
395
### When to Use Input Buffering
396
396
@@ -401,7 +401,7 @@ Consider implementing input buffering in your game when:
401
401
- Actions require precise timing that is difficult for players to hit consistently.
402
402
- You want to allow players to "queue up" their next few moves.
403
403
404
-
We'll see a practical implementation of input buffering in [Chapter 23](../23_completing_the_game/index.md) when we finalize our snake-like game mechanics, where timing and direction changes are critical to gameplay.
404
+
We will see a practical implementation of input buffering in [Chapter 23](../23_completing_the_game/index.md) when we finalize our snake-like game mechanics, where timing and direction changes are critical to gameplay.
Copy file name to clipboardExpand all lines: articles/tutorials/building_2d_games/23_completing_the_game/index.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -315,7 +315,7 @@ Implementing the input buffering technique we introduced in [Chapter 10](../10_h
315
315
316
316
### Implementing Input Buffering in the Slime Class
317
317
318
-
For the `Slime` class, we will implement input buffering based on the example given using a `Queue<T>` in [Chapter 10](../10_handling_input/index.md#implementing-a-simple-input-buffer). In the `GameObject` folder of the `DungeonSlime` project (your main game project), open the `Slime.cs` file so we can make the changes.
318
+
For the `Slime` class, we will implement input buffering based on the example given using a `Queue<T>` in [Chapter 10](../10_handling_input/index.md#implementing-a-simple-input-buffer). In the `GameObject` folder of the *DungeonSlime* project (your main game project), open the `Slime.cs` file so we can make the changes.
319
319
320
320
First, update the using statements at the top of the `Slime` class to add the `System.Linq` using statement:
@@ -189,7 +189,7 @@ To create this structure, from the same terminal window:
189
189
> [!NOTE]
190
190
> The `touch`command creates an empty file if it does not exist or updates the modification timeif it does exist. We are using it here to create a blank file that we will populate with content in the next step.
191
191
192
-
6. Open the *Info.plist* file you just created in a text editor and add the following content to the file and save it.
192
+
6. Open the `Info.plist` file you just created in a text editor and add the following content to the file and save it.
@@ -216,7 +216,7 @@ To create this structure, from the same terminal window:
216
216
> For more information on the `Info.plist` manifest file, refer to the [About Info.plist Keys and Values](https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Introduction/Introduction.html) Apple Developer documentation.
217
217
218
218
219
-
7. Next, create the application bundle *.icns* icon file. To do this, perform the following:
219
+
7. Next, create the application bundle `.icns` icon file. To do this, perform the following:
220
220
221
221
1. First, you will need a `.png` file that can be used to create the icon setforthe final `.icns` output. If you already have a `.png` icon for your game, ensure it isin the root of the main project directory and is named `Icon.png`. If you do not have one already prepared, you can use the `Icon.bmp` that was generated in the root of the main project directory when you initially created the project. However, it will need to be converted to a `.png` first. To do this, execute the following command:
0 commit comments