Coder Social home page Coder Social logo

External Process send Rerun about tic-80 HOT 3 OPEN

YPetremann avatar YPetremann commented on June 15, 2024
External Process send Rerun

from tic-80.

Comments (3)

YPetremann avatar YPetremann commented on June 15, 2024

During the night I though of the file based metadata, it would really be universal, could be used by users and tools:

-- script: lua
-- autorun: load save watch

a metadata could be inserted in the code to indicate how it should autorun the cartridge, this metadata would be read at each file change (load, save and watch) and used to determine if it would run on this action

  • load mean that the cartridge is run on load command
  • save mean that the cartridge is run on save (in tic80)
  • watch mean that the cartridge is run on external file change

to prevent autorun to be problematic, there could be a one second delay where the user can Esc to cancel autorun

from tic-80.

nesbox avatar nesbox commented on June 15, 2024

I think it will be better if we add this feature to the options menu.

from tic-80.

YPetremann avatar YPetremann commented on June 15, 2024

An option menu can be interesting if people intention is to run tic at every save and reload
But having a way for tools to opt in and out at will by adding or removing a specific metadata can be powerfull

Also to clarify, it only make sense when the developer has access to the source outside of tic80 and given that it can be hard to remove the metadata outside of tic80, so we can see it as a pro only feature or even a non-tic file only feature

from tic-80.

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.