Skip to content

Concepts

MegaPiggy edited this page Jun 16, 2021 · 2 revisions

Concepts

All games are a bit complicated under the hood, and there's a lot of things about their codebase that need to be understood before you can start creating mods. This page serves as a repository for common concepts needed for modding Smol Ame.

Important classes

These are miscellaneous classes that are important to know for modding

MainScript

MainScript is a game-wide context that contains code that isn't specific to any particular gamestate (ie main menu vs in a level)
Can be accessed with MainScript.main after the preload step.

PlayerScript

Holds all data about the player, such as their checkpoints, selected character, speed and more
Can be accessed with PlayerScript.player after the load step.

Levels

A static class that contains methods to help figure out what level your character is playing in.

Clone this wiki locally