Remove username from TODOs

This commit is contained in:
Colin McMillen 2015-06-06 18:05:57 -04:00
parent 08fae310e8
commit c17b137ab2

View File

@ -5,7 +5,7 @@
; TODO(mcmillen): define screen / ship / shot dimensions as constants. ; TODO: define screen / ship / shot dimensions as constants.
@ -103,7 +103,7 @@ LoadPaletteAndTileData:
; Initialize the palette memory in a loop. ; Initialize the palette memory in a loop.
; We could also do this with a DMA transfer (like we do with the tile data ; We could also do this with a DMA transfer (like we do with the tile data
; below), but it seems overkill for just a few bytes. :) ; below), but it seems overkill for just a few bytes. :)
; TODO(mcmillen): do it with a DMA transfer. ; TODO: do it with a DMA transfer.
; First, sprite palette data: ; First, sprite palette data:
ldx #0 ldx #0
@ -128,7 +128,7 @@ LoadPaletteAndTileData:
cpx #8 ; 8 bytes of palette data. cpx #8 ; 8 bytes of palette data.
bne - bne -
; TODO(mcmillen): make the "DMA stuff into VRAM" a macro or function. ; TODO: make the "DMA stuff into VRAM" a macro or function.
; Set VMADDR to where we want the DMA to start. We'll store sprite data ; Set VMADDR to where we want the DMA to start. We'll store sprite data
; at the beginning of VRAM. ; at the beginning of VRAM.
ldx #$0000 ldx #$0000
@ -428,7 +428,7 @@ MaybeShoot:
bra - bra -
+ +
; Enable shot; set its position based on player position. ; Enable shot; set its position based on player position.
; TODO(mcmillen): it might be easier/faster to keep N arrays: one for each ; TODO: it might be easier/faster to keep N arrays: one for each
; field of shot (shotSpriteArray, shotXArray, shotYArray, ...) ; field of shot (shotSpriteArray, shotXArray, shotYArray, ...)
lda #8 ; Sprite number. lda #8 ; Sprite number.
sta 0, X sta 0, X
@ -540,7 +540,7 @@ SpawnEnemyShips:
; TODO(mcmillen): reap ships if they move off the top, bottom, or right too. ; TODO: reap ships if they move off the top, bottom, or right too.
UpdateEnemyShips: UpdateEnemyShips:
ldy #0 ldy #0
sty $00 ; Index into enemyShotArray. sty $00 ; Index into enemyShotArray.
@ -550,7 +550,7 @@ UpdateEnemyShips:
beq ++ beq ++
; Move the ship. ; Move the ship.
; TODO(mcmillen): implement different movement based on AI-type. ; TODO: implement different movement based on AI-type.
lda enemyShipArray + 1, Y ; x lda enemyShipArray + 1, Y ; x
clc clc
adc #-2 ; x-velocity. adc #-2 ; x-velocity.
@ -569,7 +569,7 @@ UpdateEnemyShips:
bra ++ bra ++
+ ; Add a shot. + ; Add a shot.
; TODO(mcmillen): implement different shooting based on shoot-type. ; TODO: implement different shooting based on shoot-type.
lda enemyShipArray + 1, Y lda enemyShipArray + 1, Y
sta $02 ; Enemy ship X. sta $02 ; Enemy ship X.
lda enemyShipArray + 2, Y lda enemyShipArray + 2, Y
@ -662,8 +662,8 @@ UpdateShot: ; Updates position of one shot.
bra UpdateShotY bra UpdateShotY
UpdateShotWithNegativeXVelocity: UpdateShotWithNegativeXVelocity:
; TODO(mcmillen): wrap sprites when they go negative here, like we do ; TODO: wrap sprites when they go negative here, like we do with
; with y-velocities. ; y-velocities.
lda playerShotArray + 1, X ; Current x. lda playerShotArray + 1, X ; Current x.
clc clc
adc $00 adc $00
@ -704,8 +704,8 @@ DisableShot:
stz playerShotArray, X stz playerShotArray, X
ShotDone: ShotDone:
; TODO(mcmillen): in places where we .rept inx (etc), is it faster to use ; TODO: in places where we .rept inx (etc), is it faster to use actual
; actual addition? ; addition?
.rept shotSize .rept shotSize
inx inx
.endr .endr
@ -804,7 +804,7 @@ UpdateBackgroundScroll:
UpdateSprites: ; TODO(mcmillen): refactor into smaller pieces. UpdateSprites: ; TODO: refactor into smaller pieces.
; This page is a good reference on SNES sprite formats: ; This page is a good reference on SNES sprite formats:
; http://wiki.superfamicom.org/snes/show/SNES+Sprites ; http://wiki.superfamicom.org/snes/show/SNES+Sprites
; It uses the same approach we're using, in which we keep a buffer of the ; It uses the same approach we're using, in which we keep a buffer of the
@ -920,7 +920,7 @@ UpdateSprites: ; TODO(mcmillen): refactor into smaller pieces.
ldy $00 ; Restore Y to its rightful self. ldy $00 ; Restore Y to its rightful self.
; Now add sprites to show player health. ; Now add sprites to show player health.
; TODO(mcmillen): why aren't they in front? ; TODO: why aren't they in front?
stz $01 stz $01
lda #4 lda #4
sta $02 sta $02