Commit Graph

508 Commits

Author SHA1 Message Date
Lucas Scharenbroich 4ee67fb8be Add hook for VBL callback 2023-05-09 10:16:58 -05:00
Lucas Scharenbroich 3eba3fa8e6 Secret stuff 2023-05-04 17:30:22 -05:00
Lucas Scharenbroich 3a4169cce4 Merge branch 'master' of https://github.com/lscharen/iigs-game-engine 2023-05-03 07:49:51 -05:00
Lucas Scharenbroich 788f938647 Add helper macro for creating static tiles 2023-05-03 07:49:46 -05:00
Lucas Scharenbroich 3c4cf89ecf Start of additional tutorials and samples 2023-05-02 16:06:57 -05:00
Lucas Scharenbroich 89a56d479e Merge branch 'master' of https://github.com/lscharen/iigs-game-engine 2023-05-02 15:59:35 -05:00
Lucas Scharenbroich a5498e07eb Update the shadow renderer to use the common scnaline management routines 2023-04-28 00:35:35 -05:00
Lucas Scharenbroich c7a143b488 Remove unneeded padding from some data arrays 2023-04-28 00:14:03 -05:00
Lucas Scharenbroich 869d80af1e Comment cleanup and minro refactoring 2023-04-28 00:13:05 -05:00
Lucas Scharenbroich 515ec5280b Remove dead code 2023-04-28 00:11:46 -05:00
Lucas Scharenbroich ed01a8da8d Add new UpdateOverlay call 2023-04-28 00:10:59 -05:00
Lucas Scharenbroich 57f57ce533 Restore shadow reg instead of overwriting 2023-04-27 23:38:26 -05:00
Lucas Scharenbroich 77fbe4a5ad Sync with master branch 2023-04-27 16:32:14 -05:00
Lucas Scharenbroich df32442fff
Merge pull request #23 from lscharen/dependabot/bundler/docs/nokogiri-1.14.3
Bump nokogiri from 1.14.2 to 1.14.3 in /docs
2023-04-27 09:29:11 -05:00
Lucas Scharenbroich e013ff03fd Fix off-by-one error in overlay 2023-04-26 08:47:56 -05:00
Lucas Scharenbroich b449d983ee Checkpoint for WIP scanline render fix for overlays+sprites and user-defined tiles 2023-04-26 00:41:17 -05:00
Lucas Scharenbroich 44c51217a1 Checkpoint of object list resolver 2023-04-25 23:39:09 -05:00
dependabot[bot] 6ba595f0b5
Bump nokogiri from 1.14.2 to 1.14.3 in /docs
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.14.2 to 1.14.3.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.14.2...v1.14.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-12 06:28:35 +00:00
Lucas Scharenbroich dc5742dd11 Remove dead code from codebase 2023-03-14 09:23:01 -05:00
Lucas Scharenbroich 02bc6fe493 Comment cleanup; rename FRINGE tile control bit 2023-03-14 09:11:53 -05:00
Lucas Scharenbroich 4f81c4a84b Add tilengine to the references 2023-03-13 14:45:16 -05:00
Lucas Scharenbroich 36df558a3f
Merge pull request #22 from lscharen/dependabot/bundler/docs/nokogiri-1.14.2
Bump nokogiri from 1.13.9 to 1.14.2 in /docs
2023-03-12 16:05:07 -05:00
dependabot[bot] 40bd890497
Bump nokogiri from 1.13.9 to 1.14.2 in /docs
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.13.9 to 1.14.2.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.13.9...v1.14.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-12 21:04:22 +00:00
Lucas Scharenbroich de26e300c4
Merge pull request #21 from lscharen/dependabot/bundler/docs/activesupport-6.0.6.1
Bump activesupport from 6.0.5 to 6.0.6.1 in /docs
2023-03-12 16:03:33 -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 b154bcf361 Sync up header files and add back CopyToBG1 behavior as a selectable feature 2023-03-12 15:39:41 -05:00
Lucas Scharenbroich 7aec32ced5 Update demo to leverage BG1 scanline support 2023-03-11 03:42:23 -06:00
Lucas Scharenbroich 065603a758 Core updates for BG1 scanline support 2023-03-11 03:41:41 -06:00
Lucas Scharenbroich d31bd30649 Implement full per-scanline offset support for BG1 2023-03-11 03:41:12 -06:00
Lucas Scharenbroich 7dd690ac04 Implement fix for scanline mode compensation in BG1 2023-03-10 19:00:26 -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 899c6c9770 Upgrade to lockfile version 2 2023-03-09 09:19:10 -06:00
Lucas Scharenbroich 070d038f06 Merge branch 'master' into scanline-offsets 2023-03-09 00:32:03 -06:00
Lucas Scharenbroich c04bf0d323 Add new render flags to the docs 2023-03-09 00:31:45 -06:00
Lucas Scharenbroich 9fba232df0 Minor cleanups 2023-03-09 00:27:03 -06:00
Lucas Scharenbroich 3a78398ea7 Remove dead label 2023-03-09 00:26:31 -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 6c5e133b17 Fix some linked-list manipulations 2023-03-08 16:29:12 -06:00
Lucas Scharenbroich 029ab62f0c Fix accidental double-addition of the screen origin 2023-03-08 14:15:11 -06:00
Lucas Scharenbroich a70412211c Simplify and specialize the even/odd patching
Allows the odd case to be slightly more efficient and the
code is cleaned up by not having to handle both even and odd
alignment cases at multiple points.
2023-03-08 12:49:45 -06:00
Lucas Scharenbroich 536959619f Refine the horizontal dispatch
Find small optimizations to improve the average performance of the
blitter, especially in the odd-aligned case.

 - Odd-aligned PEA exit is 2 cycles faster per line
 - Odd-aligned JMP exit is 2 cycles faster per line
 - Odd-aligned LDA exit is 6 cycles faster (eliminated long store)
 - Merged setting the entry opcode and offset to convert 2 8-bit
   store into a single 16-bit store (save 6 cycles per line)
 - Load and save the full word for the high bytes. Cost 2 cycles
   but enabled the 6 cycles saved for the LDA case.
2023-03-07 17:32:46 -06:00
Lucas Scharenbroich 85cce2fe82 Fix docs typo 2023-03-06 15:18:26 -06:00
Lucas Scharenbroich 594b36a953 Merge branch 'master' into scanline-offsets 2023-03-06 15:14:39 -06:00
Lucas Scharenbroich 011f5c0419 Doc updates 2023-03-06 15:14:22 -06:00
Lucas Scharenbroich 04681447a5 Checkpoint 2023-03-06 14:57:52 -06:00
Lucas Scharenbroich 4bfdeae6aa Update some demos to match new behaviors 2023-03-06 14:39:38 -06:00
Lucas Scharenbroich 5697737a93 Add workable overlay support to the scanline renderer 2023-03-06 14:39:23 -06:00