Comments (3)
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.
I think it will be better if we add this feature to the options menu.
from tic-80.
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)
- Associate .tic files with TIC-80 on macOS
- TIC-80 doesn't start properly on Windows XP unless forced to `--soft` HOT 1
- New release soon / more frequent releases? HOT 3
- The "X button to enter surf" needs a better input check HOT 6
- Better import screen error messages HOT 1
- Tiles in map editor does not update after editing tile HOT 1
- Scaling issue on web export on mobile
- Native Apple Silicon version and Black Borders
- `--fs` accepts files, not just folders; errors follow
- Command line not fully visible when using past commands
- [Libretro] iOS support HOT 2
- Using surf, 'close game' should go back to surf and not console HOT 1
- Mouse sprite and ram aren't linked
- keyword 'of' in javascript is not colored
- Segmentation fault HOT 6
- Segfault when saving after running HOT 2
- cccccbcrknfjjukihcdgfkchudgregenkrjrldtvjdfl
- tic80 behaves differently when run from source checkout HOT 3
- Keys getting stuck when grabbing the window
- PCM channel not working on exported builds
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 tic-80.