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:
- מכפיל_מהירות - set to 1 by default. Changing this value will cause the world to run faster.
- Methods:
- מתודה_ראשית - the default method called at start of world play, called in response to the event כאשר העולם מתחיל
- Functions:
- לוגיקה בוליאנית functions - boolean logic functions in the form of logic operators, such as "<", "==", "=<", etc.
- אקראי functions - creating random numbers and random booleans
- מחרוזת functions - concatenating strings and turning an object into a string (למחרוזת function)
- שאל משתמש functions - input dialogs for reading numbers, booleans and strings entered by the user during program run
- עכבר functions - getting mouse location on screen
- פונקציות זמן functions - miscellaneous time and date functions: getYea, תן_יום_בשבוע, etc.
- מתמטיקה functions - math functions like פיי, מינימום/מקסימום, מוחלט, שורש_ריבועי, etc.
- אחר functions - contains the תן_וקטור function to set vector values manually