2D Run-and-gun shooter inspired by One Man's Doomsday, Counter-Strike, and Metal Slug.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

49 lines
808 B

  1. #ifndef IZ_ACTION_H
  2. #define IZ_ACTION_H
  3. #include "../../common/IZ_common.h"
  4. #define CONTROLS (unsigned char) 16
  5. typedef u16 IZ_Action;
  6. static const char* ACTION_NAMES[CONTROLS] = {
  7. "Up",
  8. "Right",
  9. "Down",
  10. "Left",
  11. "Affirm",
  12. "Negate",
  13. "Action0",
  14. "Action1",
  15. "Action2",
  16. "Action3",
  17. "Action4",
  18. "Action5",
  19. "Action6",
  20. "Action7",
  21. "Action8",
  22. "Action9",
  23. };
  24. typedef enum {
  25. IZ_ACTION_INDEX_UP,
  26. IZ_ACTION_INDEX_RIGHT,
  27. IZ_ACTION_INDEX_DOWN,
  28. IZ_ACTION_INDEX_LEFT,
  29. IZ_ACTION_INDEX_AFFIRM,
  30. IZ_ACTION_INDEX_NEGATE,
  31. IZ_ACTION_INDEX_ACTION0,
  32. IZ_ACTION_INDEX_ACTION1,
  33. IZ_ACTION_INDEX_ACTION2,
  34. IZ_ACTION_INDEX_ACTION3,
  35. IZ_ACTION_INDEX_ACTION4,
  36. IZ_ACTION_INDEX_ACTION5,
  37. IZ_ACTION_INDEX_ACTION6,
  38. IZ_ACTION_INDEX_ACTION7,
  39. IZ_ACTION_INDEX_ACTION8,
  40. IZ_ACTION_INDEX_ACTION9,
  41. } IZ_ActionIndex;
  42. #endif