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.

controls.md 5.2 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Controls
  2. ![Defailt Gamepad Controls](./controls.svg)
  3. | Action | Default Gamepad Control | Effect | Remarks |
  4. |---------|-----------------------------------------------|-----------------------------------|--------------------------------------------------------------------------------------------------------|
  5. | Up | DPad Up/Left Stick Up/Right Stick Up | Select Menu Item Up/Look Up | |
  6. | Right | DPad Right/Left Stick Right/Right Stick Right | Select Menu Item Right/Move Right | |
  7. | Down | DPad Down/Left Stick Down/Right Stick Down | Select Menu Item Down/Crouch | |
  8. | Left | DPad Left/Left Stick Left/Right Stick Left | Select Menu Item Left/Move Left | |
  9. | Affirm | Start | Confirm Selected Option | |
  10. | Negate | Select (Back) | Go Back | |
  11. | Action0 | Button X | Jump | When crouched, player will go down a solid-on-top ground. |
  12. | Action1 | Right Trigger | Primary Fire | Each weapon has firing characteristics, see below. |
  13. | Action2 | Left Trigger | Secondary Fire | Each weapon has firing characteristics, see below. |
  14. | Action3 | Button A | Reload | Reload always drops current clip regardless if there are rounds left. |
  15. | Action4 | Button Y | Switch Weapon Mode | Press to select next weapon mode (cycle), hold then press Left/Right to set previous/next weapon mode. |
  16. | Action5 | Right Bumper (Shoulder) | Switch Weapon | Press to select next weapon (cycle), hold then press Left/Right to set previous/next weapon. |
  17. | Action6 | Left Stick Button | Item/Inventory | Hold to open inventory, double press to use current item. |
  18. | Action7 | Right Stick Button | Switch Item | Press to select next item (cycle), hold then press Left/Right to set previous/next item. |
  19. | Action8 | Left Bumper (Shoulder) | Take Cover | Enter doors, go between objects to hide from enemies. |
  20. | Action9 | Button B | Sneak | Hold then press Left/Right to sneak. (do we need this control, or crouch is enough?) |
  21. # Control Internals
  22. | Control | Config Key |
  23. |-------------------------|------------------------|
  24. | DPad Left | `button:dpleft` |
  25. | DPad Right | `button:dpright` |
  26. | DPad Up | `button:dpup` |
  27. | DPad Down | `button:dpdown` |
  28. | Start | `button:start` |
  29. | Select (Back) | `button:back` |
  30. | Button A | `button:a` |
  31. | Button B | `button:b` |
  32. | Button X | `button:x` |
  33. | Button Y | `button:y` |
  34. | Left Bumper (Shoulder) | `button:leftshoulder` |
  35. | Right Bumper (Shoulder) | `button:rightshoulder` |
  36. | Left Stick Button | `button:leftstick` |
  37. | Right Stick Button | `button:rightstick` |
  38. | Left Trigger | `axis:+lefttrigger` |
  39. | Right Trigger | `axis:+righttrigger` |
  40. | Left Stick Left | `axis:-leftx` |
  41. | Left Stick Right | `axis:+leftx` |
  42. | Left Stick Up | `axis:-lefty` |
  43. | Left Stick Down | `axis:+lefty` |
  44. | Right Stick Left | `axis:-rightx` |
  45. | Right Stick Right | `axis:+rightx` |
  46. | Right Stick Up | `axis:-righty` |
  47. | Right Stick Down | `axis:+righty` |
  48. > **Note:** The config keys are based from SDL internal names, only we have added the `button:` and `axis:` bind
  49. > prefixes to be flexible on setting up controls on the gamepad. The reason is gamepad controls use different
  50. > types of binds.