Skip to content

Categorizing

Daniel Báez edited this page Jun 16, 2024 · 1 revision

Categorization in KAPLAY is a important thing, because it determinates how doc are displayed.

The categorization should be done by feature, for example the assets loading/getting, game objects operations, maths, etc.

Start

This category is mean for the must functions of KAPLAY, something crucial to start initialization of the project and configuring it. For example, the starting function kaplay(), KaboomOpt for the options, quit() for finish KAPLAY execute.

Assets

This one is easy, every function starting by load should be here, loadSprite(), loadFont() and their get versions getSprite(), getFont(). Also there should be the interfaces like AssetData, SpriteData, etc.

Game Obj

All game objects related interfaces and operations such add(), make(), destroy() or GameObjRaw, GameObj and related interfaces

Input

All input handlers and input interfaces. onButtonPress(), onMouseDown(), onGamepadButtonRelease() with their interfaces GamepadButton, Key

Clone this wiki locally