Skeetendo

’Cause all games were better on the GBC

You are not logged in.

  • Index
  • → Help/Question
  • → Adding pokeball next to enemy hud on wild pokemon that are caught

#1 2018-02-14 22:39:39

knuxyl
Member
Registered: 2018-02-14
Post 1/15

Adding pokeball next to enemy hud on wild pokemon that are caught

I'm trying implement a system like GSC in pokemon red that will show a pokeball next to their name to show that you've already caught it but I'm not sure where to start.

I'm guessing it'll be somewhere in draw_hud_pokeball_gfx.asm but I don't know. The only rom I know of that has this I cannot reference because they switched to a color hack and all the code is different.

Anybody have any idea on how for me to get started? Thanks

Offline

#2 2018-02-15 00:01:49

Ammako
Member
Registered: 2016-03-06
Post 155/158

Re: Adding pokeball next to enemy hud on wild pokemon that are caught

knuxyl wrote:

The only rom I know of that has this I cannot reference because they switched to a color hack and all the code is different.

https://github.com/dannye/pokered-gen-II

Unfortunately most of the work was done before having been ported over to disassembly, so you probably won't find a commit that only adds the pokeball graphics.

Last edited by Ammako (2018-02-15 00:14:03)

Offline

#3 2018-02-16 20:39:00

Danny-E 33
Administrator
Registered: 2012-06-09
Post 1,066/1,119

Re: Adding pokeball next to enemy hud on wild pokemon that are caught

Actually, this feature was the first thing I did after porting to the disassembly.

Here's the commit from 2013:
https://github.com/dannye/pokered-gen-I … cae93eb8b3

Since that commit, the code has been cleaned up slightly (replacing hard-coded memory addresses with wram labels, using the predef macro).
Here's the most recent version of that routine:
https://github.com/dannye/pokered-gen-I … .asm#L5488

Feel free to ask if you have any questions about how it works

Offline

#4 2018-02-16 20:42:14

Ammako
Member
Registered: 2016-03-06
Post 156/158

Re: Adding pokeball next to enemy hud on wild pokemon that are caught

Oh, I must not have looked up the right search terms when looking for commits. :p

Well there you go.

Offline

#5 2018-02-26 02:08:15

knuxyl
Member
Registered: 2018-02-14
Post 10/15

Re: Adding pokeball next to enemy hud on wild pokemon that are caught

Danny-E 33 wrote:

Actually, this feature was the first thing I did after porting to the disassembly.
....

Well I tried using the code, but it changed the HUD by adding a block corner image and when there's a pokemon I've already caught it shows a japanese katakana character instead of a pokeball

Offline

#6 2018-02-26 02:16:26

knuxyl
Member
Registered: 2018-02-14
Post 11/15

Re: Adding pokeball next to enemy hud on wild pokemon that are caught

Screenshot_2018-02-25_20-14-52.png

Here is what it's doing. I copied draw_hud_gfx.asm from engine/battle/ and added the 3-4 routines from your main.asm to home.asm that the new hud.asm was calling for

Offline

#7 2018-02-26 05:48:24

Danny-E 33
Administrator
Registered: 2012-06-09
Post 1,073/1,119

Re: Adding pokeball next to enemy hud on wild pokemon that are caught

In that commit I linked you to, I changed that unused Japanese character to the pokeball tile:
https://github.com/dannye/pokered-gen-I … x/font.png

Offline

  • Index
  • → Help/Question
  • → Adding pokeball next to enemy hud on wild pokemon that are caught

Board footer

Powered by FluxBB