-
-
Notifications
You must be signed in to change notification settings - Fork 489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
help (api function) command #154
Comments
I suggest doing the lofi fix for this: Make your default cart and put in the API reference as a comment and put your code above it. CTRL-END to jump to your help. This is what I did, and also included some LUA tricks and routines. I always load this cart when starting off a project and it's served me well and doesn't require the dev(s) to do anything. |
Yeah, but eventually you get to the memory limits and then usually comments tend to get axed first. |
#198 is duplicate |
This is cool but I think that help should be about general system specs and limitations and limitations wheras there should be a dedicated command for a function reference (maybe FUNCI or INFO?) |
@ElfEars Good idea. Another thought: Turn help command into Turbo Pascal 7.0-style text-based help system. |
Added detailed help info for the console commands and all the api functions here 8b74519
|
@nesbox dude that's awesome! |
added help command categories here 3a275d3
|
Added TIC-80 tiny computer0.90.1605-dev (511752a) WelcomeTIC-80 is a fantasy computer for making, playing and sharing tiny games. There are built-in tools for development: code, sprites, maps, sound editors and the command line, which is enough to create a mini retro game. Also, the game can be packed into a player that works on all popular platforms and distribute as you wish. SpecificationDISPLAY: 240x136 pixels, 16 colors palette.
Console commandscdchange directory. clsclear console screen. configedit system configuration cartridge, deldelete from the filesystem. demoinstall demo carts to the current directory. dirshow list of local files. evalrun code provided code. exitexit the application. exportexport cart to HTML, folderopen working directory in OS. helpshow help info about commands/api/... importimport code/sprites/map/... from an external file. loadload cartridge from the local filesystem (there's no need to type the .tic extension). menushow game menu where you can setup keyboard/gamepad buttons mapping. mkdirmake a directory. newcreates a new resumeresume last run cart / project. runrun current cart / project. savesave cartridge to the local filesystem, use .lua .moon .fnl .js .wren .nut cart extension to save it in text format. surfopen carts browser. API functionsOVR
SCN
TIC
btn
btnp
circ
circb
clip
cls
Tips: Use a color over 15 to see some special fill pattern. exit
fget
font
fset
key
keyp
line
map
memcpy
memset
mget
mouse
mset
music
peek
peek4
pix
pmem
Tips:
poke
poke4
Tips:
rect
rectb
reset
sfx
spr
sync
textri
time
trace
Tips:
tri
tstamp
Terms of Use
Privacy PolicyWe store only the user's email and password in encrypted form and will not transfer any personalinformation to third parties without explicit permission. MIT LicenseCopyright (c) 2017-2021 Vadim Grigoruk @nesbox // [email protected] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
I'd like this to be implemented so you won't have to alt-tab to find info. It would after usage type out short description of an api function along of what parameters it takes. So, e.g. after writing
help btnp
something like this will show:The text was updated successfully, but these errors were encountered: