aboutsummaryrefslogtreecommitdiff
path: root/scroll
Commit message (Collapse)AuthorAgeFilesLines
* scroll: Provide an example with sprite 0 collisionMiquel Sabaté Solà2025-03-115-23/+328
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* docs: Align GIFs to the centerMiquel Sabaté Solà2025-03-101-2/+6
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* Provide an example on multiscreen scrollingMiquel Sabaté Solà2025-03-1017-131/+1925
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* Bring code style to better standardsMiquel Sabaté Solà2025-03-101-2/+0
| | | | | | | | 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/+5
| | | | | | | | | | | | | 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-10/+7
| | | | | | | | 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-4/+538
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* Add a way to safely read from controllersMiquel Sabaté Solà2025-02-041-63/+0
| | | | | | | | | First of all, move some reading utilities into the new `shared` directory, so controllers can be read by more than one example. Second, even if we keep the example on `basics/input.s` simple, let's provide a safe alternative for the other examples. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
* Move assets into a global directoryMiquel Sabaté Solà2025-02-042-186/+0
| | | | Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
* scroll: Start with the scrolling examplesMiquel Sabaté Solà2025-02-0410-6/+459
| | | | | | | This is still work in progress but at least there's some basic structure to it. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
* Lay out a proper structure for the projectMiquel Sabaté Solà2025-02-044-0/+27
Let's divide things by topic instead of a broad "examples" directory. This will allow for simple files to co-exist together with full-blown projects. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>