Coder Social home page Coder Social logo

0-Row Sprites about octo HOT 3 CLOSED

johnearnest avatar johnearnest commented on May 22, 2024
0-Row Sprites

from octo.

Comments (3)

JohnEarnest avatar JohnEarnest commented on May 22, 2024

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.

tobiasvl avatar tobiasvl commented on May 22, 2024

@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.

JohnEarnest avatar JohnEarnest commented on May 22, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.