This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:comporg [2022/03/22 17:16] – [NES] aholmes9 | notes:comporg [2022/04/18 15:33] (current) – [Mouse] mpronti2 | ||
---|---|---|---|
Line 36: | Line 36: | ||
One simply has to put this function somewhere in their script, it is similar to the main function ' | One simply has to put this function somewhere in their script, it is similar to the main function ' | ||
- | ====Map Functions==== | + | =====TIC-80 |
+ | |||
+ | ====Map==== | ||
If you choose to go the TIC-80 route from week 8 onwards, you may find it beneficial to play with the map. mset(), mget(), and map() are important tools for such an endeavor. You can use combinations of these functions to, for example, manage player collisions with environment(s). You can also use map() in addition to SCN() to display a colorful, fulfilling background without the need to manually display a bunch of sprites. | If you choose to go the TIC-80 route from week 8 onwards, you may find it beneficial to play with the map. mset(), mget(), and map() are important tools for such an endeavor. You can use combinations of these functions to, for example, manage player collisions with environment(s). You can also use map() in addition to SCN() to display a colorful, fulfilling background without the need to manually display a bunch of sprites. | ||
+ | |||
+ | ====Audio==== | ||
+ | |||
+ | 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 64: | Line 78: | ||
[[https:// | [[https:// | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[https:// | ||
====TIC-80==== | ====TIC-80==== | ||
Line 78: | Line 96: | ||
[[https:// | [[https:// | ||
+ | ====Lua==== | ||
+ | [[https:// | ||
====Projects/ | ====Projects/ | ||