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/06 18:08] – [Map Functions] mpronti2 | 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===== | ||
Line 72: | Line 80: | ||
[[https:// | [[https:// | ||
+ | |||
+ | [[https:// | ||
====TIC-80==== | ====TIC-80==== | ||
notes/comporg.1649282925.txt.gz · Last modified: 2022/04/06 18:08 by mpronti2