aboutsummaryrefslogtreecommitdiff
path: root/fx
Commit message (Collapse)AuthorAgeFilesLines
* Clear VBlank on reset on all examplesMiquel Sabaté Solà2025-03-201-0/+1
| | | | | | | This was an oversight from the very first example that has propagated into the other ones. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* shared: Bring joypad into a proper styleMiquel Sabaté Solà2025-03-111-1/+1
| | | | | | | Put functions inside of the scope, avoid useless fallthroughs and be more realistic on what is needed from elsewhere. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* Bring code style to better standardsMiquel Sabaté Solà2025-03-101-15/+18
| | | | | | | | Be more careful on everything and try to follow along style.nes from my repository. This might change in the future, but it's in a much better state now. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* shared: Add utilities for clearing screensMiquel Sabaté Solà2025-03-071-0/+3
| | | | | | | | | | | | | These are quite mindless, but they are rather useful on simple examples in which we don't care about performance and we just want to show something on the screen. For now this didn't matter much, but on real hardware I was able to reproduce the same glitches as with emulators which randomized memory on both the CPU memory and on the PPU. Hence, just allow some examples to manually reset these regions and avoid silly graphical glitches. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* Ensure background/sprite tiles are spread properlyMiquel Sabaté Solà2025-02-041-15/+41
| | | | | | | | At least on the MMC3 chip, it's important to have background tiles on the first pattern table and then sprite tiles on the second pattern table. This avoids a hardware bug on scanline IRQs. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* scroll: Implement a roulette-like gameMiquel Sabaté Solà2025-02-042-5/+8
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* fx: Provide an example of PPU bank switchingMiquel Sabaté Solà2025-02-042-3/+406
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* basics: Add an example on CHR-RAMMiquel Sabaté Solà2025-02-041-0/+4
Moreover, add a simple fix to the CI. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>