Language…
20 users online: akawo, Alex No,  AmperSam, CharlieUltra, DanMario24YT, deadworld2009,  DeppySlide, edgar, Green, Gulaschko, Hammerer, Heitor Porfirio, JezJitzu,  MarioFanGamer, Metal-Yoshi94, MistaX88, Pink Gold Peach,  Telinc1, timeisart, Tulip Time Scholarship Games - Guests: 282 - Bots: 442
Users: 64,795 (2,370 active)
Latest user: mathew

Quenstion about graphics code

I want to give 32x32 GFX to my sprite.
Below is a code I made a little change, but quarter of graphics isn't displayed well as you can see from the picture. WHAT IS WRONG?


Code
TILEMAP:	db $80,$82,$A0,$A2
X_OFFSET:	db $F8,$08,$F8,$08
Y_OFFSET:	db $F8,$F8,$08,$08

SUB_GFX:	JSR GET_DRAW_INFO	

		PHX			
		LDX #$03			
LOOP_START
		LDA X_OFFSET,x		
 		CLC			
		ADC $00			 
		STA $0300,y		
		LDA Y_OFFSET,x		
 		CLC			
		ADC $01			
		STA $0301,y		

		LDA TILEMAP,x		
		STA $0302,y		
		PHX			
		LDX $15E9	        
		LDA $15F6,x		

                ORA $64                 
		STA $0303,y		
		PLX			

		INY			
		INY			
		INY			
		INY			
		DEX			
		BPL LOOP_START		
		PLX			

		LDY #$02			
		LDA #$01			
		JSL $01B7B3		
		RTS
I assume you want to display Bowser? If so, it seems like you have loaded the wrong tile. Specifically, Bowser's head isn't tile $80 but a different one. Look into the 8x8 editor and see where Bowser's head actually is located.
Additionally, your arguments for $01B7B3 are wrong. Y is set to $02, implying a tile size of 16x16, which looks correct, however, A is set to $01, which implies you only drew two tiles - you want to draw four. Set A to $03, not $01, before calling $01B7B3. Your X and Y offsets should also be $10 and $F0 (16 and -16, respectively) for 16x16 tiles - currently, they're $08 and $F8, which place the tiles too close together.