junglejourney
changeset 174:bf2912891ecc
Added comments about the enemy movement.
| author | David Boddie <david@boddie.org.uk> |
|---|---|
| date | Thu Sep 22 23:06:28 2011 +0200 |
| parents | 95a2a00b5a92 |
| children | d8d211d87eb0 |
| files | mapcode.oph |
| diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line diff
1.1 --- a/mapcode.oph Wed Sep 21 23:42:27 2011 +0200 1.2 +++ b/mapcode.oph Thu Sep 22 23:06:28 2011 +0200 1.3 @@ -2315,7 +2315,7 @@ 1.4 ; Add an emerging enemy. 1.5 1.6 ldy #0 1.7 - lda #3 1.8 + lda #3 ; emerge/explosion 1.9 sta ($74),y 1.10 1.11 jsr emerge_type ; obtain an enemy type 1.12 @@ -2367,7 +2367,7 @@ 1.13 ora #8 ; make this an enemy 1.14 1.15 ldy #0 1.16 - sta ($74),y ; update the type 1.17 + sta ($74),y ; update the type (>= 8) 1.18 iny 1.19 lda #0 ; prepare the direction and animation offset 1.20 sta ($74),y 1.21 @@ -2751,9 +2751,9 @@ 1.22 move_enemy: ; $74,$75=character address 1.23 1.24 lda #0 1.25 - sta $8d 1.26 + sta $8d ; vertical motion value (0=no motion; 1=up; 2=down) 1.27 lda #0 1.28 - sta $8e 1.29 + sta $8e ; horizontal motion value (0=no motion; 1=left; 2=right) 1.30 1.31 ldy #2 1.32 lda ($74),y ; y
