Skip to content

Initial Weather Radio#1414

Draft
vulcandth wants to merge 1 commit intomasterfrom
weather-radio
Draft

Initial Weather Radio#1414
vulcandth wants to merge 1 commit intomasterfrom
weather-radio

Conversation

@vulcandth
Copy link
Collaborator

Implementation of the weather radio. This is still a work in progress.. but feel free to preview it.

Right now you should free the slowpokes first in AzaleaTown.

const POKEDEX_SHOW_6 ; 55
const POKEDEX_SHOW_7 ; 56
const POKEDEX_SHOW_8 ; 57
const RADIO_SCROLL ; 55
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where did 54 go?

db MUSIC_POKE_FLUTE_CHANNEL
db MUSIC_RUINS_OF_ALPH_RADIO
db MUSIC_LAKE_OF_RAGE_ROCKET_RADIO
db MUSIC_ROUTE_30
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this doesn't have an obvious name, can you add comments on each line with the channel constants?


SECTION "_WC_IntroText2", ROMX
_WC_IntroText2::
line "Pokécast Inst."
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Inst"?


SECTION "_WC_Greet1", ROMX
_WC_Greet1::
line "DJ Zephyr here!"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's be sure to add Zephyr in the radio tower!

push de
ld bc, SCREEN_WIDTH * 2
rst CopyBytes
; Copy up to SCREEN_WIDTH * 2 bytes, stopping before $8000 bank boundary.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add an explanation of why a copy would ever potentially overflow past the bank if not cut off? Why wouldn't the length already keep it contained within the bank?


.default_map
; Uninitialized overcast slot — use New Bark Town as fallback
ld b, GROUP_NEW_BARK_TOWN
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use lb

ld c, MAP_NEW_BARK_TOWN
jr .normal_group

.WeatherStrings:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assert table length

db "blossoms!@"

; For aliased overcast areas, map to the first real map in each area
.AliasToMap:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is map data so goes in data/maps/.

call Random
and 1
jr z, .snowtop
; Rugged Road - always has sandstorms
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks data-table-able.

pop hl
; Copy weather string to wStringBuffer2
ld de, wStringBuffer2
.copy_ws:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sure there's a routine in home/ for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants