From cb13699f9d47e5601bb950dbcd0742cb032907fe Mon Sep 17 00:00:00 2001 From: an9wer Date: Tue, 28 Jul 2026 21:46:02 +0930 Subject: [PATCH] Fix typos --- src/part3/the-player.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/part3/the-player.md b/src/part3/the-player.md index 4b386909..e7b8ad8b 100644 --- a/src/part3/the-player.md +++ b/src/part3/the-player.md @@ -3,8 +3,8 @@ 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. Our player will have 3 variables: -- wePlayerPositionX - a 16-bit scaled integer -- wePlayerPositionY - a 16-bit scaled integer +- wPlayerPositionX - a 16-bit scaled integer +- wPlayerPositionY - a 16-bit scaled integer - wPlayerFlash - a 16-bit integer used when the player gets damaged :::warning Note @@ -19,7 +19,7 @@ These are declared at the top of the "src/main/states/gameplay/objects/player.as {{#include ../../galactic-armada/src/main/states/gameplay/objects/player.asm:player-start}} ``` -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: +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: ```rgbasm,linenos,start={{#line_no_of "" ../../galactic-armada/src/main/states/gameplay/objects/player.asm:player-data}} {{#include ../../galactic-armada/src/main/states/gameplay/objects/player.asm:player-data}} ``` @@ -27,7 +27,7 @@ Well draw our player, a simple ship, using the previously discussed metasprites ## Initializing the Player Initializing the player is pretty simple. Here's a list of things we need to do: -* Reset oir wPlayerFlash variable +* Reset our wPlayerFlash variable * Reset our wPlayerPositionX variable * Reset our wPlayerPositionU variable * Copy the player's ship into VRAM