# Modules

> The parts of the framework a game takes when it needs them — input, the interface, assets, sprites, levels, sound, saving, random numbers and ads — each one header of its own.

Source: https://omardev29.github.io/rmp-docs/manual/modules/index.html

The core is what every game is made of. The modules are what a game takes when it needs them: each one is a header of its own under `include/rmp/`, there is no header that includes them all, and a game includes only the ones it uses. Which header holds what is in [headers](https://omardev29.github.io/rmp-docs/manual/basics/headers.html).

- [Input](https://omardev29.github.io/rmp-docs/manual/modules/input.html) — named actions with any number of bindings, movement in eight directions in one call, the mouse and a finger as one pointer, and who gets to hear a press.
- [Interface](https://omardev29.github.io/rmp-docs/manual/modules/ui.html) — menus, HUDs and settings screens in immediate mode, playable with a mouse, a finger, a keyboard or a gamepad.
  - [Interface layout](https://omardev29.github.io/rmp-docs/manual/modules/ui-layout.html) — rows, columns, panels, stacks, grids, scrolling, and how big each thing is.
  - [Interface controls](https://omardev29.github.io/rmp-docs/manual/modules/ui-controls.html) — checkboxes, sliders, dropdowns and text fields that write into your variables.
  - [Interface style](https://omardev29.github.io/rmp-docs/manual/modules/ui-style.html) — themes, variants, sizes, transitions, breakpoints and fonts.
- [Assets](https://omardev29.github.io/rmp-docs/manual/modules/assets.html) — files in `resources/`, loaded by name, the same from loose files or from a pack.
- [Sprites](https://omardev29.github.io/rmp-docs/manual/modules/sprites.html) — what an object looks like: a texture, or an Aseprite file whose tags are its animations.
- [Tilemaps](https://omardev29.github.io/rmp-docs/manual/modules/tilemaps.html) — levels designed in LDtk or Tiled, drawn, collided with, and turned into objects.
- [Audio](https://omardev29.github.io/rmp-docs/manual/modules/audio.html) — sound effects and music by name, on volume buses a settings screen can move.
- [Saving](https://omardev29.github.io/rmp-docs/manual/modules/saving.html) — [`rmp::Value`](https://omardev29.github.io/rmp-docs/reference/classes/rmp-Value.html) and [`rmp::save`](https://omardev29.github.io/rmp-docs/reference/namespaces/rmp-save.html): a tree of data written to the right folder on every platform.
- [Localization](https://omardev29.github.io/rmp-docs/manual/modules/localization.html) — every text the framework draws translated from the game's tables, with placeholders, plurals and a font per language; `rmp text` keeps the tables in step with the code.
- [Dialogue](https://omardev29.github.io/rmp-docs/manual/modules/dialogue.html) — conversations written in Yarn Spinner 3, shown as a box, a bubble or a visual novel's stage, started by a Talker.
- [Random](https://omardev29.github.io/rmp-docs/manual/modules/random.html) — random numbers you can reproduce.
- [Ads](https://omardev29.github.io/rmp-docs/manual/modules/ads.html) — interstitial and rewarded ads on Android, and the same calls doing nothing everywhere else.
