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
notes:comporg [2022/03/13 13:17] – Fixed improper Wiki syntax for headers. smalik3notes:comporg [2022/04/18 11: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 'TIC()' so it requires no additional setup. If one is familiar with modifying the palette, they can modify the palette between scanline rendering allowing for more than 16 colors (maximum colors in a palette) to render at a time. One simply has to put this function somewhere in their script, it is similar to the main function 'TIC()' so it requires no additional setup. If one is familiar with modifying the palette, they can modify the palette between scanline rendering allowing for more than 16 colors (maximum colors in a palette) to render at a time.
  
 +=====TIC-80 Functions=====
 +
 +====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.
 +
 +====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,
 +<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.
 =====TIC80 System Variables===== =====TIC80 System Variables=====
  
Line 52: Line 69:
 =====Useful Links===== =====Useful Links=====
  
 +====NES====
 +
 +[[https://en.wikibooks.org/wiki/6502_Assembly#Instructions|6502 Assembly Documentation]]
 +
 +[[https://taywee.github.io/NerdyNights|Nerdy Nights NES Programming Tutorial]]
 +
 +[[https://en.wikibooks.org/wiki/NES_Programming#NES_2A03_CPU_memory_map|NES General Memory Map]]
 +
 +[[https://nesdev-wiki.nes.science/wikipages/PPU_programmer_reference.xhtml#PPU_Registers|Detailed NES PPU Register Map]]
 +
 +[[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====
  
Line 62: Line 92:
 [[https://github.com/nesbox/TIC-80/wiki/code-examples-and-snippets|TIC-80 Code Examples and Snippets]] [[https://github.com/nesbox/TIC-80/wiki/code-examples-and-snippets|TIC-80 Code Examples and Snippets]]
  
-[[https://childishgiant.github.io/tic-80-palette-editor/|Online TIC-80 palette tool]] +[[https://childishgiant.github.io/tic-80-palette-editor|Online TIC-80 Palette Tool]]  
 + 
 +[[https://github.com/nesbox/TIC-80/wiki/SCN|SCN (Scanline Function)]]
  
 +====Lua====
 +[[https://www.lua.org/pil/contents.html|Programming in Lua]]
 ====Projects/Games==== ====Projects/Games====
  
notes/comporg.1647191877.txt.gz · Last modified: 2022/03/13 13:17 by smalik3