Comments (3)
After extensive consideration, I've decided to avoid creating a new feature flag for this. Drawing a 1-pixel tall blank sprite with the vblank flag enabled will achieve your desired effect provided you can find a zero byte anywhere in your program, which should be trivial to arrange.
from octo.
@JohnEarnest Note that this behavior is (as far as I can gather) unique to Octo, which means that games written with Octo as a target platform that use DXY0
to draw a 16x16 sprite in low-resolution mode will not work in anything but Octo. (Your own "Eaty the Alien" comes to mind.)
Considering the number of games out there that use DXY0
as a delay routine is probably zero (at least now that 12Me21 has been dissuaded from doing it), that in itself might not be a reason to add a feature/quirks flag to Octo, but in fact the CHIP-8 interpreter for the DREAM 6800 computer used DXY0
to draw an 8x16 sprite.
So there are three different low-resolution behaviors of DXY0
that I know of: 8x16 sprite drawing (DREAM 6800), 16x16 sprite drawing (Octo) and no-op with a "vblank delay" (most/all other implementations),
from octo.
@tobiasvl the compromise I came up with was to make it so that the linter warns of using 16x16 sprites in low-res mode:
https://github.com/JohnEarnest/Octo/blob/gh-pages/js/debugger.js#L210-L212
Thus, authors are assisted in writing portable programs if they wish to do so.
from octo.
Related Issues (20)
- Document another audio playback behavior into XO-ChipSpecification
- Broken link at end of Sorting.md
- Octo UI buttons are invisible on a white background
- Slight bug with the decompiler in the Octo IDE regarding the pitch opcode
- Plane 3 Bug (Only enables the first bit plane) HOT 2
- Gamepad visible in browser HOT 4
- XO-Chip manual section has a broken link to the XO-Chip spec in repo view
- Possible Instruction Prefix Support for XO-CHIP HOT 4
- Add support for viewport scaling to exported HTML HOT 1
- Yet Another Proposal: Stereo Audio with Multi-Voice Support (Sweet and Simple Design)
- Solving the difficulty of writing program's code beyond 4k with banking HOT 1
- No Audio Output Issue on HTML Output HOT 2
- collision enumeration quirk HOT 3
- scroll-up can scroll in pixels which aren't blank HOT 4
- Octo reads .sc8/.xo8 files as plaintext, should read them as binaries HOT 1
- Constants in data interpreted as call HOT 2
- Expected order of operations for vf HOT 2
- Maximum ROM Size for VIP too small HOT 4
- Step function can proceed past Fx0A without input HOT 2
- Add documentation on itch.io export issues
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from octo.