Web Emulator: Background color change

Post Reply
HunterDX
Posts: 8
Joined: Wed Aug 07, 2024 11:24 pm

Web Emulator: Background color change

Post by HunterDX »

I'd like to suggest changing the current background color of the Web Emulator.

It is currently set to #2773b3 (pale blue) which can take away from a game's aesthetic appeal if the color palettes are different. See example attached.

I suggest changing it to #000000 (black). A neutral color will always work well.
Attachments
Background color does not fit the aesthetic of the game
Background color does not fit the aesthetic of the game
Screen Shot 2025-01-04 at 10.39.44 PM.png (1.43 MiB) Viewed 291 times
DragWx
Posts: 353
Joined: Tue Mar 07, 2023 9:07 pm

Re: Web Emulator: Background color change

Post by DragWx »

What if it used the VERA's current border color instead?
HunterDX
Posts: 8
Joined: Wed Aug 07, 2024 11:24 pm

Re: Web Emulator: Background color change

Post by HunterDX »

Interesting, what is the default value for this register? I haven't considered this register before.
Java Cake Games
Posts: 15
Joined: Tue Oct 18, 2022 4:05 pm

Re: Web Emulator: Background color change

Post by Java Cake Games »

The default is 0 (in the default palette, black).
DragWx
Posts: 353
Joined: Tue Mar 07, 2023 9:07 pm

Re: Web Emulator: Background color change

Post by DragWx »

The border color is 0 by default, but users are allowed to choose a different color in the X16 menu.

The border is also not visible in VGA mode unless you resize or change the active area of the screen.
HunterDX
Posts: 8
Joined: Wed Aug 07, 2024 11:24 pm

Re: Web Emulator: Background color change

Post by HunterDX »

If the default color is black and it can be configured by the dev or user, then I like this approach!
doslogo
Posts: 10
Joined: Fri Dec 20, 2024 4:26 pm

Re: Web Emulator: Background color change

Post by doslogo »

This was a common problem even back in the 90s with VGA DOS games, the border was picking up whatever color the first index of the palette was using, but VERA has this awesome register that can set which palette index to use for the border:

Code: Select all

BORDER_PAL_INDEX = 0				; Use any number between 0-255, select the color that most suits your game!

	lda #BORDER_PAL_INDEX			; Border color is only inactive display!
	sta $9F2C				; Though, make sure DCSEL=0 before writing to $9F2C
Like conversion programs or gif image editors put whatever color they want in palette index 0, this has no affect usually, but I have seen horror when they put white there and the image is loaded with VGA. I am pro-border hardware, and I am designing my game with the border in mind since day 0.
Post Reply