Moved .pla file documentation
This commit is contained in:
parent
7d9640a988
commit
0f417109db
@ -18,6 +18,7 @@
|
||||
- [v1.7.x](tutorials/how_to_new_pokemon_1_7_0.md)
|
||||
- [v1.6.x](tutorials/how_to_new_pokemon_1_6_0.md)
|
||||
- [How to use the Testing System](tutorials/how_to_testing_system.md)
|
||||
- [Day/Night System FAQ](tutorials/dns.md)
|
||||
- [Changelog](./CHANGELOG.md)
|
||||
- [1.10.x]()
|
||||
- [Version 1.10.0](changelogs/1.10.x/1.10.0.md)
|
||||
|
||||
16
docs/tutorials/dns.md
Normal file
16
docs/tutorials/dns.md
Normal file
@ -0,0 +1,16 @@
|
||||
## Day/Night system FAQ
|
||||
|
||||
### Q: How do I mark certain colors in a palette as light-blended?
|
||||
A: Create a `.pla` file in the same folder as the `.pal` with the same name.
|
||||
|
||||
In this file you can enter color indices [0,15]
|
||||
on separate lines to mark those colors as being light-blended, i.e:
|
||||
|
||||
`06.pla:`
|
||||
```
|
||||
# A comment
|
||||
0 # if color 0 is listed, uses it to blend with instead of the default!
|
||||
1
|
||||
9
|
||||
10
|
||||
```
|
||||
@ -7,7 +7,7 @@
|
||||
// consider taking a look at the .pla files
|
||||
// to mark colors as lights, instead.
|
||||
// The old method *should* still work, however.
|
||||
// See the README for details.
|
||||
// Check docs/tutorials/dns.md for details.
|
||||
|
||||
// Whether a palette has lights the color indices to blend are stored in the palette's color 0
|
||||
#define LIGHT_PAL(x) ((x) < NUM_PALS_IN_PRIMARY ? 1 << (x) : 1 << ((x) - NUM_PALS_IN_PRIMARY))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user