notes:comporg
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:comporg [2022/04/11 08:27] – [NES] aholmes9 | notes:comporg [2022/04/18 11:33] (current) – [Mouse] mpronti2 | ||
---|---|---|---|
Line 45: | Line 45: | ||
The sfx() function within TIC-80 can be used to play audio from the SFX Editor. It can adjust the note, duration, volume, etc. | The sfx() function within TIC-80 can be used to play audio from the SFX Editor. It can adjust the note, duration, volume, etc. | ||
+ | |||
+ | ====Mouse==== | ||
+ | |||
+ | mouse() returns, among others, 3 important things: the x-coordinate of the pointer, the y-coordinate of the pointer, and whether or not the mouse is being clicked. Thus, | ||
+ | < | ||
+ | x,y,z = mouse() | ||
+ | </ | ||
+ | will allow you to check where you are currently clicking. This allows for the implementation of buttons for the player. | ||
=====TIC80 System Variables===== | =====TIC80 System Variables===== | ||
notes/comporg.1649680047.txt.gz · Last modified: 2022/04/11 08:27 by aholmes9