Commit Graph

207 Commits

Author SHA1 Message Date
Lucas Scharenbroich
56b66033a7 Add support for sprite priority 2023-05-22 13:55:56 -05:00
Lucas Scharenbroich
d402d60a4e Filter out more sprites and PPU nametable changes 2023-05-22 11:15:45 -05:00
Lucas Scharenbroich
166274c6c2 Move input read into VBL handler for better responsiveness 2023-05-22 00:36:47 -05:00
Lucas Scharenbroich
61cf1d49c8 Fix bmi/bpl branch bug 2023-05-22 00:05:51 -05:00
Lucas Scharenbroich
b0ed4f9692 Fix some bugs introduced by the abs indexed addressing mode changes 2023-05-21 23:37:36 -05:00
Lucas Scharenbroich
cc3ee6be0f Add larger PPU buffer 2023-05-21 23:36:52 -05:00
Lucas Scharenbroich
d3a7eecc6e Mostly working PPU integration with GTE rendering pipeline 2023-05-21 17:50:05 -05:00
Lucas Scharenbroich
64f7106143 Fix absolute address issue in rom 2023-05-19 20:40:52 -05:00
Lucas Scharenbroich
310c3487ca Support the sprite palette select bits in OAM 2023-05-17 12:59:07 -05:00
Lucas Scharenbroich
25c82cc44b Initial palette work; fix memory init bug 2023-05-16 22:38:54 -05:00
Lucas Scharenbroich
cb13c2ae2d Secret sauce 2023-05-16 12:34:18 -05:00
Lucas Scharenbroich
3eba3fa8e6 Secret stuff 2023-05-04 17:30:22 -05:00
Lucas Scharenbroich
e013ff03fd Fix off-by-one error in overlay 2023-04-26 08:47:56 -05:00
Lucas Scharenbroich
e6ab9a22e1 Quick change to make sure sprites work on top of scanline offset mode 2023-03-12 15:40:22 -05:00
Lucas Scharenbroich
7aec32ced5 Update demo to leverage BG1 scanline support 2023-03-11 03:42:23 -06:00
Lucas Scharenbroich
9021ee4506 WIP of BG1 scanline effects
A static BG1 is stable with BG0 offset values.  A seam in BG1
needs to be closed up by taking into account the BG1XOrigin value
when setting the :shift_value.

Also, several routines were hard-coded for the scanline case.  These
hanges need to be reverted and properly parametereized.
2023-03-10 15:50:42 -06:00
Lucas Scharenbroich
5cfefc350c Improve per-scanline demo 2023-03-09 16:17:55 -06:00
Lucas Scharenbroich
e3409f92fa Add per-scanline offset rendering. 2023-03-09 15:29:58 -06:00
Lucas Scharenbroich
9fba232df0 Minor cleanups 2023-03-09 00:27:03 -06:00
Lucas Scharenbroich
39163ea786 Expose the ability to select which rendering order to use for sprites 2023-03-09 00:23:12 -06:00
Lucas Scharenbroich
c533d846d7 Be more cautious when manipulaitng the sorted list 2023-03-08 20:09:57 -06:00
Lucas Scharenbroich
4bfdeae6aa Update some demos to match new behaviors 2023-03-06 14:39:38 -06:00
Lucas Scharenbroich
dd9ced08f1 Transition to fixed snippets 2023-03-02 23:24:03 -06:00
Lucas Scharenbroich
c14f3c7283 Functional compiled sprites in demo-5 2023-03-01 13:18:37 -06:00
Lucas Scharenbroich
981182592e Shadow based rendering working in demo-5 2023-02-27 15:30:56 -06:00
Lucas Scharenbroich
46a88b1d22 Sync old code 2023-02-23 19:23:03 -06:00
Lucas Scharenbroich
2af4dddb8e Fix common init functions 2023-01-02 20:44:40 -06:00
Lucas Scharenbroich
f8fe9e40cb Merge branch 'master' into scanline-offsets 2023-01-02 20:41:39 -06:00
Lucas Scharenbroich
48bf7145d8 Fix parameters to startup and tile init 2023-01-02 20:40:09 -06:00
Lucas Scharenbroich
50930af362 Re-add tile load 2023-01-02 20:39:40 -06:00
Lucas Scharenbroich
4b50fa8318 checkpoint 2023-01-02 11:04:26 -06:00
Lucas Scharenbroich
33da3d4a97 Final clean up 2022-08-27 19:51:31 -05:00
Lucas Scharenbroich
0b31e9ead2 Addtweaked files 2022-08-27 19:24:07 -05:00
Lucas Scharenbroich
95cf3d18bb Merge branch 'scanline-offsets' into chrisv 2022-08-27 15:55:14 -05:00
Lucas Scharenbroich
700a3124fd Fix demo-1 init 2022-08-27 15:53:48 -05:00
Lucas Scharenbroich
10729c59a9 Work on ChrisV C demo 2022-08-27 15:53:02 -05:00
Lucas Scharenbroich
3fa0f94aaf Commit TF4 demo changes 2022-08-16 19:48:26 -05:00
Lucas Scharenbroich
bd1de7f83c Checkpoint 2022-08-16 19:47:19 -05:00
Lucas Scharenbroich
3fce46872d Checkpoint; blitter failing 2022-08-14 07:45:58 -05:00
Lucas Scharenbroich
e378dc6e26 Checkpoint with TF4 demo framework 2022-08-11 14:14:25 -05:00
Lucas Scharenbroich
dedb657546 Remove redundent initialization 2022-07-28 12:18:54 -05:00
Lucas Scharenbroich
5a0e0e447e Change GTESetScreenMode to use bytes for the width 2022-07-26 00:21:22 -05:00
Lucas Scharenbroich
d332783c85 Add additional parameter to AddSprite to avoid needing to call UpdateSprite immediately 2022-07-26 00:10:53 -05:00
Lucas Scharenbroich
d7be9f1be4 Add .gitignore files to all demo folders 2022-07-23 16:37:11 -05:00
Lucas Scharenbroich
358b25447d Add generated assets to make it easier to build from scratch 2022-07-23 16:34:07 -05:00
Lucas Scharenbroich
b35c96c0fb Set better default scale 2022-07-22 16:02:00 -05:00
Lucas Scharenbroich
f446e44a39 Fix arcs to Render 2022-07-22 16:01:19 -05:00
Lucas Scharenbroich
18da2546bd Add horizontal scaling to the background rotation 2022-07-22 02:01:34 -05:00
Lucas Scharenbroich
f7eb80f2fe Final demo in place 2022-07-22 00:36:52 -05:00
Lucas Scharenbroich
8541164fe6 Fix typos 2022-07-21 23:29:13 -05:00
Lucas Scharenbroich
d09f8e3681 Update old demos to current APIs 2022-07-21 22:56:32 -05:00
Lucas Scharenbroich
8aa816037c Misc odds-and-ends 2022-07-21 22:54:28 -05:00
Lucas Scharenbroich
217b1a95f5 Demo 9 2022-07-21 20:29:55 -05:00
Lucas Scharenbroich
3b274c7a81 Demo 5 complete 2022-07-21 20:26:46 -05:00
Lucas Scharenbroich
0ab7fa9d81 Two layer demos 2022-07-16 15:22:23 -05:00
Lucas Scharenbroich
14238166cd More demos 2022-07-13 15:07:02 -05:00
Lucas Scharenbroich
1b7c2c22b1 KFest Demos 2022-07-13 08:57:05 -05:00
Lucas Scharenbroich
9856bad091 Fix dirty<->normal rendering transition 2022-07-07 14:46:37 -05:00
Lucas Scharenbroich
182ebfd566 Set dirty render to the correct direct page and several small cleanups 2022-07-06 14:55:27 -05:00
Lucas Scharenbroich
885feafb39 Fix up initialization 2022-07-06 12:50:52 -05:00
Lucas Scharenbroich
41539ae606 Update zelda demo to use tool interface 2022-07-06 08:53:50 -05:00
Lucas Scharenbroich
65be8135da Add test keys for new functions 2022-06-27 17:22:22 -05:00
Lucas Scharenbroich
f18dad0692 Fix typo in tool demo 2022-06-27 17:17:48 -05:00
Lucas Scharenbroich
90e23e03e4 Merge branch 'master' into sprite-improvements 2022-06-27 11:25:57 -05:00
Lucas Scharenbroich
57ffa8794f Add in some missed updates 2022-06-27 11:25:08 -05:00
Lucas Scharenbroich
a7dad98d50 Additional tweaks to get old sprite demo working 2022-06-27 11:24:04 -05:00
Lucas Scharenbroich
81e0aeb351 Fix some minor bugs in the TwoLayer rendering functions 2022-06-27 00:32:44 -05:00
Lucas Scharenbroich
c501e9f944 Fix positioning bug 2022-06-26 23:50:03 -05:00
Lucas Scharenbroich
b7d061e666 Fix simple script handling 2022-06-26 23:32:15 -05:00
Lucas Scharenbroich
8aafd5812b Work to expose times via Toolset 2022-06-26 22:08:42 -05:00
Lucas Scharenbroich
814a8c584b Convert the old sprite demo to use the toolset 2022-06-25 11:18:50 -05:00
Lucas Scharenbroich
871a0ac8fb Update sample to exercise dynamic tiles 2022-06-22 00:06:25 -05:00
Lucas Scharenbroich
4c1dba0f68 Complete Dynamic Tile renderer 2022-06-21 23:13:28 -05:00
Lucas Scharenbroich
553fd3c02a Tweaking updated sprite dispatch flow 2022-06-21 07:29:18 -05:00
Lucas Scharenbroich
364af7bc57 Misc updates of local work 2022-06-09 07:41:03 -05:00
Lucas Scharenbroich
83ec527b06 Make the test demo more sophisticated; multiple sprites 2022-06-01 22:24:45 -05:00
Lucas Scharenbroich
a938639c1b Fix initialization bug in TileStore 2022-06-01 13:55:04 -05:00
Lucas Scharenbroich
dec50bc6fc Fix several bugs; biggest one in the SpriteStamp routine 2022-05-31 22:53:33 -05:00
Lucas Scharenbroich
7909113a97 Checkpoint 2022-05-26 19:36:40 -05:00
Lucas Scharenbroich
e52ef4f7cf Add message output for debugging 2022-05-19 23:39:19 -05:00
Lucas Scharenbroich
755ac3fbfd Move most data storage to separate bank; fix many banking bugs 2022-05-18 21:00:06 -05:00
Lucas Scharenbroich
01e92a7b62 Update; tool is compiling while referencing new rederer pipeline 2022-05-18 00:34:25 -05:00
Lucas Scharenbroich
7f6e5d1b1f Work checkpoint 2022-04-29 12:38:04 -05:00
Lucas Scharenbroich
4d6f11a9ba Initialize the graphics screen via the toolset 2022-04-25 17:11:48 -05:00
Lucas Scharenbroich
76180b6feb Basic working user tool framework 2022-04-24 14:45:07 -05:00
Lucas Scharenbroich
1f9f2aee0c Thank to Kelvin Sherlock for pointing out that the source files were not setting the register state directive 2022-04-23 15:41:25 -05:00
Lucas Scharenbroich
e2710ace85 Refactor to support building a tool and new demo to try and use it [not working] 2022-04-23 00:47:13 -05:00
dependabot[bot]
adceac1390
Bump minimist from 1.2.5 to 1.2.6 in /demos/zelda
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-01 14:51:18 +00:00
Lucas Scharenbroich
df0d0ccada Commit to a huge unrolled loop to do bitfield -> render function 2022-02-25 17:05:32 -06:00
Lucas Scharenbroich
56bfdc4236 Fix sprite VBUFF offset calculation 2022-02-21 15:58:16 -06:00
Lucas Scharenbroich
7f9f4de228 Add sprite back into initialization 2022-02-21 10:29:57 -06:00
Lucas Scharenbroich
bb83e7f7c5 Background rendering again 2022-02-18 20:43:55 -06:00
Lucas Scharenbroich
260b2097c2 Continue fixing code issues; strange relocation error happening 2022-02-18 13:42:37 -06:00
Lucas Scharenbroich
d96928e562 Add separte TileStore bank 2022-02-18 12:11:22 -06:00
Lucas Scharenbroich
89ea425043 Start work on sprite attribute caching 2022-02-04 12:37:05 -06:00
Lucas Scharenbroich
4d7ff46250 Add zelda demo that utilized dirty rectangle updates 2022-02-03 23:46:32 -06:00
Lucas Scharenbroich
4075ed911c Use the 'f' key to have the SPRITE_HIDE flag set every other frame for a flashing effect 2021-11-22 13:27:27 -06:00
Lucas Scharenbroich
2683a91e93 Fix sprite rendering with overlapping sprites. Must erase all sprites first, then re-render 2021-11-20 21:58:09 -06:00
Lucas Scharenbroich
90267e4646 Test updating tile ID in UpdateSprite for a run sequence. 2021-11-20 20:33:27 -06:00
Lucas Scharenbroich
9b5d3da0e4 Let character remain facing the direction they were moving after stopping 2021-11-20 14:03:00 -06:00