Skip to content

Commit bfd68ad

Browse files
authored
Fix typos (#197)
1 parent e7cf9fb commit bfd68ad

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/part3/the-player.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
The player’s logic is pretty simple. The player can move in 4 directions and fire bullets. We update the player by checking our input directions and the A button. We’ll move in the proper direction if its associated d-pad button is pressed. If the A button is pressed, we’ll spawn a new bullet at the player’s position.
44

55
Our player will have 3 variables:
6-
- wePlayerPositionX - a 16-bit scaled integer
7-
- wePlayerPositionY - a 16-bit scaled integer
6+
- wPlayerPositionX - a 16-bit scaled integer
7+
- wPlayerPositionY - a 16-bit scaled integer
88
- wPlayerFlash - a 16-bit integer used when the player gets damaged
99

1010
:::warning Note
@@ -19,15 +19,15 @@ These are declared at the top of the "src/main/states/gameplay/objects/player.as
1919
{{#include ../../galactic-armada/src/main/states/gameplay/objects/player.asm:player-start}}
2020
```
2121

22-
Well draw our player, a simple ship, using the previously discussed metasprites implementation. Here is what we have for the players metasprites and tile data:
22+
We'll draw our player, a simple ship, using the previously discussed metasprites implementation. Here is what we have for the players metasprites and tile data:
2323
```rgbasm,linenos,start={{#line_no_of "" ../../galactic-armada/src/main/states/gameplay/objects/player.asm:player-data}}
2424
{{#include ../../galactic-armada/src/main/states/gameplay/objects/player.asm:player-data}}
2525
```
2626

2727
## Initializing the Player
2828

2929
Initializing the player is pretty simple. Here's a list of things we need to do:
30-
* Reset oir wPlayerFlash variable
30+
* Reset our wPlayerFlash variable
3131
* Reset our wPlayerPositionX variable
3232
* Reset our wPlayerPositionU variable
3333
* Copy the player's ship into VRAM

0 commit comments

Comments
 (0)