A pixel art painter geared specifically at NES pixel art. Includes export for .chr binary file as well as palette and namespace data.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

100 Zeilen
2.7KB

  1. GlobalEvents
  2. --------------------
  3. "set_app_palette" (NESPalette)
  4. "emitted-event" ()
  5. Input
  6. --------------------
  7. "<variable keyboard key combination>" ({
  8. source: <InputObject>,
  9. iscombo: <boolean>,
  10. keys: <string [matching event name]>,
  11. keycode: <number [ascii of keyboard key pressed]>,
  12. keyname: <string [name of keyboard key pressed]>,
  13. action: <string [keyboard action triggering event]>
  14. })
  15. "keydown" ({
  16. source: <InputObject>,
  17. iscombo: <boolean>,
  18. keys: <string [names of all currently pressed keys]>,
  19. keycode: <number [ascii of keyboard key pressed]>,
  20. keyname: <string [name of keyboard key pressed]>,
  21. action: <string [matching event name]>
  22. })
  23. "keypress" [only if no other keys are pressed] ({
  24. source: <InputObject>,
  25. iscombo: <boolean [should always be false]>,
  26. keys: <string [should be zero-length string]>,
  27. keycode: <number [ascii of keyboard key released]>,
  28. keyname: <string [name of keyboard key released]>,
  29. action: <string [always "keyup"]>
  30. })
  31. "keyup" ({
  32. source: <InputObject>,
  33. iscombo: <boolean>,
  34. keys: <string [name of all keys remaining pressed]>,
  35. keycode: <number [ascii of keyboard key released]>,
  36. keyname: <string [name of keyboard key released]>,
  37. action: <string [always "keyup"]>
  38. })
  39. "mousemove" ({
  40. source: <InputObject>,
  41. lastX: <number | null [Last recorded X mouse pos]>,
  42. lastY: <number | null [Last recorded Y mouse pos]>,
  43. x: <number [current X mouse pos]>,
  44. y: <number [current Y mouse pos]>,
  45. button: <number [last mouse button triggered]>,
  46. action: <string ["mousemove"]>
  47. })
  48. "mousedown" ({
  49. source: <InputObject>,
  50. lastX: <number | null [Last recorded X mouse pos]>,
  51. lastY: <number | null [Last recorded Y mouse pos]>,
  52. x: <number [current X mouse pos]>,
  53. y: <number [current Y mouse pos]>,
  54. button: <number [button pressed]>,
  55. action: <string ["mousedown"]>
  56. })
  57. "mouseup" ({
  58. source: <InputObject>,
  59. lastX: <number | null [Last recorded X mouse pos]>,
  60. lastY: <number | null [Last recorded Y mouse pos]>,
  61. x: <number [current X mouse pos]>,
  62. y: <number [current Y mouse pos]>,
  63. button: <number [mouse button released]>,
  64. action: <string ["mouseup"]>
  65. })
  66. "mouseclick" [Only if no other buttons pressed] ({
  67. source: <InputObject>,
  68. lastX: <number | null [Last recorded X mouse pos]>,
  69. lastY: <number | null [Last recorded Y mouse pos]>,
  70. x: <number [current X mouse pos]>,
  71. y: <number [current Y mouse pos]>,
  72. button: <number [mouse button released within delay]>,
  73. action: <string ["mouseup"]>
  74. })
  75. NESPalette
  76. --------------------
  77. "palettes_changed" ({
  78. type: <string ["ALL"]>,
  79. cindex: <number [always 0]>
  80. })
  81. "palettes_changed" ({
  82. type: <string ["TILE" | "SPRITE"]>,
  83. pindex: <number [0 - 3]>,
  84. cindex: <number [1 - 3]>
  85. })