Skip to content

Commit

Permalink
调整注释内容以及新增NES开发文档
Browse files Browse the repository at this point in the history
  • Loading branch information
GZYangKui committed Dec 2, 2022
1 parent 7c9a9bb commit 0214ee9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bin/src/main/java/cn/navclub/nes4j/bin/screen/Render.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,8 @@ public void render(PPU ppu, Frame frame) {

//Render first screen background
renderNameTable(ppu, frame, firstNameTable, new Camera(scrollX, scrollY, 256, 240), -scrollX, -scrollY);
//
// This does not apply to games which allow
// simultaneous horizontal and vertical scrolling.
//

// This does not apply to games which allow simultaneous horizontal and vertical scrolling.
if (scrollX > 0) {
renderNameTable(ppu,
frame, secondNameTable, new Camera(0, 0, scrollX, 240), 256 - scrollX, 0);
Expand All @@ -97,6 +95,7 @@ public void render(PPU ppu, Frame frame) {
frame, secondNameTable, new Camera(0, 0, 256, scrollY), 0, 240 - scrollY);
}
}

//Render sprite
if (sprite) {
var oam = ppu.getOam();
Expand Down
Binary file added document/NESDoc.pdf
Binary file not shown.

0 comments on commit 0214ee9

Please sign in to comment.