daily pastebin goal
7%
SHARE
TWEET

unzoom

a guest Jul 21st, 2016 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/engine/battle/core.asm b/engine/battle/core.asm
  2. index 9241ce6..3a4a8e6 100755
  3. --- a/engine/battle/core.asm
  4. +++ b/engine/battle/core.asm
  5. @@ -6416,7 +6416,10 @@ LoadPlayerBackPic:
  6.  .next
  7.     ld a, BANK(RedPicBack)
  8.     call UncompressSpriteFromDE
  9. -   predef ScaleSpriteByTwo
  10. +
  11. +   ;predef ScaleSpriteByTwo
  12. +   call LoadBackSpriteUnzoomed
  13. +
  14.     ld hl, wOAMBuffer
  15.     xor a
  16.     ld [hOAMTile], a ; initial tile number
  17. @@ -6448,8 +6451,10 @@ LoadPlayerBackPic:
  18.     ld e, a
  19.     dec b
  20.     jr nz, .loop
  21. -   ld de, vBackPic
  22. -   call InterlaceMergeSpriteBuffers
  23. +
  24. +   ;ld de, vBackPic
  25. +   ;call InterlaceMergeSpriteBuffers
  26. +
  27.     ld a, $a
  28.     ld [$0], a
  29.     xor a
  30. @@ -7108,9 +7113,12 @@ LoadMonBackPic:
  31.     call ClearScreenArea
  32.     ld hl,  wMonHBackSprite - wMonHeader
  33.     call UncompressMonSprite
  34. -   predef ScaleSpriteByTwo
  35. -   ld de, vBackPic
  36. -   call InterlaceMergeSpriteBuffers ; combine the two buffers to a single 2bpp sprite
  37. +
  38. +   ;predef ScaleSpriteByTwo
  39. +   ;ld de, vBackPic
  40. +   ;call InterlaceMergeSpriteBuffers ; combine the two buffers to a single 2bpp sprite
  41. +   call LoadBackSpriteUnzoomed
  42. +
  43.     ld hl, vSprites
  44.     ld de, vBackPic
  45.     ld c, (2*SPRITEBUFFERSIZE)/16 ; count of 16-byte chunks to be copied
  46. @@ -7118,6 +7126,12 @@ LoadMonBackPic:
  47.     ld b, a
  48.     jp CopyVideoData
  49.  
  50. +LoadBackSpriteUnzoomed:
  51. +   ld a, $44
  52. +   ld de, vBackPic
  53. +   push de
  54. +   jp LoadUncompressedBackSprite
  55. +
  56.  JumpMoveEffect:
  57.     call _JumpMoveEffect
  58.     ld b, $1
  59. diff --git a/engine/hall_of_fame.asm b/engine/hall_of_fame.asm
  60. index 9eb4edc..01cd4dc 100755
  61. --- a/engine/hall_of_fame.asm
  62. +++ b/engine/hall_of_fame.asm
  63. @@ -195,10 +195,12 @@ HoFLoadPlayerPics:
  64.     ld de, RedPicBack
  65.     ld a, BANK(RedPicBack)
  66.     call UncompressSpriteFromDE
  67. -   predef ScaleSpriteByTwo
  68. -   ld de, vBackPic
  69. -   call InterlaceMergeSpriteBuffers
  70. -   ld c, $1
  71. +
  72. +   ;predef ScaleSpriteByTwo
  73. +   ;ld de, vBackPic
  74. +   ;call InterlaceMergeSpriteBuffers
  75. +   ;ld c, $1
  76. +   callba LoadBackSpriteUnzoomed
  77.  
  78.  HoFLoadMonPlayerPicTileIDs:
  79.  ; c = base tile ID
  80. diff --git a/home.asm b/home.asm
  81. index 62a176c..3c18e1f 100644
  82. --- a/home.asm
  83. +++ b/home.asm
  84. @@ -766,6 +766,7 @@ LoadMonFrontSprite::
  85.     call UncompressMonSprite
  86.     ld hl, wMonHSpriteDim
  87.     ld a, [hli]
  88. +LoadUncompressedBackSprite:
  89.     ld c, a
  90.     pop de
  91.     ; fall through
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top