Search found 4 matches

by freeman.pixelz
Fri Jan 01, 2021 12:38 pm
Forum: SNESdev
Topic: Bug when I display two 32x32 sprites
Replies: 7
Views: 5211

Re: Bug when I display two 32x32 sprites

Actually this is the code of SetupVideo, the first sprite is transferred to OAM. I must do the same for the second sprite then. SetupVideo: php rep #$10 sep #$20 stz $2102 stz $2103 ;*********transfer sprite data stz $2102 ; set OAM address to 0 stz $2103 LDY #$0400 STY $4300 ; CPU -> PPU, auto incr...
by freeman.pixelz
Fri Jan 01, 2021 7:18 am
Forum: SNESdev
Topic: Bug when I display two 32x32 sprites
Replies: 7
Views: 5211

Re: Bug when I display two 32x32 sprites

I tried this but the second sprite is not displayed: ;============================================================================ ; Includes ;============================================================================ ;== Include MemoryMap, Vector Table, and HeaderInfo == .INCLUDE "header.inc...
by freeman.pixelz
Fri Jan 01, 2021 6:40 am
Forum: SNESdev
Topic: Bug when I display two 32x32 sprites
Replies: 7
Views: 5211

Re: Bug when I display two 32x32 sprites

Thank you. So I forgot to take the first sprite size in consideration. Is this code correct? ; Load Tile data to VRAM LoadBlockToVRAM SpriteConsole, $0000, $0800 ; First sprite LoadBlockToVRAM SpriteBike, $0800, $0800 ; Second sprite What about the second sprite position? How can I set a position to...
by freeman.pixelz
Fri Jan 01, 2021 4:26 am
Forum: SNESdev
Topic: Bug when I display two 32x32 sprites
Replies: 7
Views: 5211

Bug when I display two 32x32 sprites

Hello, I started to read tutorials here: https://wiki.superfamicom.org/ I have an issue when I try to display 2 sprites on the screen. How can I set a different position to the second sprite? This is the source code: https://www.dropbox.com/s/n7tbnwk7bgcr8y9/sprite.zip?dl=0 This is the main code: St...