Email:

Mama World

A world in Mama is a Mama object encapsulating everything required to edit and run a user program. A Mama world contains:
  • world object - properties, methods and functions belonging to the world and accessible globally
  • standard objects - camera, light, ground
  • user object list - the objects added to the world by the user
  • scene list - the scenes created by the user in the world
  • events - the events defined in the world
  • rendering data - all data associated with the rendering of the world
You can play a world, change it, save it into a file, and later on open it. You can also export a world as a video, make a standalone version from it, and import Mama objects from external files into it.

At any given moment, there's a single world open in the development environment, which is the current world.

The world has some special useful data, in addition to the standard data it contains as a Mama object:
  • Properties:
    • speedMultiplier - set to 1 by default. Changing this value will cause the world to run faster.
  • Methods:
    • main_method - the default method called at start of world play, called in response to the event When the world starts
  • Functions:
    • boolean logic functions - boolean logic functions in the form of logic operators, such as "<", "==", "=<", etc.
    • random functions - creating random numbers and random booleans
    • string functions - concatenating strings and turning an object into a string (toString function)
    • ask user functions - input dialogs for reading numbers, booleans and strings entered by the user during program run
    • mouse functions - getting mouse location on screen
    • time functions functions - miscellaneous time and date functions: getYea, getDayOfWeek, etc.
    • math functions - math functions like PI, min/max, abs, sqrt, etc.
    • other functions - contains the getVector function to set vector values manually