How to pass multiple commands to tic80 --cli using --cmd=<str> #2608
-
I am creating a simple build system for myself using luacc and windows batch in order to create my game code using multiple lua files (with my choice of external editor) The goal here is to create a batch file (or makefile) that can build and run my project without changing any of the sprites or mapping, etc. The idea would be to first run luacc to merge all of the project files into a single
This way if there were any changes I made to game.lua through the native sprite, sound, or map editors, they would remain unaffected. And even if there is a way to do everything I want with a single command, I figure it would be rather useful to have a way to run multiple commands through Basically, to summarize my question, I just want a way to automatically run multiple commands through tic80's command line. How might I do this? Also, thank you to anyone who is willing to spare their time on my question/request. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Gentlemen, it would appear that not only 30 minutes later, I managed to answer my own question. In my attempts to figure out how to do this, I was looking through the source code of TQ-Bundler by @scambier, a project that aims to help in the development of tic80 games using multiple code files. (though too feature lacking for my use) Here is an example of the usage using the Windows command prompt: C:\Windows\System32>tic80.exe --cli --cmd="help version & help tri"
1.1.2837 Pro
---=== API ===---
tri(x1 y1 x2 y2 x3 y3 color)
This function draws a triangle filled with color, using the supplied vertices. Is this documented somewhere in the wiki that I just missed? |
Beta Was this translation helpful? Give feedback.
Gentlemen, it would appear that not only 30 minutes later, I managed to answer my own question.
In my attempts to figure out how to do this, I was looking through the source code of TQ-Bundler by @scambier, a project that aims to help in the development of tic80 games using multiple code files. (though too feature lacking for my use)
In his code I found that he uses single ampersand
&
separators between every command in his--cmd
string.Here is an example of the usage using the Windows command prompt: