User Tools

Site Tools


notes:comporg

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
notes:comporg [2022/04/06 18:08] – [Map Functions] mpronti2notes:comporg [2022/04/18 11:33] – [Audio] 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,
 +<code>
 +x,y,z = mouse()
 +</code>
 +will allow you to check where you are currently clicking. This allows for the implementation of buttons for the player to click.
 =====TIC80 System Variables===== =====TIC80 System Variables=====
  
Line 72: Line 80:
  
 [[https://philpem.me.uk/leeedavison/6502/prng/index.html|8-bit Pseudorandom Number Generator Example in 6502 Assembly]] [[https://philpem.me.uk/leeedavison/6502/prng/index.html|8-bit Pseudorandom Number Generator Example in 6502 Assembly]]
 +
 +[[https://www.nesdev.org/wiki/PPU_OAM|NES Sprite Bytes]]
 ====TIC-80==== ====TIC-80====
  
notes/comporg.txt · Last modified: 2022/04/18 11:33 by mpronti2