Skip to content

Commit 9de0662

Browse files
alloncmISSOtm
andauthored
Apply formating and styling suggestions
Co-authored-by: Eldred Habert <[email protected]>
1 parent 100b92f commit 9de0662

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/LCDC.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ When Bit 0 is cleared, the background and window lose their priority -
110110
the sprites will be always displayed on top of background and window,
111111
independently of the priority flags in OAM and BG Map attributes.
112112

113-
When Bit 0 is set [see background and window to obj priority](Tile_Maps.md#bg-to-obj-priority-in-cgb-mode).
113+
When Bit 0 is set, pixel priority is resolved [as described here](Tile_Maps.md#bg-to-obj-priority-in-cgb-mode).
114114

115115
## Using LCDC
116116

src/Tile_Maps.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ the one at `0:9800`!
4040
### BG-to-OBJ Priority in CGB Mode
4141

4242
In CGB Mode, the priority between the BG (and window) layer and the OBJ layer is declared in three different places:
43-
1. [BG Map Attribute bit 7](#bg-map-attributes-cgb-mode-only) - BG-to-OAM Priority (CGB Mode)
44-
2. [LCDC bit 0](LCDC.md#lcdc0--bg-and-window-enablepriority) - BG and Window Priority (CGB Mode)
45-
3. [OAM Attributes bit 7](OAM.md#byte-3--attributesflags) - BG and Window over OBJ
43+
- [BG Map Attribute bit 7](<#BG Map Attributes (CGB Mode only)>)
44+
- [LCDC bit 0](<#LCDC.0 — BG and Window enable/priority>)
45+
- [OAM Attributes bit 7](<#[Byte 3 — Attributes/Flags](https://gbdev.io/pandocs/OAM.html#byte-3--attributesflags)>)
4646

4747
We can infer the following rules from the table below:
4848
* When the BG color is 0 the OBJ will always have priority (ignoring the flags)
@@ -51,7 +51,7 @@ We can infer the following rules from the table below:
5151

5252
::: tip NOTE
5353

54-
OAM Attributes bit 7 will grant OBJ priority when clear and not when set
54+
OAM Attributes bit 7 will grant OBJ priority when *clear*, not when *set*.
5555

5656
:::
5757

0 commit comments

Comments
 (0)