aboutsummaryrefslogtreecommitdiff
path: root/basics/sprite.s
Commit message (Collapse)AuthorAgeFilesLines
* Clear VBlank on reset on all examplesMiquel Sabaté Solà2025-03-201-1/+4
| | | | | | | 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>
* Expand some comments on sprite.sMiquel Sabaté Solà2025-03-101-13/+28
| | | | | | | | After digging deeper into this good ol' machine, I've found that there are better ways to explain some of the basic things, or things that seemed easy but came back to bite me. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* Bring code style to better standardsMiquel Sabaté Solà2025-03-101-14/+12
| | | | | | | | 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>
* scroll: Implement a roulette-like gameMiquel Sabaté Solà2025-02-041-13/+4
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* Use custom configurations everywhereMiquel Sabaté Solà2025-02-041-12/+16
| | | | | | | Moreover, I have introduced a linker configuration for MMC1 as well, so to properly implement the `basics/persist.s` example. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* Vastly improve the documentationMiquel Sabaté Solà2025-02-041-36/+64
| | | | | | This includes more clear explanations, images, etc. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* Move assets into a global directoryMiquel Sabaté Solà2025-02-041-1/+1
| | | | Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
* space: Improve comments and documentationMiquel Sabaté Solà2025-02-041-2/+4
| | | | Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
* space: Simplify the code and its goalsMiquel Sabaté Solà2025-02-041-6/+7
| | | | | | | | | Originally this was supposed to be a sort of mini game, but that would have probably made it too complex for newcomers. Thus, let's just keep it to subpixel movement and shooting bullets, which is already a big step from the `basics/sprite.s` example. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
* basics: Improve documentationMiquel Sabaté Solà2025-02-041-5/+4
| | | | | | | Add more comments to `sprite.s` and `persist.s` so they can be read by a newcomer, and also introduce a README for this directory. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
* basics: Add an example on persisting dataMiquel Sabaté Solà2025-02-041-3/+2
| | | | Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
* Lay out a proper structure for the projectMiquel Sabaté Solà2025-02-041-0/+601
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>