Git Product home page Git Product logo

Comments (6)

sikthehedgehog avatar sikthehedgehog commented on May 24, 2024

I think this problem is in the original game as well though.

from cave-story-md.

EvilTelephone avatar EvilTelephone commented on May 24, 2024

I tested it with Cave Story Plus (which may not be a great idea, in hindsight) and it wasn't the case. I'll have to test with the original.

If the problem is in the original, then I'll close this out with a "nevermind!" :)

from cave-story-md.

EvilTelephone avatar EvilTelephone commented on May 24, 2024

Update: I tested with the original and the experience gems still have their logic even far off screen. You can even hear them 'plinking' as they bounce.

This may end up being a needed change to facilitate the hardware, but I figured I'd add it to the list just in case.

from cave-story-md.

sikthehedgehog avatar sikthehedgehog commented on May 24, 2024

Huh, I'm pretty sure I stumbled upon this behavior in a Cave Story game way before here, so it's definitely not unique to this port. (I just wish I could remember the name of that game, argh, plays pretty much the same but plot and maps are different)

from cave-story-md.

andwn avatar andwn commented on May 24, 2024

Almost all offscreen objects (save for bosses and special cases to unbreak things) are shelved into an "inactive" list until coming back on screen. The original cave story does not do this, it just updates everything in the room every frame because PCs are powerful. If I refactor items into their own list I could probably update the timers offscreen without lag but I don't care enough to do this.

A bit of backstory: Until 2-3 weeks ago the energy never expired. I added it because of the sections in grasstown and sand zone that basically guarantee energy will fall down into death traps, potentially resulting in a framerate drop as they accumulate.

There are other things I plan to do to optimize the energy though, maybe the expiration won't be needed in the future. For example the small bits are 2x2 tiles and should really only be 1x1. That's just using unnecessary DMA bandwidth.

from cave-story-md.

andwn avatar andwn commented on May 24, 2024

Checking back with the original the items do disappear after a while. I made all the power ups persistent (will stay active offscreen) and they delete after 10 seconds.

from cave-story-md.

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.