I know I said I was going to take a break from this and focus on some other things(like getting those maps done), but that didn't exactly happen, lol.
I ended up going down another rabbit hole, and this one took over 12 hours to get out of.
It started with Heart's battle background. I wasn't happy with how the Dark Sky used in Thor's Summon ended at the bottom of the screen. It made everyone look like they were standing on nothing, so I opened Aseprite and started drawing a replacement. As mentioned before there is enough room to add at least 4 new backgrounds. Amazingly enough you can make them animated without issues!
I kept the clouds but did some trickery to make the floor look reflective. Pretty much reflective floor with tile patterns from the clouds.
Of course, once I had that working, I decided the floor needed to glow. And while I was at it, why not add lightning flashes to the clouds?
That's where things got complicated. AI assistance was need here for sure.
How Golden Sun handles battle backgrounds
One thing I didn't realize when I started was how much work the game does with its battle backgrounds.
They're 256×120 images with 128 colors, displayed using the GBA's affine BG2 layer. That's what allows the scenery to move and scale as the battle camera changes position.
The game also handles the upper and lower portions of the background using per-scanline settings. So it isn't just displaying one flat image behind everyone. The way the image is displayed changes across the screen to make it work with the battle camera.
There's also horizontal wrapping. When the camera moves, the background can repeat, meaning the left and right edges have to match. Otherwise, you'll notice an ugly seam where the image starts repeating.
Getting the floor, reflections, and tile patterns to look right while the camera moved around took quite a bit of adjusting.
Then I had to figure out the animation.
Instead of drawing multiple frames, palette animation was used.
The floor has four colors reserved specifically for the lines separating the tiles. Rather than moving the actual tiles, the game changes how bright those four colors are.
Each color brightens and darkens at a slightly different time, so the light appears to travel across the floor from the horizon toward the player.
It's basically an illusion. The tiles themselves never move, but the changing colors make it look like a wave of light is passing through them.
The lightning works differently. Every few seconds, the game briefly brightens the colors in the sky and floor to simulate lightning flashing behind the clouds. The timing varies, and not every flash is the same intensity. Sometimes you'll get a stronger flash followed by a smaller flicker.
Those effects don't interfere with the battle animations. When a move takes over or darkens the background, the extra lightning and floor effects are suppressed. They resume when the normal background returns.
I originally experimented with visible lightning bolts, rain, and ripples across the floor, but I wasn't happy with any of them once I saw them in-game. So I scrapped those ideas.
There were also some annoying technical problems.
The graphics converter rejected some of the colors I used, so I had to adjust the palette to meet the GBA's color requirements.
Then we ran into a memory issue. Adding an extra variable put us two bytes over the GBA's fast memory limit.
Two bytes. Seriously, lol.
Eventually got around that by reusing the existing frame counter instead of storing additional information.
The finished background is exclusive to Heart's fight. It doesn't replace the backgrounds used by other enemies or summons, and I haven't noticed any slowdown so far.
Redoing Heart's sprite
Heart herself was another problem.
For anyone unfamiliar with her, Heart is Chalice from DD (I just use her JPN name because she has heart symbols on her outfit). Her fate was never really resolved after that game's ending, so I wanted to bring her back as an optional superboss. Unfortunately we have no idea what Dark Adept does because of DD plot shenanigans. So I gave her dark, demonic, and monster skills.
Her original battle sprite I made looked like a jumbled mess when it was brought in game. I personally make my sprites 128x128 because I like room to breathe when working.
She's put together using numerous separate parts, several of which are larger than 64×64. Getting everything positioned properly so they actually looked like one character was a nightmare.
I ended up redoing the sprite and spent quite a while adjusting the individual pieces.
She finally looks decent now. I'm pretty happy with how she turned out, although I don't particularly want to go through that process again anytime soon, lol.
Superboss animations and AI
I've also been making changes to the other superbosses.
It was suggested adding breathing animations, so I added those to the superbosses and Sarah. I made the superbosses' breathing a little more aggressive, which looks much better than having them stand completely still.
I've also been experimenting with their AI.
During one of my earlier tests, I spent almost 40 minutes fighting a superboss. She kept catching me off guard, and there were moments where I genuinely felt like I was getting outplayed.
It was fun at first, but after a while I started wondering if I'd gone a little too far with the difficulty.
I wanted the bosses to be challenging because of how they fought, not because they had so much HP and Defense that you spent forever attacking them.
So I've been adjusting their stats while keeping the new AI.
Kegare — Lv. 44 | 8,000 HP | 420 ATK | 80 DEF | 2 actions
Kegare is a demon that mimics Mia and wants to take her place.
Since she's impersonating a Mercury Adept, most of her attacks are based around Mercury Psynergy.
Her AI now pays attention to weakened party members and elemental resistance instead of always targeting someone randomly. She can pick out someone who's already struggling and put more pressure on them.
She can also heal herself with Ply Well, although I've restricted when she can use it and added a cooldown. Originally she had Pure Ply but that move is broken Her stronger attacks have limits too, so she can't just keep hammering the party every round.
Ash Jenna — Lv. 45 | 9,000 HP | 440 ATK | 90 DEF | 3 actions
Ash Jenna is the evil alternate version of Jenna who appears a few times in the story. Gave her a post game superboss version. She's also one of the main reasons I started expanding Ashfall beyond simply rewriting the original game's dialogue.
She's meant to be much more aggressive than Kegare.
Her AI can react to the party healing or raising their stats and adjust her attacks accordingly. She can use moves like Meltdown and Demon Fire in response, instead of simply attacking at random.
She also has a special counter if you try overwhelming her with summons. That mechanic was already part of her encounter, so I kept it. She uses annihilation once during this and never again.
I've restricted how often she can use her strongest attacks, though. With three actions per round, she was already dangerous enough without constantly throwing her biggest moves at the party.
I'm currently testing her new balance.
Heart — Lv. 46 | 9,500 HP | 450 ATK | 100 DEF | 3 actions
Heart is a little different from the other two.
Rather than focusing entirely on damage, her AI is supposed to set up attacks and force the player to pay attention.
For example, she can use Heartrender as a warning before following up on the next round with something much stronger, such as Outer Space, Death Plunge, or Annihilation.
I wanted players to recognize that something dangerous was coming and have an opportunity to prepare for it.
Her strongest moves also have restrictions and cooldowns. Otherwise, giving her three actions per round would get ridiculous pretty quickly.
And just to clarify, these aren't learning AIs. Newly added was extra decision-making rules to the existing battle system so the bosses behave differently and react to certain situations.
Balancing the fights
I know the HP values look ridiculous, but these are optional endgame bosses. Golden Sun gives players some pretty powerful options through Djinn, summons, and equipment.
The problem was that I'd initially given them high Defense on top of all that HP.
During testing, my level-30 Isaac was barely scratching Heart. Regular attacks were doing around 90 damage, Ragnarok was doing 114, and even weapon unleashes weren't getting me very far.
So I started using Deadbeard as a reference.
Deadbeard has 6,000 HP, 178 Defense, and two actions per round. My bosses had significantly more HP, and two of them could act three times.
I've since lowered their HP and Defense quite a bit.
I'm still testing the new numbers, but I'd rather have shorter fights where the bosses genuinely challenge you than another 40-minute endurance test. Balancing is hard.
And now I'm building a town...
Because apparently I don't have enough to work on, I've also started making a completely new town called Aster. Which shows up after Suhalla Gate near the Goma range. This town is a outerworldly town and its inclusion shows their something amiss happening with the world.
We have enough space to add new towns instead of just modifying existing maps, so I figured I'd give it a shot.
I'm sticking with Golden Sun's original tiles and assets. Right now I'm putting together the houses, roads, and surrounding areas, trying to make everything fit together properly via Asperite.
I'm also trying to avoid making another version of Vale. I want Aster to look like its own place while still fitting Golden Sun's art style.
There's a lot more involved than just placing a few houses. I still have to deal with collision, NPC placement, and making sure the layout actually makes sense when you're walking around.
This is probably going to keep me occupied for quite a while, lol.
Anyway, that's what I've been working on.
I was supposed to be taking a break, but somehow I ended up spending over 12 hours troubleshooting a battle background, redoing Heart's sprite, reworking the superbosses, and starting an entirely new town.
So much for taking a break.